Proxy Redirect

Redirect to privacy respecting proxy frontends

目前為 2025-02-19 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Proxy Redirect
  3. // @author Schimon Jehudah, Adv.
  4. // @collaborator hacker09
  5. // @collaborator Konf
  6. // @homepageURL https://greasyfork.org/scripts/465936-proxy-redirect
  7. // @supportURL https://greasyfork.org/scripts/465936-proxy-redirect/feedback
  8. // @copyright 2023 - 2025, Schimon Jehudah (http://schimon.i2p)
  9. // @license AGPL-3.0-only; https://www.gnu.org/licenses/agpl-3.0.en.html
  10. // @namespace i2p.schimon.proxy-redirect
  11. // @description Redirect to privacy respecting proxy frontends
  12. // @run-at document-start
  13. // @version 25.02.19
  14. // @grant GM.getValue
  15. // @grant GM.registerMenuCommand
  16. // @grant GM.setValue
  17. // @grant GM.xmlHttpRequest
  18. // @grant GM_xmlhttpRequest
  19. // @match file:///*
  20. // @match *://*/*
  21. // @connect 0011.lt
  22. // @connect 076.ne.jp
  23. // @connect 1search.i2p
  24. // @connect 1d4.us
  25. // @connect 2syis2nnyytz6jnusnjurva4swlaizlnleiks5mjp46phuwjbdjqwgqd.onion
  26. // @connect 40two.app
  27. // @connect 42l.fr
  28. // @connect absturztau.be
  29. // @connect actionsack.com
  30. // @connect adminforge.de
  31. // @connect albony.xyz
  32. // @connect arancia.click
  33. // @connect artemislena.eu
  34. // @connect asynchronousexchange.com
  35. // @connect batsense.net
  36. // @connect bibliogram.art
  37. // @connect btdig.i2p
  38. // @connect btdig.com
  39. // @connect btdigggink2pdqzqrik3blmqemsbntpzwxottujilcdjfz56jumzfsyd.onion
  40. // @connect bus-hit.me
  41. // @connect cadence.moe
  42. // @connect catfluori.de
  43. // @connect cblgh.org
  44. // @connect censors.us
  45. // @connect chauvet.pro
  46. // @connect citizen4.eu
  47. // @connect cowfee.moe
  48. // @connect creller.net
  49. // @connect crewz.me
  50. // @connect cn.i2p
  51. // @connect datatunnel.xyz
  52. // @connect dcs0.hu
  53. // @connect domain.glass
  54. // @connect datura.network
  55. // @connect duckdns.org
  56. // @connect ducks.party
  57. // @connect dynabyte.ca
  58. // @connect ebnar.xyz
  59. // @connect envs.net
  60. // @connect esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion
  61. // @connect etsi.me
  62. // @connect exarius.org
  63. // @connect facilmap.org
  64. // @connect farside.link
  65. // @connect fdn.fr
  66. // @connect flokinet.to
  67. // @connect flux.industries
  68. // @connect fmac.xyz
  69. // @connect froth.zone
  70. // @connect gatti.ninja
  71. // @connect ggc-project.de
  72. // @connect ggtyler.dev
  73. // @connect gnu.style
  74. // @connect go.metastem.su
  75. // @connect grimneko.de
  76. // @connect hostux.net
  77. // @connect hxvy0.gq
  78. // @connect hyperborea.cloud
  79. // @connect iket.me
  80. // @connect il.ax
  81. // @connect incogniweb.net
  82. // @connect incogsnoo.com
  83. // @connect invak.id
  84. // @connect jamiethalacker.dev
  85. // @connect jeikobu.net
  86. // @connect jewtube.i2p
  87. // @connect jing.rocks
  88. // @connect josias.dev
  89. // @connect jpope.org
  90. // @connect k62ptris7p72aborr4zoanee7xai6wguucveptwgxs5vbgt7qzpq.b32.i2p
  91. // @connect kavin.rocks
  92. // @connect kittywi.re
  93. // @connect kylrth.com
  94. // @connect ledditqo2mxfvlgobxnlhrkq4dh34jss6evfkdkb2thlvy6dn4f4gpyd.onion
  95. // @connect libredd.it
  96. // @connect libreddit.de
  97. // @connect libreddit.eu.org
  98. // @connect libreddit.hu
  99. // @connect libreddit.nl
  100. // @connect lingva.ml
  101. // @connect lqs5fjmajyp7rvp4qvyubwofzi6d4imua7vs237rkc4m5qogitqwrgyd.onion
  102. // @connect lr.n8pjl.ca
  103. // @connect lunar.icu
  104. // @connect melmac.space
  105. // @connect mint.lgbt
  106. // @connect moeyy.cn
  107. // @connect moomoo.me
  108. // @connect mywire.org
  109. // @connect mdosch.de
  110. // @connect monocles.de
  111. // @connect nadeko.net
  112. // @connect neet.works
  113. // @connect nerdvpn.de
  114. // @connect netlify.app
  115. // @connect neuters.de
  116. // @connect ngn.tf
  117. // @connect nitter.hu
  118. // @connect nitter.it
  119. // @connect nitter.net
  120. // @connect nitter.one
  121. // @connect nixnet.services
  122. // @connect no-logs.com
  123. // @connect nogoo.me
  124. // @connect northboot.xyz
  125. // @connect nttr.stream
  126. // @connect ononoki.org
  127. // @connect ooguy.com
  128. // @connect openstreetmap.org
  129. // @connect osi.kr
  130. // @connect oversold.host
  131. // @connect owacon.moe
  132. // @connect owo.si
  133. // @connect pabloferreiro.es
  134. // @connect paulgo.io
  135. // @connect pavot.ca
  136. // @connect phreedom.club
  137. // @connect piped.video
  138. // @connect poketube.fun
  139. // @connect priv.au
  140. // @connect privacy.com.de
  141. // @connect private.coffee
  142. // @connect projectsegfau.lt
  143. // @connect procurx.pt
  144. // @connect prvcy.eu
  145. // @connect puffyan.us
  146. // @connect pussthecat.org
  147. // @connect qwik.i2p
  148. // @connect qwikxx2erhx6qrymued6ox2qkf2yeogjwypqvzoif4fqkljixasr6oid.onion
  149. // @connect r.nf
  150. // @connect r4fo.com
  151. // @connect rabbit-company.com
  152. // @connect rasp.fr
  153. // @connect reallyaweso.me
  154. // @connect resrv.org
  155. // @connect revvy.de
  156. // @connect riverside.rocks
  157. // @connect rtrace.io
  158. // @connect scribe.rip
  159. // @connect search.cdev.nexus
  160. // @connect search.im-in.space
  161. // @connect search.zdechov.net
  162. // @connect searx.ankha.ac
  163. // @connect searx.be
  164. // @connect searx.ee
  165. // @connect searx.fi
  166. // @connect searx.ninja
  167. // @connect searx.ru
  168. // @connect sethforprivacy.com
  169. // @connect simplifiedprivacy.com
  170. // @connect simplytranslate.org
  171. // @connect smnz.de
  172. // @connect snopyta.org
  173. // @connect sny.sh
  174. // @connect some-things.org
  175. // @connect sp-codes.de
  176. // @connect spike.codes
  177. // @connect spjmllawtheisznfs7uryhxumin26ssv2draj7oope3ok3wuhy43eoyd.onion
  178. // @connect strongthany.cc
  179. // @connect stuehieyr.com
  180. // @connect sugoma.tk
  181. // @connect syncpundit.com
  182. // @connect teddit.i2p
  183. // @connect teddit.net
  184. // @connect tedditfyn6idalzso5wam5qd3kdtxoljjhbrbbx34q2xkcisvshuytad.onion
  185. // @connect theanonymouse.xyz
  186. // @connect tinfoil-hat.net
  187. // @connect tiekoetter.com
  188. // @connect tm4rwkeysv3zz3q5yacyr4rlmca2c4etkdobfvuqzt6vsfsu4weq.b32.i2p
  189. // @connect tokhmi.xyz
  190. // @connect totaldarkness.net
  191. // @connect trom.tf
  192. // @connect tromdienste.de
  193. // @connect tux.land
  194. // @connect tux.pizza
  195. // @connect tuxcloud.net
  196. // @connect tyil.nl
  197. // @connect unixfox.eu
  198. // @connect unofficialbird.com
  199. // @connect userscripts-mirror.org
  200. // @connect vernapl3lpo3huqdx3pjzxqgdgavxjlmdskbvejh2gfqgmjuyvxq.b32.i2p
  201. // @connect vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p
  202. // @connect vernmzgraj6aaoafmehupvtkkynpaa67rxcdj2kinwiy6konn6rq.b32.i2p
  203. // @connect vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion
  204. // @connect vern.cc
  205. // @connect vern.i2p
  206. // @connect voidnet.tech
  207. // @connect vojkovic.xyz
  208. // @connect voring.me
  209. // @connect walkx.org
  210. // @connect webheberg.info
  211. // @connect weblibre.org
  212. // @connect whatever.social
  213. // @connect whatevertinfoil.de
  214. // @connect wikiless.i2p
  215. // @connect wikiless.org
  216. // @connect winscloud.net
  217. // @connect xcancel.com
  218. // @connect yewtu.be
  219. // @connect yonalee.eu
  220. // @connect ytmous.i2p
  221. // @connect xanny.family
  222. // @connect yacy.iko.soy
  223. // @connect zackptg5.com
  224. // @connect zaggy.nl
  225. // @connect zhaocloud.net
  226. // @connect zzls.i2p
  227. // @connect zzls.xyz
  228. // @icon data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjRtbSIgaGVpZ2h0PSI2NG1tIiB2aWV3Qm94PSIwIDAgNjQgNjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZvbnQtd2VpZ2h0OjQwMDtmb250LXNpemU6MTkycHg7bGluZS1oZWlnaHQ6MDt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwO3dyaXRpbmctbW9kZTpsci10YjtkaXJlY3Rpb246bHRyO3RleHQtb3JpZW50YXRpb246bWl4ZWQ7ZG9taW5hbnQtYmFzZWxpbmU6YXV0bztiYXNlbGluZS1zaGlmdDpiYXNlbGluZTt0ZXh0LWFuY2hvcjpzdGFydDtzaGFwZS1wYWRkaW5nOjA7c2hhcGUtbWFyZ2luOjA7aW5saW5lLXNpemU6MDtvcGFjaXR5OjE7ZmlsbDojMDAwO2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDoxLjI3OTgyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO3N0b3AtY29sb3I6IzAwMDtzdG9wLW9wYWNpdHk6MSIgeD0iMTcuMDA1MjQ1IiB5PSIzMS42NTg0MDUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00LjQzNjg1NjQgNDAuODk0OTQpIHNjYWxlKC4yNjQ1OCkiPjx0c3BhbiB4PSIxNy4wMDUyNDUiIHk9IjMxLjY1ODQwNSIgc3R5bGU9ImZvbnQtc2l6ZToxOTJweCI+8J+luDwvdHNwYW4+PC90ZXh0Pjwvc3ZnPgo=
  229. // ==/UserScript==
  230.  
  231. //TODO
  232.  
  233. // Display bar at top to enable redirection for current page when all instances are not enabled.
  234.  
  235. // Add https://www.qwant.com/maps/#map=9.00/XXX/YYY
  236.  
  237. //Rebrand: Open Redirect, Proxy Redirect
  238. //Rebrand: Freelink, LibreProxy, Libreproxy, Open Link, Proxy Direct, Proxy Link, Proxy Redirect
  239.  
  240. /*
  241.  
  242. FIXME"
  243.  
  244. Read settings from function pickURL
  245.  
  246. if (await GM.getValue('libreddit')) {
  247. proxyArray.push(proxy.libreddit)
  248. }
  249. if (await GM.getValue('teddit')) {
  250. proxyArray.push(proxy.teddit)
  251. }
  252. proxyArray = [proxy.libreddit, proxy.teddit];
  253.  
  254. urlArray = []
  255. if (await GM.getValue('libred')) {
  256. urlArray.concat(proxy.libred)
  257. }
  258.  
  259. NOTE
  260. This program was inspired by Farside project from Ben Busby
  261. For more information: https://farside.link
  262.  
  263. TODO
  264.  
  265. Add RDX https://rdx.overdevs.com/
  266.  
  267. Brand
  268. FreeDirector, Free Direct, FreeDirect.js
  269. Open Redirector, Open Redirect, Open Direct, OpenDirect.js
  270. Redirect.js, Redirect.user.js, Redirector.js
  271. UserDirect, UserRedirect
  272.  
  273. FIXME
  274. // @match *://*.imgur.com/*
  275. // @exclude *://i.*.imgur.com/*
  276.  
  277. FIXME RegEx
  278. // @exclude /*.medium\.com\/*\/(c|fit|v2)\/.*$/
  279.  
  280. */
  281.  
  282. // https://github.com/makyen
  283. // https://github.com/greasemonkey/greasemonkey/issues/3160#issuecomment-1456758080
  284. const gmXmlhttpRequest = typeof GM_xmlhttpRequest === 'function' ? GM_xmlhttpRequest : GM.xmlHttpRequest;
  285.  
  286. //const url = location.href;
  287.  
  288. const urlsMatchers = {
  289. 'exclude' : [
  290. {
  291. 'addr' : 'gist.github.com',
  292. 'host' : 'gist.github.com',
  293. 'path' : [],
  294. 'text' : ['View on GitHub'],
  295. },
  296. {
  297. 'addr' : 'github.com',
  298. 'host' : 'github.com',
  299. // not-href -> perhaps starts with, ends with and inclusive
  300. 'path' : [
  301. 'actions', 'archive', 'blame', 'blob', 'codespaces', 'collections',
  302. 'commit', 'compare', 'contribute', 'customer-stories', 'delete',
  303. 'discussions', 'edit', 'enterprise', 'events', 'features', 'files',
  304. 'graphs', 'issues', 'labels', 'login', 'marketplace', 'milestones',
  305. 'notifications', 'orgs', 'password_reset', 'pricing', 'projects', 'pull', 'pulse',
  306. 'releases', 'security', 'sessions', 'settings', 'signup', 'solutions',
  307. 'sponsors', 'tags', 'team/', 'topics', 'tree', 'trending', 'wiki'
  308. ],
  309. 'text' : ['View on GitHub'],
  310. },
  311. {
  312. 'addr' : 'gitlab.com',
  313. 'host' : 'gitlab.com',
  314. 'path' : [
  315. 'activity', 'artifacts', 'boards', 'cadences', 'compare', 'commits', 'jobs',
  316. 'labels', 'merge_requests', 'network', 'path_locks', 'pipeline_schedules',
  317. 'pipelines', 'project_members', 'requirements_management', 'sign_in',
  318. 'starrers', 'subgroups', 'successful_verification', 'tags', 'test_cases',
  319. 'tree', 'uploads', 'wikis'
  320. ],
  321. },
  322. {
  323. 'addr' : 'imdb.com',
  324. 'host' : 'imdb.com',
  325. 'path' : ['reviews'],
  326. },
  327. {
  328. 'addr' : 'medium.com',
  329. 'host' : 'medium.com',
  330. 'path' : ['feed/', 'c/', 'fit/', 'format:', 'resize:fit:', 'v2/'],
  331. },
  332. {
  333. 'addr' : 'safereddit.com',
  334. 'host' : 'safereddit.com',
  335. 'path' : [''],
  336. },
  337. {
  338. 'addr' : 'stackoverflow.com/questions/',
  339. 'host' : 'stackoverflow.com',
  340. 'path' : ['tagged', 'users'], // /questions/tagged
  341. },
  342. {
  343. 'addr' : 'tiktok.com',
  344. 'host' : 'tiktok.com',
  345. 'path' : ['discover', 'playlist'],
  346. },
  347. {
  348. 'addr' : 'www.torrentdownload.info',
  349. 'host' : 'torrentdownload.info',
  350. 'path' : ['feed_latest', 'search?q='],
  351. },
  352. {
  353. 'addr' : 'torrentz.eu',
  354. 'host' : 'torrentz.eu',
  355. 'path' : ['search?f='],
  356. },
  357. {
  358. 'addr' : 'torrentz.me',
  359. 'host' : 'torrentz.me',
  360. 'path' : ['search?f='],
  361. },
  362. {
  363. 'addr' : 'torrentz2.eu',
  364. 'host' : 'torrentz2.eu',
  365. 'path' : ['search?f='],
  366. },
  367. {
  368. 'addr' : 'torrentz2.is',
  369. 'host' : 'torrentz2.is',
  370. 'path' : ['search?f='],
  371. },
  372. // {
  373. // 'addr' : 'youtube.com',
  374. // 'host' : 'youtube.com',
  375. // 'path' : ['users'],
  376. // 'text' : ['Watch on YouTube'],
  377. // }
  378. ], // hosts, paths and texts to exclude
  379.  
  380. 'includeByHostname' : [
  381. {
  382. 'addr' : 'bandcamp.com',
  383. 'host' : 'bandcamp.com',
  384. },
  385. {
  386. 'addr' : 'bilibili.com',
  387. 'host' : 'bilibili.com',
  388. },
  389. {
  390. 'addr' : 'fandom.com',
  391. 'host' : 'fandom.com',
  392. },
  393. {
  394. 'addr' : 'gist.github.com',
  395. 'host' : 'gist.github.com',
  396. },
  397. {
  398. 'addr' : 'github.com',
  399. 'host' : 'github.com',
  400. },
  401. {
  402. 'addr' : 'gitlab.com',
  403. 'host' : 'gitlab.com',
  404. },
  405. {
  406. 'addr' : 'goodreads.com',
  407. 'host' : 'goodreads.com',
  408. },
  409. {
  410. 'addr' : 'imdb.com',
  411. 'host' : 'imdb.com',
  412. },
  413. {
  414. 'addr' : 'imgur.com',
  415. 'host' : 'imgur.com',
  416. },
  417. {
  418. 'addr' : 'instructables.com',
  419. 'host' : 'instructables.com',
  420. },
  421. {
  422. 'addr' : 'instagram.com',
  423. 'host' : 'instagram.com',
  424. },
  425. {
  426. 'addr' : 'invidious-invidious.invidious.svc.cluster.local:3000',
  427. 'host' : 'invidious-invidious.invidious.svc.cluster.local:3000',
  428. },
  429. {
  430. 'addr' : 'medium.com',
  431. 'host' : 'medium.com',
  432. },
  433. {
  434. 'addr' : 'moovitapp.com',
  435. 'host' : 'moovitapp.com',
  436. },
  437. {
  438. 'addr' : 'odysee.com',
  439. 'host' : 'odysee.com',
  440. },
  441. {
  442. 'addr' : 'reddit.com',
  443. 'host' : 'reddit.com',
  444. },
  445. {
  446. 'addr' : 'old.reddit.com',
  447. 'host' : 'old.reddit.com',
  448. },
  449. {
  450. 'addr' : 'quora.com',
  451. 'host' : 'quora.com',
  452. },
  453. {
  454. 'addr' : 'reuters.com',
  455. 'host' : 'reuters.com',
  456. },
  457. {
  458. 'addr' : 'tiktok.com',
  459. 'host' : 'tiktok.com',
  460. },
  461. {
  462. 'addr' : 'www.torrentdownload.info',
  463. 'host' : 'torrentdownload.info',
  464. },
  465. {
  466. 'addr' : 'torrentz.eu',
  467. 'host' : 'torrentz.eu',
  468. },
  469. {
  470. 'addr' : 'torrentz.me',
  471. 'host' : 'torrentz.me',
  472. },
  473. {
  474. 'addr' : 'torrentz2.eu',
  475. 'host' : 'torrentz2.eu',
  476. },
  477. {
  478. 'addr' : 'torrentz2.is',
  479. 'host' : 'torrentz2.is',
  480. },
  481. {
  482. 'addr' : 'twitter.com',
  483. 'host' : 'twitter.com',
  484. },
  485. {
  486. 'addr' : 'urbandictionary.com',
  487. 'host' : 'urbandictionary.com',
  488. },
  489. {
  490. 'addr' : 'userscripts.org',
  491. 'host' : 'userscripts.org',
  492. },
  493. {
  494. 'addr' : 'wikimap.toolforge.org',
  495. 'host' : 'wikimap.toolforge.org',
  496. },
  497. {
  498. 'addr' : 'search.yahoo.co.jp',
  499. 'host' : 'yahoo.co.jp',
  500. },
  501. {
  502. 'addr' : 'youtu.be',
  503. 'host' : 'youtu.be',
  504. },
  505. {
  506. 'addr' : 'youtube.com',
  507. 'host' : 'youtube.com',
  508. },
  509. {
  510. 'addr' : 'x.com',
  511. 'host' : 'x.com',
  512. }
  513. ], // hosts to include
  514.  
  515. 'includeBySLD' : [
  516. {
  517. 'addr' : 'bandcamp.com',
  518. 'host' : 'bandcamp.com',
  519. },
  520. {
  521. 'addr' : 'medium.com',
  522. 'host' : 'medium.com',
  523. },
  524. {
  525. 'addr' : 'reddit.com', // old.reddit.com
  526. 'host' : 'reddit',
  527. },
  528. {
  529. 'addr' : 'tumblr.com',
  530. 'host' : 'tumblr',
  531. },
  532. {
  533. 'addr' : 'wikipedia.org',
  534. 'host' : 'wikipedia',
  535. },
  536. {
  537. 'addr' : 'x.com',
  538. 'host' : 'x.com',
  539. }
  540. ], // hosts to include by second-level-domain
  541.  
  542. 'includeByPathnameAndSLD' : [
  543. {
  544. 'addr' : 'google.com',
  545. 'host' : 'google',
  546. 'path' : ['search'],
  547. }
  548. ], // hosts to include by pathname and second-level-domain
  549.  
  550. 'includeByPathname' : [
  551. {
  552. 'addr' : 'bt4g.org/magnet/',
  553. 'host' : 'bt4g.org',
  554. 'path' : ['magnet'],
  555. },
  556. {
  557. 'addr' : 'bt4gprx.com/magnet/',
  558. 'host' : 'bt4gprx.com',
  559. 'path' : ['magnet'],
  560. },
  561. {
  562. 'addr' : 'bing.com/(maps|search)',
  563. 'host' : 'bing.com',
  564. 'path' : ['maps', 'search'],
  565. },
  566. {
  567. 'addr' : 'fandom.com/wiki',
  568. 'host' : 'fandom.com',
  569. 'path' : ['wiki'],
  570. },
  571. {
  572. 'addr' : 'google.com/maps',
  573. 'host' : 'google.com',
  574. 'path' : ['maps'],
  575. },
  576. // {
  577. // 'addr' : 'google.com/sorry',
  578. // 'host' : 'google.com',
  579. // 'path' : ['sorry'],
  580. // },
  581. {
  582. 'addr' : 'stackoverflow.com/questions/',
  583. 'host' : 'stackoverflow.com',
  584. 'path' : ['questions'],
  585. },
  586. {
  587. 'addr' : 'yahoo.com/search',
  588. 'host' : 'yahoo.com',
  589. 'path' : ['search'],
  590. },
  591. {
  592. 'addr' : '(www|ul).waze.com/(live-map|ul)',
  593. 'host' : 'waze.com',
  594. 'path' : ['live-map', 'ul'],
  595. },
  596. {
  597. 'addr' : 'yandex.com/(maps|search)',
  598. 'host' : 'yandex.com',
  599. 'path' : ['maps', 'search'],
  600. },
  601. // { // THIS PART OF CODE BELONGS TO FJYT
  602. // 'addr' : 'youtube-nocookie.com',
  603. // 'host' : 'youtube-nocookie.com',
  604. // 'path' : ['@', 'channel', 'watch'],
  605. // },
  606. // { // THIS PART OF CODE BELONGS TO FJYT
  607. // 'addr' : 'youtube.com',
  608. // 'host' : 'youtube.com',
  609. // 'path' : ['@', 'channel', 'watch'],
  610. // }
  611. ], // hosts to include by pathname
  612.  
  613. };
  614.  
  615. const proxy = {
  616. "4get": {
  617. "clearnet": [
  618. "https://4get.zzls.xyz",
  619. "https://4get.sijh.net",
  620. "https://4get.ca",
  621. "https://4get.silly.computer",
  622. "https://4get.hbubli.cc",
  623. "https://4get.plunked.party",
  624. "https://4get.nadeko.net"
  625. ],
  626. "i2p": [],
  627. "loki": [],
  628. "tor": [
  629. "http://4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
  630. "http://4getus.zzls2vhse6jeahgdz5snle37dnngmbeh4jgug5xvsdpmlchaw3ieonid.onion",
  631. "http://4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
  632. "http://d6imk74yn4crbqnni3kwioogwpqrfi4kay6ci7nghl363ogy4atctiid.onion",
  633. "http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion"
  634. ],
  635. "yggdrasil": []
  636. },
  637. "anonymousoverflow": {
  638. "clearnet": [
  639. "https://ao.phreedom.club",
  640. "https://overflow.hostux.net",
  641. "https://ao.ngn.tf",
  642. "https://overflow.adminforge.de",
  643. "https://ao.owo.si",
  644. "https://ao.bloat.cat",
  645. "https://overflow.reallyaweso.me",
  646. "https://overflow.lunar.icu",
  647. "https://overflow.smnz.de",
  648. "https://ao.vern.cc",
  649. "https://code.whatever.social",
  650. "https://stackoverflow.vern.cc",
  651. "https://anonymousoverflow.vern.cc",
  652. "http://overflow.ducks.party",
  653. // "https://ao.bloatcat.tk",
  654. "https://se.chaotic.ninja",
  655. "https://anonymousoverflow.privacyfucking.rocks",
  656. "https://overflow.projectsegfau.lt",
  657. // "https://anonoverflow.frontendfriendly.xyz",
  658. "https://overflow.perennialte.ch",
  659. "https://anonymousoverflow.privacyredirect.com",
  660. // "https://overflow.fascinated.cc",
  661. "https://ao.rootdo.com"
  662. ],
  663. "i2p": [
  664. "http://vernmzgraj6aaoafmehupvtkkynpaa67rxcdj2kinwiy6konn6rq.b32.i2p"
  665. ],
  666. "loki": [],
  667. "tor": [
  668. "http://anonymousoverflow.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  669. "http://ao.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  670. ],
  671. "yggdrasil": [
  672. "http://[301:f69c:2017:b6b8::8]"
  673. ]
  674. },
  675. "bibliogram": {
  676. "clearnet": [
  677. "https://bib.actionsack.com",
  678. "https://bibliogram.art",
  679. "https://bibliogram.snopyta.org",
  680. "https://bibliogram.pussthecat.org",
  681. "https://bibliogram.1d4.us",
  682. "https://biblioreads.ducks.party",
  683. "https://insta.trom.tf",
  684. "https://bib.riverside.rocks",
  685. "https://insta.privacy.com.de",
  686. "https://bibliogram.privacy.com.de",
  687. "https://bibliogram.domain.glass",
  688. "https://bibliogram.froth.zone",
  689. "https://insta.tromdienste.de"
  690. ],
  691. "i2p": [],
  692. "loki": [],
  693. "tor": [
  694. "http://qsuiaf4jio2yaxdbj6ljte3jmr6m7g333rujoilbtipjeawnou26frad.onion",
  695. "http://rlp5gt4d7dtkok3yaogocbcvrs2tdligjrxipsamztjq4wwpxzjeuxqd.onion"
  696. ],
  697. "yggdrasil": []
  698. },
  699. "biblioreads": {
  700. "clearnet": [
  701. "https://biblioreads.eu.org",
  702. "https://biblioreads.lunar.icu",
  703. // "https://biblioreads.ga",
  704. // "https://biblioreads.ml",
  705. "https://biblioreads.netlify.app",
  706. "https://bl.vern.cc",
  707. "https://biblioreads.privacyredirect.com"
  708. ],
  709. "i2p": [
  710. "http://vernapl3lpo3huqdx3pjzxqgdgavxjlmdskbvejh2gfqgmjuyvxq.b32.i2p"
  711. ],
  712. "loki": [],
  713. "tor": [
  714. "http://biblioreads.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  715. "http://bl.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  716. ],
  717. "yggdrasil": []
  718. },
  719. "binternet": {
  720. "clearnet": [
  721. "https://binternet.ducks.party",
  722. "https://binternet.ahwx.org",
  723. "https://bn.bloat.cat",
  724. "https://binternet.revvy.de",
  725. "https://bn.opnxng.com",
  726. "https://binternet.privacyfucking.rocks"
  727. ],
  728. "i2p": [
  729. "http://revznkqdwy7nmlzql66x226g3qnapiooss3rg2uajbj4rypxjnba.b32.i2p",
  730. "http://5cv2aw6jhe6la444vpn3jvo46442ls3ccgp3difx5ddlv5yf4hlq.b32.i2p"
  731. ],
  732. "loki": [],
  733. "tor": [
  734. "http://binternet.revvybrr6pvbx4n3j4475h4ghw4elqr4t5xo2vtd3gfpu2nrsnhh57id.onion",
  735. "http://binternet.skunky7dhv7nohsoalpwe3sxfz3fbkad7r3wk632riye25vqm3meqead.onion"
  736. ],
  737. "yggdrasil": []
  738. },
  739. "breezewiki": {
  740. "clearnet": [
  741. "https://antifandom.com",
  742. "https://bw.artemislena.eu",
  743. "https://breezewiki.pussthecat.org",
  744. "https://bw.projectsegfau.lt",
  745. "https://breeze.hostux.net",
  746. "https://breeze.nohost.network",
  747. "https://breezewiki.hyperreal.coffee",
  748. "https://breezewiki.nadeko.net",
  749. "https://bw.hamstro.dev",
  750. "https://fan.blitzw.in",
  751. "https://fandom.reallyaweso.me",
  752. "https://breezewiki.frontendfriendly.xyz",
  753. "https://breezewiki.catsarch.com",
  754. "https://breeze.mint.lgbt",
  755. "https://breezewiki.woodland.cafe",
  756. "https://z.opnxng.com"
  757. ],
  758. "i2p": [
  759. "http://bw.vern.i2p"
  760. ],
  761. "loki": [],
  762. "tor": [],
  763. "yggdrasil": []
  764. },
  765. "btdigg": {
  766. "clearnet": [
  767. "https://btdig.com"
  768. ],
  769. "i2p": [
  770. "http://btdig.i2p"
  771. ],
  772. "loki": [],
  773. "tor": [
  774. "http://btdigggink2pdqzqrik3blmqemsbntpzwxottujilcdjfz56jumzfsyd.onion"
  775. ],
  776. "yggdrasil": []
  777. },
  778. "cloudtube": {
  779. "clearnet": [
  780. "https://tube.cadence.moe"
  781. ],
  782. "i2p": [],
  783. "loki": [],
  784. "tor": [],
  785. "yggdrasil": []
  786. },
  787. "destructables": {
  788. "clearnet": [
  789. "https://ds.vern.cc"
  790. ],
  791. "i2p": [],
  792. "loki": [],
  793. "tor": [],
  794. "yggdrasil": []
  795. },
  796. "dumb": {
  797. "clearnet": [
  798. "https://dumb.privacydev.net",
  799. "https://dumb.ducks.party",
  800. "https://dm.vern.cc",
  801. "https://dumb.reallyaweso.me",
  802. "https://dumb.lunar.icu",
  803. "https://sing.whatever.social"
  804. ],
  805. "i2p": [
  806. "http://vernxpcpqi2y4uhu7to4rnjmyjjgzh3x3qxyzpmkhykefchkmleq.b32.i2p"
  807. ],
  808. "loki": [],
  809. "tor": [
  810. "http://dumb.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  811. "http://dm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  812. "http://dm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  813. ],
  814. "yggdrasil": []
  815. },
  816. "facilmap": {
  817. "clearnet": [
  818. "https://facilmap.org"
  819. ],
  820. "i2p": [],
  821. "loki": [],
  822. "tor": [],
  823. "yggdrasil": []
  824. },
  825. "gothub": {
  826. "clearnet": [
  827. "https://gothub.lunar.icu",
  828. // "https://gh.riverside.rocks",
  829. // "https://dev.gh.akisblack.dev",
  830. "https://gothub.dev.projectsegfau.lt",
  831. // "https://gh.fascinated.cc",
  832. // "https://gh.whateveritworks.org",
  833. // "https://gothub.xbdm.fun",
  834. // "https://gothub.no-logs.com",
  835. "https://gothub.ducks.party",
  836. // "https://gh.creller.net",
  837. // "https://gh.akisblack.dev",
  838. // "https://gh.odyssey346.dev",
  839. "https://gh.phreedom.club",
  840. // "https://gh.vern.cc",
  841. "https://gothub.projectsegfau.lt",
  842. "https://gh.owo.si",
  843. "https://gothub.r4fo.com",
  844. "https://g.opnxng.com",
  845. // "https://gothub.frontendfriendly.xyz",
  846. "https://gothub.private.coffee"
  847. ],
  848. "i2p": [],
  849. "loki": [],
  850. "tor": [],
  851. "yggdrasil": []
  852. },
  853. //"imgin": {
  854. // "clearnet": [],
  855. // "i2p": [],
  856. // "loki": [],
  857. // "tor": [],
  858. // "yggdrasil": []
  859. //},
  860. "indestructables": {
  861. "clearnet": [
  862. "https://indestructables.private.coffee"
  863. ],
  864. "i2p": [],
  865. "loki": [],
  866. "tor": [],
  867. "yggdrasil": []
  868. },
  869. "alltube": {
  870. "clearnet": [
  871. "https://alltube.private.coffee"
  872. ],
  873. "i2p": [],
  874. "loki": [],
  875. "tor": [],
  876. "yggdrasil": []
  877. },
  878. "invidious": {
  879. "clearnet": [
  880. "https://invidious.yourdevice.ch",
  881. "https://inv.nadeko.net",
  882. "https://incogtube.com",
  883. "https://vid.puffyan.us",
  884. "https://yt.artemislena.eu",
  885. "https://iteroni.com",
  886. // "https://inv.oikei.net",
  887. "https://invidious.snopyta.org",
  888. "https://invidious.jing.rocks",
  889. "https://youtube.076.ne.jp",
  890. "https://invidious.osi.kr",
  891. // "https://invidious-us.kavin.rocks",
  892. // "https://inv.cthd.icu",
  893. // "https://invidious.namazso.eu",
  894. "https://yewtu.be",
  895. "https://invidio.xamh.de",
  896. // "https://invidious.kavin.rocks",
  897. "https://invidious.reallyaweso.me",
  898. "https://monocles.live",
  899. "https://inv.riverside.rocks",
  900. "https://invidious.lunar.icu",
  901. "https://y.com.sb",
  902. "https://inv.bp.projectsegfau.lt",
  903. "https://invidious.privacyredirect.com",
  904. "https://invidious.flokinet.to",
  905. "https://invidious.sethforprivacy.com",
  906. "https://ytb.trom.tf",
  907. "https://invidious.domain.glass",
  908. // "https://tube.cthd.icu",
  909. "https://inv.vern.cc",
  910. "https://invidious.garudalinux.org",
  911. "https://youtube.owacon.moe",
  912. "https://invidious.tinfoil-hat.net",
  913. "https://iv.melmac.space",
  914. "https://invidious.tiekoetter.com",
  915. "https://invidious.baczek.me",
  916. "https://invidious.no-logs.com",
  917. "https://invidious.incogniweb.net",
  918. "https://invidious.0011.lt",
  919. "https://yt.funami.tech",
  920. "https://inv.tux.pizza",
  921. "https://vid.priv.au",
  922. "https://not-ytb.blocus.ch",
  923. "https://inv.creller.net",
  924. "https://inv.zzls.xyz",
  925. "https://yt.floss.media",
  926. "https://par1.iv.ggtyler.dev",
  927. "https://inv.citw.lgbt",
  928. "https://invidious.io.lol",
  929. "https://yt.oelrichsgarcia.de",
  930. "https://iv.nboeck.de",
  931. "https://invidious.protokolla.fi",
  932. "https://invidious.fi",
  933. "https://onion.tube",
  934. "https://inv.in.projectsegfau.lt",
  935. "https://invidious.privacydev.net",
  936. "https://invidious.takebackourtech.org",
  937. "https://qc1.iv.ggtyler.dev",
  938. "https://anontube.lvkaszus.pl",
  939. "https://invidious.asir.dev",
  940. "https://invidious.fdn.fr",
  941. "https://iv.datura.network",
  942. "https://invidious.private.coffee",
  943. "https://inv.pistasjis.net",
  944. "https://invidious.pavot.ca",
  945. "https://yt.cdaut.de",
  946. "https://yt.drgnz.club",
  947. "https://invidious.perennialte.ch",
  948. "https://yt.chaotic.ninja",
  949. "https://yt.omada.cafe",
  950. "https://super8.absturztau.be",
  951. "https://i.redsnake.io",
  952. "https://watch.supernets.org",
  953. "https://invidious.qwik.space",
  954. // "https://inv.odyssey346.dev",
  955. "https://invidious.mutahar.rocks",
  956. "https://invidious.nerdvpn.de",
  957. "https://invidious.projectsegfau.lt",
  958. "https://invidious.weblibre.org",
  959. "https://iv.ggtyler.dev",
  960. // "https://watch.thekitty.zone",
  961. "https://inv.us.projectsegfau.lt",
  962. "https://invidious.drgns.space",
  963. "https://invidious.kalli.st"
  964. ],
  965. "i2p": [
  966. "http://tube.i2p",
  967. "http://inv.cn.i2p",
  968. "http://jewtube.i2p",
  969. "http://ytmous.i2p",
  970. "http://pa7eextqat4wg35onzs4cnlhqa3gvzen243bcbrng67zyla4fqya.b32.i2p",
  971. "http://inv.vern.i2p",
  972. "http://inv.zzls.i2p",
  973. "http://invidious.qwik.i2p",
  974. "http://verni6dr4qxjgjumnvesxerh5rvhv6oy5ddeibaqy5d7tgbiiyfa.b32.i2p"
  975. ],
  976. "loki": [],
  977. "tor": [
  978. "http://tuberyps2pn6dor6h47brof3w2asmauahhk4ei42krugybzzzo55klad.onion",
  979. "http://qwikxxeiw4kgmml6vjw2bsxtviuwjce735dunai2djhu6q7qbacq73id.onion",
  980. "http://qwikxxt6jvggxzxe2v2fuzro5j7ibgphxmblmri6wkj5vpicdbo2kwad.onion",
  981. "http://inv.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion",
  982. "http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion",
  983. "http://grwp24hodrefzvjjuccrkw3mjq4tzhaaq32amf33dzpmuxe7ilepcmad.onion",
  984. "http://invidious.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  985. "http://euxxcnhsynwmfidvhjf6uzptsmh4dipkmgdmcmxxuo7tunp3ad2jrwyd.onion",
  986. "http://invidious.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  987. "http://iv.odysfvr23q5wgt7i456o5t3trw2cw5dgn56vbjfbq2m7xsc5vqbqpcyd.onion",
  988. "http://kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad.onion",
  989. "http://ng27owmagn5amdm7l5s3rsqxwscl5ynppnis5dqcasogkyxcfqn7psid.onion",
  990. "http://osbivz6guyeahrwp2lnwyjk2xos342h4ocsxyqrlaopqjuhwn2djiiyd.onion",
  991. "http://u2cvlit75owumwpy4dj2hsmvkq7nvrclkpht7xgyye2pyoxhpmclkrad.onion",
  992. "http://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion"
  993. ],
  994. "yggdrasil": [
  995. "http://[200:168a:c80a:b258:1dfe:f920:4414:6897]"
  996. ]
  997. },
  998. "kddit": {
  999. "clearnet": [
  1000. "https://kddit.kalli.st"
  1001. ],
  1002. "i2p": [],
  1003. "loki": [],
  1004. "tor": [],
  1005. "yggdrasil": []
  1006. },
  1007. "minisearch": {
  1008. "clearnet": [
  1009. // "https://minisearch.r4fo.com"
  1010. ],
  1011. "i2p": [],
  1012. "loki": [],
  1013. "tor": [],
  1014. "yggdrasil": []
  1015. },
  1016. "laboratory": {
  1017. "clearnet": [
  1018. //"https://lab.bloatcat.tk",
  1019. "https://lab.vern.cc",
  1020. // "https://laboratory.vitali64.duckdns.org"
  1021. ],
  1022. "i2p": [],
  1023. "loki": [],
  1024. "tor": [],
  1025. "yggdrasil": []
  1026. },
  1027. "libmedium": {
  1028. "clearnet": [
  1029. "https://medium.hostux.net",
  1030. "https://libmedium.batsense.net",
  1031. "https://med.ngn.tf",
  1032. "https://md.vern.cc"
  1033. ],
  1034. "i2p": [
  1035. "http://vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p"
  1036. ],
  1037. "loki": [],
  1038. "tor": [
  1039. "http://md.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  1040. ],
  1041. "yggdrasil": []
  1042. },
  1043. "librarian": {
  1044. "clearnet": [
  1045. "https://librarian.pussthecat.org",
  1046. "https://odysee.076.ne.jp",
  1047. "https://lbry.projectsegfau.lt",
  1048. "https://lbry.mywire.org",
  1049. "https://lbry.vern.cc",
  1050. "https://lbry.ooguy.com",
  1051. "https://lbn.frail.duckdns.org",
  1052. "https://odysee.owacon.moe",
  1053. "https://lbry.bcow.xyz"
  1054. ],
  1055. "i2p": [],
  1056. "loki": [],
  1057. "tor": [
  1058. "http://librarian.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  1059. "http://lbry.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1060. "http://5znbzx2xcymhddzekfjib3isgqq4ilcyxa2bsq6vqmnvbtgu4f776lqd.onion",
  1061. "http://bxewpsswttslepw27w2hhxhlizwm7l7y54x3jw5cfrb64hb6lgc557ad.onion"
  1062. ],
  1063. "yggdrasil": []
  1064. },
  1065. "libreddit": {
  1066. "clearnet": [
  1067. "https://libreddit.spike.codes",
  1068. "https://libreddit.nl",
  1069. "https://libreddit.strongthany.cc",
  1070. "https://libreddit.40two.app",
  1071. "https://libreddit.albony.xyz",
  1072. "https://libreddit.privacydev.net",
  1073. "https://libreddit.kavin.rocks",
  1074. "https://libreddit.privacy.com.de",
  1075. // "https://libreddit.bloatcat.tk",
  1076. // "https://libreddit.no-logs.com",
  1077. "https://lr.creller.net",
  1078. "https://libreddit.dcs0.hu",
  1079. "https://libreddit.tux.pizza",
  1080. "https://snoo.habedieeh.re",
  1081. "https://lr.4201337.xyz",
  1082. "https://lr.artemislena.eu",
  1083. "https://libreddit.privacyfucking.rocks",
  1084. "https://libreddit.qwik.space",
  1085. "https://de.leddit.xyz",
  1086. "https://leddit.xyz",
  1087. "https://libreddit.autarkic.org",
  1088. "https://libreddit.crewz.me",
  1089. "https://libreddit.de",
  1090. "https://libreddit.dothq.co",
  1091. "https://libreddit.drivet.xyz",
  1092. // "https://libreddit.igna.rocks",
  1093. "https://libredd.it",
  1094. "https://libreddit.jamiethalacker.dev",
  1095. "https://libreddit.kylrth.com",
  1096. "https://libreddit.lunar.icu",
  1097. // "https://libreddit.northboot.xyz",
  1098. "https://libreddit.pussthecat.org",
  1099. "https://libreddit.silkky.cloud",
  1100. "https://libreddit.sugoma.tk",
  1101. "https://libreddit.tiekoetter.com",
  1102. "https://libreddit.winscloud.net",
  1103. "https://libreddit.yonalee.eu",
  1104. "https://lr.cowfee.moe",
  1105. // "https://lr.mint.lgbt",
  1106. "https://lr.oversold.host",
  1107. "https://lr.stilic.ml",
  1108. "https://r.nf",
  1109. "https://r.walkx.org",
  1110. "https://reddit.artemislena.eu",
  1111. "https://reddit.phii.me",
  1112. "https://reddit.rtrace.io",
  1113. "https://reddit.stuehieyr.com",
  1114. "https://libreddit.nohost.network",
  1115. "https://reddit.simo.sh"
  1116. ],
  1117. "i2p": [
  1118. "http://woo5ugmoomzbtaq6z46q4wgei5mqmc6jkafqfi5c37zni7xc4ymq.b32.i2p"
  1119. ],
  1120. "loki": [],
  1121. "tor": [
  1122. "http://spjmllawtheisznfs7uryhxumin26ssv2draj7oope3ok3wuhy43eoyd.onion",
  1123. "http://qwikxxeiw4kgmml6vjw2bsxtviuwjce735dunai2djhu6q7qbacq73id.onion",
  1124. "http://qwikxx4xqvhdyyazkrw7pwdpdppfnmn7j2n6cvq5zecm4atbppaslzad.onion",
  1125. "http://ecue64ybzvn6vjzl37kcsnwt4ycmbsyf74nbttyg7rkc3t3qwnj7mcyd.onion",
  1126. "http://fwhhsbrbltmrct5hshrnqlqygqvcgmnek3cnka55zj4y7nuus5muwyyd.onion",
  1127. "http://inytumdgnri7xsqtvpntjevaelxtgbjqkuqhtf6txxhwbll2fwqtakqd.onion",
  1128. "http://kphht2jcflojtqte4b4kyx7p2ahagv4debjj32nre67dxz7y57seqwyd.onion",
  1129. "http://kzhfp3nvb4qp575vy23ccbrgfocezjtl5dx66uthgrhu7nscu6rcwjyd.onion",
  1130. "http://lbrdtjaj7567ptdd4rv74lv27qhxfkraabnyphgcvptl64ijx2tijwid.onion",
  1131. "http://libreddit.2syis2nnyytz6jnusnjurva4swlaizlnleiks5mjp46phuwjbdjqwgqd.onion",
  1132. "http://ledditqo2mxfvlgobxnlhrkq4dh34jss6evfkdkb2thlvy6dn4f4gpyd.onion",
  1133. "http://libreddit.lqs5fjmajyp7rvp4qvyubwofzi6d4imua7vs237rkc4m5qogitqwrgyd.onion",
  1134. "http://libredoxhxwnmsb6dvzzd35hmgzmawsq5i764es7witwhddvpc2razid.onion",
  1135. "http://ol5begilptoou34emq2sshf3may3hlblvipdjtybbovpb7c7zodxmtqd.onion",
  1136. "http://liredejj74h5xjqr2dylnl5howb2bpikfowqoveub55ru27x43357iid.onion"
  1137. ],
  1138. "yggdrasil": []
  1139. },
  1140. "libremdb": {
  1141. "clearnet": [
  1142. "https://libremdb.iket.me",
  1143. "https://lmdb.ngn.tf",
  1144. "https://ld.vern.cc",
  1145. "https://binge.whatever.social",
  1146. "https://lmdb.tokhmi.xyz",
  1147. "https://libremdb.ducks.party",
  1148. "https://libremdb.lunar.icu",
  1149. "https://libremdbeu.herokuapp.com",
  1150. "https://libremdb.pussthecat.org",
  1151. "https://libremdb.jeikobu.net",
  1152. "https://lmdb.hostux.net",
  1153. "https://libremdb.catsarch.com",
  1154. "https://libremdb.frontendfriendly.xyz",
  1155. // "https://libremdb.fascinated.cc"
  1156. ],
  1157. "i2p": [
  1158. "http://vernz3ubrntql4wrgyrssd6u3qzi36zrhz2agbo6vibzbs5olk2q.b32.i2p"
  1159. ],
  1160. "loki": [],
  1161. "tor": [
  1162. "http://ld.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1163. "http://libremdb.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion"
  1164. ],
  1165. "yggdrasil": []
  1166. },
  1167. "librex": {
  1168. "clearnet": [
  1169. // "https://librex.bloatcat.tk",
  1170. "https://search.pabloferreiro.es",
  1171. "https://search.funami.tech",
  1172. "https://librex.retro-hax.net",
  1173. "https://librex.zzls.xyz",
  1174. "https://librex.nohost.network",
  1175. "https://librex.baczek.me",
  1176. "https://buscar.weblibre.org",
  1177. "https://librex.mikata.ru",
  1178. "https://librex.myroware.eu",
  1179. "https://librex.pufe.org",
  1180. "https://librex.revvy.de",
  1181. "https://lx.vern.cc",
  1182. "https://search.femboy.hu",
  1183. "https://search.madreyk.xyz",
  1184. "https://search.milivojevic.in.rs",
  1185. "https://search.sesu.cc",
  1186. "https://search.tildevarsh.in",
  1187. "https://librex.ratakor.com",
  1188. "https://lx.drain.win"
  1189. ],
  1190. "i2p": [
  1191. "http://7huurwog32tny663wkglrhozfoyqyqmsuxjbd7dtudccx44awjda.b32.i2p",
  1192. "http://lqbchqljxiwl3bbjt4vqe76luovk5ly6khqhg7mt5qcqfn6e4sbq.b32.i2p",
  1193. "http://revekebotog64xrrammtsmjwtwlg3vqyzwdurzt2pu6botg4bejq.b32.i2p",
  1194. "http://vernziqfqvweijfaacmwazohgpdo2bt2ib2jlupt2pwwu27bhgxq.b32.i2p"
  1195. ],
  1196. "loki": [],
  1197. "tor": [
  1198. "http://fcnfg6avz45hqzwbneekq57u2mqbnwa7veyvjcc4dndqbatvkjlaj7yd.onion",
  1199. "http://f7ssz7l3biu4fugwctfpcx4txg5yq4gqhrt473ledsuc3ivtd3omniid.onion",
  1200. "http://librex.revvybrr6pvbx4n3j4475h4ghw4elqr4t5xo2vtd3gfpu2nrsnhh57id.onion",
  1201. "http://librex.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
  1202. "http://lx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1203. "http://search.cepyxplublbyw2f4axy4pyztfbxmf63lrt2c7uwv6wl4iixz53czload.onion",
  1204. "http://search.swxoebbpeqiiixyhbuh3vbw53pdrmtbiaj2sqveol6kkn5rpapfi4aad.onion"
  1205. ],
  1206. "yggdrasil": []
  1207. },
  1208. "librey": {
  1209. "clearnet": [
  1210. "https://search.pabloferreiro.es",
  1211. "https://search.funami.tech",
  1212. "https://librex.retro-hax.net",
  1213. "https://search.davidovski.xyz",
  1214. "https://search.zeroish.xyz",
  1215. "https://search.seitan-ayoub.lol",
  1216. "https://lx.benike.me",
  1217. "https://librey.baczek.me",
  1218. "https://librex.yogeshlamichhane.com.np",
  1219. "https://librex.nohost.network",
  1220. "https://librex.ix.tc",
  1221. "https://librex.uk.to",
  1222. "https://librex.supernets.org",
  1223. "https://librey.org",
  1224. "https://librey.danyaal.xyz",
  1225. "https://ly.owo.si",
  1226. "https://search2.ahwx.org",
  1227. "https://search.ratakor.com",
  1228. "https://search.ahwx.org",
  1229. "https://search3.ahwx.org"
  1230. ],
  1231. "i2p": [
  1232. "http://d4vi3tvfui2rfzsxr33tin4a6542heulf4mhkokdpbhbcejlg3la.b32.i2p",
  1233. "http://libreyqmoa2iuihoyyscolhaymrxxgdrmkgmiufnyaukwub2c7ya.b32.i2p"
  1234. ],
  1235. "loki": [],
  1236. "tor": [
  1237. "http://ly.pk47sgwhncn5cgidm7bofngmh7lc7ukjdpk5bjwfemmyp27ovl25ikyd.onion",
  1238. "http://libreytvcxak42f3p7nxh3filsp2pjqesjii5f5e4eivs2gpcn77tdid.onion",
  1239. "http://hyy7rcvknwb22v4nnoar635wntiwr4uwzhiuyimemyl4fz6k7tahj5id.onion",
  1240. "http://wn5jl6fxlzzfenlyu3lc4q7jpw2saplrywxvxtvqbguotwd4y5cjeuqd.onion",
  1241. "http://jxhkfulu6wpdl4apuy4dyivuowmpprvsd7e3el2z73crq7fmyv7rjkyd.onion",
  1242. "http://ouosr2fq3lktngcvbz4r4op2lab5hbiz5y6g6toorsgieb7elet76jad.onion"
  1243. ],
  1244. "yggdrasil": []
  1245. },
  1246. "lieu": {
  1247. "clearnet": [
  1248. "https://lieu.cblgh.org"
  1249. ],
  1250. "i2p": [],
  1251. "loki": [],
  1252. "tor": [],
  1253. "yggdrasil": []
  1254. },
  1255. "lingva": {
  1256. "clearnet": [
  1257. "https://lingva.reallyaweso.me",
  1258. "https://translate.libtar.de",
  1259. "https://lingva.frontendfriendly.xyz",
  1260. "https://lingva.retiolus.net",
  1261. "https://translate.plausibility.cloud",
  1262. "https://lingva.lunar.icu",
  1263. "https://lingva.dialectapp.org"
  1264. ],
  1265. "i2p": [],
  1266. "loki": [],
  1267. "tor": [],
  1268. "yggdrasil": []
  1269. },
  1270. "materialious": {
  1271. "clearnet": [
  1272. "https://materialious.nadeko.net"
  1273. ],
  1274. "i2p": [],
  1275. "loki": [],
  1276. "tor": [],
  1277. "yggdrasil": []
  1278. },
  1279. "metastem": {
  1280. "clearnet": [
  1281. "https://go.metastem.su"
  1282. ],
  1283. "i2p": [],
  1284. "loki": [],
  1285. "tor": [],
  1286. "yggdrasil": []
  1287. },
  1288. "metastemwiki": {
  1289. "clearnet": [
  1290. "https://wiki.metastem.su"
  1291. ],
  1292. "i2p": [],
  1293. "loki": [],
  1294. "tor": [],
  1295. "yggdrasil": []
  1296. },
  1297. "mikuinvidious": {
  1298. "clearnet": [
  1299. "https://mi.resrv.org",
  1300. "https://mikuinv-gs.vern.cc",
  1301. "https://mikuinv.resrv.org",
  1302. "https://moeyy.cn/mikuinvidious"
  1303. ],
  1304. "i2p": [],
  1305. "loki": [],
  1306. "tor": [],
  1307. "yggdrasil": []
  1308. },
  1309. "mozhi": {
  1310. "clearnet": [
  1311. "https://mozhi.pussthecat.org",
  1312. "https://translate.bus-hit.me",
  1313. "https://translate.perennialte.ch"
  1314. ],
  1315. "i2p": [],
  1316. "loki": [],
  1317. "tor": [],
  1318. "yggdrasil": []
  1319. },
  1320. "neuters": {
  1321. "clearnet": [
  1322. "https://neuters.de",
  1323. "https://neuters.privacyfucking.rocks",
  1324. "https://nu.vern.cc",
  1325. "https://neuters.vern.cc",
  1326. "https://reuters.vern.cc"
  1327. ],
  1328. "i2p": [],
  1329. "loki": [],
  1330. "tor": [],
  1331. "yggdrasil": []
  1332. },
  1333. "nitter": {
  1334. "clearnet": [
  1335. "https://nitter.hu",
  1336. "https://nitter.actionsack.com",
  1337. "https://nitter.net",
  1338. "https://nitter.1d4.us",
  1339. "https://nitter.nixnet.services",
  1340. "https://nitter.unixfox.eu",
  1341. "https://nitter.sethforprivacy.com",
  1342. "https://nitter.pussthecat.org",
  1343. "https://xcancel.com",
  1344. "https://nitter.it",
  1345. "https://nitter.moomoo.me",
  1346. "https://tw.artemislena.eu",
  1347. "https://nitter.snopyta.org",
  1348. "https://birdsite.xanny.family",
  1349. "https://nitter.domain.glass",
  1350. // "https://read.whatever.social",
  1351. // "https://nitter.lacontrevoie.fr",
  1352. "https://bird.trom.tf",
  1353. "https://nitter.hostux.net",
  1354. "https://nitter.sneed.network",
  1355. "https://twitter.owacon.moe",
  1356. "https://nitter.ggc-project.de",
  1357. "https://unofficialbird.com",
  1358. "https://nitter.fdn.fr",
  1359. "https://nitter.no-logs.com",
  1360. "https://nitter.one",
  1361. "https://nitter.ungovernable.men",
  1362. "https://nitter.private.coffee",
  1363. // "https://nitter.soopy.moe",
  1364. "https://nitter.oksocial.net",
  1365. "https://n.sneed.network",
  1366. "https://nitter.qwik.space",
  1367. "https://nitter.nohost.network",
  1368. "https://de.nttr.stream",
  1369. "https://nitter.42l.fr",
  1370. "https://nitter.bus-hit.me",
  1371. // "https://nitter.ca",
  1372. // "https://nitter.eu",
  1373. "https://nitter.grimneko.de",
  1374. "https://nitter.kavin.rocks",
  1375. "https://nitter.koyu.space",
  1376. // "https://nitter.namazso.eu",
  1377. "https://nttr.stream",
  1378. "https://twitter.076.ne.jp",
  1379. "https://twitter.censors.us",
  1380. "https://n.hyperborea.cloud",
  1381. "https://n.biendeo.com",
  1382. // "https://n.opnxng.com",
  1383. "https://nitter.adminforge.de",
  1384. "https://nitter.catsarch.com",
  1385. "https://nitter.cz",
  1386. "https://nitter.in.projectsegfau.lt",
  1387. "https://nitter.io.lol",
  1388. "https://nitter.ktachibana.party",
  1389. "https://nitter.kylrth.com",
  1390. "https://nitter.poast.org",
  1391. "https://nitter.privacydev.net",
  1392. "https://nitter.salastil.com",
  1393. "https://nitter.woodland.cafe",
  1394. "https://nitter.dcs0.hu"
  1395. ],
  1396. "i2p": [
  1397. "http://tm4rwkeysv3zz3q5yacyr4rlmca2c4etkdobfvuqzt6vsfsu4weq.b32.i2p"
  1398. ],
  1399. "loki": [],
  1400. "tor": [
  1401. "http://qwikxxeiw4kgmml6vjw2bsxtviuwjce735dunai2djhu6q7qbacq73id.onion",
  1402. "http://qwikxx2erhx6qrymued6ox2qkf2yeogjwypqvzoif4fqkljixasr6oid.onion",
  1403. "http://n.sneed4fmhevap3ci4xhf4wgkf72lwk275lcgomnfgwniwmqvaxyluuid.onion"
  1404. ],
  1405. "yggdrasil": []
  1406. },
  1407. "openstreetmap": {
  1408. "clearnet": [
  1409. "https://www.openstreetmap.org"
  1410. ],
  1411. "i2p": [],
  1412. "loki": [],
  1413. "tor": [],
  1414. "yggdrasil": []
  1415. },
  1416. "tubo": {
  1417. "clearnet": [
  1418. "https://tubo.media",
  1419. "https://tubo.reallyaweso.me"
  1420. ],
  1421. "i2p": [],
  1422. "loki": [],
  1423. "tor": [],
  1424. "yggdrasil": []
  1425. },
  1426. "twineo": {
  1427. "clearnet": [
  1428. "https://twineo.reallyaweso.me"
  1429. ],
  1430. "i2p": [],
  1431. "loki": [],
  1432. "tor": [],
  1433. "yggdrasil": []
  1434. },
  1435. "pipedmaterial": {
  1436. "clearnet": [
  1437. //"https://ngp.piped.xn--17b.net",
  1438. // "https://piped-material.xn--17b.net"
  1439. ],
  1440. "i2p": [],
  1441. "loki": [],
  1442. "tor": [],
  1443. "yggdrasil": []
  1444. },
  1445. "piped": {
  1446. "clearnet": [
  1447. "https://piped.mint.lgbt",
  1448. "https://piped.video",
  1449. "https://watch.whatevertinfoil.de",
  1450. "https://piped.ducks.party",
  1451. "https://watch.whatever.social",
  1452. "https://piped.reallyaweso.me",
  1453. "https://piped.hostux.net",
  1454. "https://piped.no-logs.com",
  1455. "https://piped.qdi.fi",
  1456. "https://piped.ngn.tf",
  1457. "https://il.ax",
  1458. "https://piped.projectsegfau.lt",
  1459. "https://pd.vern.cc",
  1460. "https://piped.privacydev.net",
  1461. "https://piped.chauvet.pro",
  1462. "https://piped.smnz.de",
  1463. "https://piped.adminforge.de",
  1464. "https://srv.piped.video",
  1465. "https://piped.lunar.icu",
  1466. "https://piped.garudalinux.org",
  1467. "https://piped.in.projectsegfau.lt",
  1468. "https://piped.mha.fi",
  1469. "https://piped.privacy.com.de",
  1470. "https://piped.tokhmi.xyz",
  1471. "https://piped.us.projectsegfau.lt",
  1472. "https://watch.leptons.xyz",
  1473. "https://piped.palveluntarjoaja.eu"
  1474. ],
  1475. "i2p": [],
  1476. "loki": [],
  1477. "tor": [],
  1478. "yggdrasil": []
  1479. },
  1480. "priviblur": {
  1481. "clearnet": [
  1482. "https://tb.opnxng.com",
  1483. // "https://pb.bloat.cat"
  1484. ],
  1485. "i2p": [],
  1486. "loki": [],
  1487. "tor": [],
  1488. "yggdrasil": []
  1489. },
  1490. "pixivfe": {
  1491. "clearnet": [
  1492. "https://pixiv.ducks.party",
  1493. "https://pixiv.perennialte.ch",
  1494. "https://pixivfe.ducks.party",
  1495. "https://pixivfe.exozy.me"
  1496. ],
  1497. "i2p": [],
  1498. "loki": [],
  1499. "tor": [],
  1500. "yggdrasil": []
  1501. },
  1502. "poketube": {
  1503. "clearnet": [
  1504. "https://poketube.fun",
  1505. // "https://pt.zzls.xyz"
  1506. ],
  1507. "i2p": [],
  1508. "loki": [],
  1509. "tor": [],
  1510. "yggdrasil": []
  1511. },
  1512. "proxigram": {
  1513. "clearnet": [
  1514. "https://ig.opnxng.com",
  1515. "https://proxigram.lunar.icu",
  1516. "https://proxigram.ducks.party",
  1517. // "https://ig.vern.cc/",
  1518. // "https://proxigram.vern.cc",
  1519. // "https://instagram.vern.cc",
  1520. // "https://proxigram.privacyredirect.com",
  1521. // "https://proxigram.kyun.li"
  1522. ],
  1523. "i2p": [],
  1524. "loki": [],
  1525. "tor": [],
  1526. "yggdrasil": []
  1527. },
  1528. "proxitok": {
  1529. "clearnet": [
  1530. "https://proxitok.lunar.icu",
  1531. "https://tik.hostux.net",
  1532. "https://proxitok.pabloferreiro.es",
  1533. "https://proxitok.privacy.com.de",
  1534. "https://tok.adminforge.de",
  1535. "https://tok.habedieeh.re",
  1536. "https://proxitok.pussthecat.org",
  1537. "https://proxitok.privacyfucking.rocks",
  1538. "https://cringe.whatever.social",
  1539. "https://proxitok.privacydev.net",
  1540. "https://proxitok.pufe.org",
  1541. "https://cringe.datura.network",
  1542. "https://tok.artemislena.eu",
  1543. // "https://tok.thekitty.zone",
  1544. "https://proxitok.privacyredirect.com",
  1545. "https://tiktok.chauvet.pro",
  1546. // "https://proxitok.r4fo.com",
  1547. "https://tt.vern.cc",
  1548. "https://tiktok.vern.cc",
  1549. "https://proxitok.vern.cc"
  1550. ],
  1551. "i2p": [
  1552. "http://qr.vern.i2p"
  1553. ],
  1554. "loki": [],
  1555. "tor": [],
  1556. "yggdrasil": []
  1557. },
  1558. "quetre": {
  1559. "clearnet": [
  1560. "https://quetre.privacydev.net",
  1561. "https://quetre.pufe.org",
  1562. "https://que.wilbvr.me",
  1563. "https://quetre.iket.me",
  1564. "https://quetre.pussthecat.org",
  1565. "https://quetre.ducks.party",
  1566. "https://quetre.perennialte.ch",
  1567. "https://quetre.tokhmi.xyz",
  1568. "https://quetre.projectsegfau.lt",
  1569. // "https://quetre.odyssey346.dev",
  1570. "https://quetre.marcopisco.com",
  1571. "https://quetre.blackdrgn.nl",
  1572. "https://quetre.lunar.icu",
  1573. "https://quora.femboy.hu",
  1574. "https://quora.vern.cc",
  1575. // "https://quetre.fascinated.cc",
  1576. "https://quetre.rootdo.com"
  1577. ],
  1578. "i2p": [],
  1579. "loki": [],
  1580. "tor": [
  1581. "http://ask.habeehrhadazsw3izbrbilqajalfyqqln54mrja3iwpqxgcuxnus7eid.onion",
  1582. "http://qr.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1583. "http://quetre.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  1584. "http://quetre.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  1585. "http://quora.cepyxplublbyw2f4axy4pyztfbxmf63lrt2c7uwv6wl4iixz53czload.onion"
  1586. ],
  1587. "yggdrasil": []
  1588. },
  1589. "redlib": {
  1590. "clearnet": [
  1591. "https://redlib.incogniweb.net",
  1592. "https://discuss.whatever.social",
  1593. "https://libreddit.bus-hit.me",
  1594. "https://l.opnxng.com",
  1595. "https://red.arancia.click",
  1596. "https://red.ngn.tf",
  1597. "https://reddit.invak.id",
  1598. "https://r.darrennathanael.com",
  1599. "https://red.artemislena.eu",
  1600. "https://reddit.owo.si",
  1601. "https://safereddit.com",
  1602. "https://lr.n8pjl.ca",
  1603. "https://libreddit.projectsegfau.lt",
  1604. "https://redlib.kittywi.re",
  1605. "https://redlib.privacyredirect.com",
  1606. // "https://redlib.vimmer.dev",
  1607. "https://redlib.catsarch.com",
  1608. "https://redlib.matthew.science",
  1609. "https://redlib.pussthecat.org/",
  1610. "https://redlib.tux.pizza",
  1611. "https://reddit.idevicehacked.com",
  1612. "https://redlib.private.coffee",
  1613. "https://redlib.ducks.party",
  1614. "https://redlib.reallyaweso.me",
  1615. "https://redlib.perennialte.ch",
  1616. "https://redlib.nohost.network",
  1617. "https://rl.bloat.cat"
  1618. ],
  1619. "i2p": [],
  1620. "loki": [],
  1621. "tor": [],
  1622. "yggdrasil": []
  1623. },
  1624. "rimgo": {
  1625. "clearnet": [
  1626. "https://rimgo.bus-hit.me",
  1627. "https://rimgo.pussthecat.org",
  1628. "https://rimgo.totaldarkness.net",
  1629. "https://rimgo.perennialte.ch",
  1630. "https://img.riverside.rocks",
  1631. "https://rimgo.reallyaweso.me",
  1632. "https://i.bcow.xyz",
  1633. "https://rimgo.hostux.net",
  1634. "https://rimgo.privacyredirect.com",
  1635. "https://ri.zzls.xyz",
  1636. "https://i.habedieeh.re",
  1637. "https://rimgo.ducks.party",
  1638. "https://rimgo.vern.cc",
  1639. "https://rimgo.nohost.network",
  1640. "https://imgur.artemislena.eu",
  1641. // "https://rim.odyssey346.dev",
  1642. "https://rimgo.lunar.icu",
  1643. "https://rimgo.kling.gg",
  1644. "https://rimgo.projectsegfau.lt",
  1645. "https://rimgo.catsarch.com",
  1646. // "https://rimgo.fascinated.cc"
  1647. ],
  1648. "i2p": [],
  1649. "loki": [],
  1650. "tor": [],
  1651. "yggdrasil": []
  1652. },
  1653. "ruraldictionary": {
  1654. "clearnet": [
  1655. "https://rd.vern.cc",
  1656. "https://isdoingyour.mom",
  1657. // "https://rd.bloatcat.tk",
  1658. ],
  1659. "i2p": [
  1660. "http://vern5cxiaufqvhv4hu5ypkvw3tiwvuinae4evdbqzrioql6s2sha.b32.i2p"
  1661. ],
  1662. "loki": [],
  1663. "tor": [
  1664. "http://ruraldictionary.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  1665. "http://rd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  1666. ],
  1667. "yggdrasil": []
  1668. },
  1669. "safetwitch": {
  1670. "clearnet": [
  1671. "https://safetwitch.drgns.space",
  1672. "https://st.ngn.tf",
  1673. "https://safetwitch.ducks.party",
  1674. "https://safetwitch.privacyredirect.com/"
  1675. ],
  1676. "i2p": [],
  1677. "loki": [],
  1678. "tor": [],
  1679. "yggdrasil": []
  1680. },
  1681. "scribe": {
  1682. "clearnet": [
  1683. "https://scribe.nixnet.services",
  1684. "https://scribe.ducks.party",
  1685. "https://scribe.rip",
  1686. "https://scribe.citizen4.eu",
  1687. "https://scribe.reallyaweso.me",
  1688. "https://scribe.froth.zone",
  1689. "https://scribe.privacyredirect.com",
  1690. "https://scribe.bus-hit.me",
  1691. "https://scribe.perennialte.ch",
  1692. "https://sc.vern.cc",
  1693. "https://scribe.manasiwibi.com",
  1694. "https://m.opnxng.com"
  1695. ],
  1696. "i2p": [],
  1697. "loki": [],
  1698. "tor": [],
  1699. "yggdrasil": []
  1700. },
  1701. "searx": {
  1702. "clearnet": [
  1703. "https://search.reallyaweso.me",
  1704. "https://search.incogniweb.net",
  1705. "https://seeks.hsbp.org",
  1706. "https://putin.agency",
  1707. "http://search.homecomputing.fr",
  1708. "https://seeks.okhin.fr",
  1709. "https://searx.arancia.click",
  1710. "https://s3arch.eu",
  1711. "https://search.nerdvpn.de",
  1712. "https://quackquackgo.nl",
  1713. "https://baresearch.org",
  1714. "https://searx.coding4schoki.org",
  1715. "https://searx.netzspielplatz.de",
  1716. "https://searx.perennialte.ch",
  1717. "https://searx.laquadrature.net",
  1718. "https://sx.thatxtreme.dev",
  1719. "https://vibrisse.gatti.ninja",
  1720. "https://search.smnz.de",
  1721. "https://search.sapti.me",
  1722. "https://twinkpad.pl",
  1723. "https://search.demoniak.ch",
  1724. "https://search.rhscz.eu",
  1725. "https://search.nadeko.net",
  1726. "https://searx.oe5tpo.com",
  1727. "https://search.trashserver.net",
  1728. "https://searx.ee",
  1729. "https://vanderwilhelm.me",
  1730. "https://nogoo.me",
  1731. "https://xo.wtf",
  1732. // "https://search.r4fo.com",
  1733. "https://searx.brihx.fr",
  1734. "https://search.kujiu.org",
  1735. "https://searx.new-admin.net",
  1736. "https://posativ.org/search",
  1737. "https://searx.crazypotato.tk",
  1738. "https://searx.32bitflo.at",
  1739. "https://el-hoyo.net/searx",
  1740. "https://www.privatesearch.io",
  1741. "https://search.jpope.org",
  1742. "https://search.casperlefantom.net",
  1743. "https://search.freezetux.net",
  1744. "https://framabee.org",
  1745. "https://searx.info",
  1746. "https://search.koehn.com",
  1747. "https://searx.fossencdi.org",
  1748. "https://search.jollausers.de",
  1749. "https://blackholeroutercondition.com",
  1750. "https://some.shady.website/search",
  1751. "https://matrix.ac/searx",
  1752. "https://searx.jeanphilippemorvan.info",
  1753. "https://searx.potato.hu",
  1754. "https://www.searx.de",
  1755. "https://searx.me",
  1756. "http://suche.linuxundich.de",
  1757. "https://search.blackit.de",
  1758. "https://suche.elaon.de",
  1759. "https://search.homecomputing.fr",
  1760. "https://trouvons.org",
  1761. "https://tontonroger.org",
  1762. "https://searx.volcanis.me",
  1763. "https://quackquackgo.nl/search",
  1764. "https://search.notoriousdev.com",
  1765. "https://www.ready.pm",
  1766. "https://searx.nulltime.net",
  1767. "https://searx.schrodinger.io",
  1768. "https://searx.drakonix.net",
  1769. "https://searx.aquilenet.fr",
  1770. "https://searx.4ray.co",
  1771. "https://search.azkware.net",
  1772. "https://schrodinger.io",
  1773. // "https://heraut.eu/search",
  1774. "https://searx.ch",
  1775. // "https://rathorian.fr",
  1776. "https://search.biboumail.fr",
  1777. "https://searx.xyz",
  1778. "https://searx.ru",
  1779. "https://searx.dk",
  1780. "https://suche.ftp.sh",
  1781. "https://searx.nogafa.org",
  1782. "https://www.gruble.de",
  1783. "https://search.disroot.org",
  1784. "https://searx.cc",
  1785. "https://www.search404.io",
  1786. "https://searx.org",
  1787. "https://searx.site",
  1788. "https://searx.foo.li",
  1789. "https://searx.mxchange.org",
  1790. "https://searx.darklun.ch",
  1791. "https://searx.blackspot.me",
  1792. "https://searx.decatec.de",
  1793. "https://searx.prvcy.eu",
  1794. "https://searx-anon.duckdns.org",
  1795. "https://searx.sunless.cloud",
  1796. "https://searx.fmac.xyz",
  1797. "https://search.gougeul.org",
  1798. "https://spot.ecloud.global",
  1799. "https://searx.ninja",
  1800. "https://searx.ca",
  1801. "https://searx.bar",
  1802. "https://searx.everdot.org",
  1803. "https://searx.ir",
  1804. "https://searx.be",
  1805. "https://searx.aleteoryx.me",
  1806. "https://searx.tunkki.xyz/searx",
  1807. "https://searx.tuxcloud.net",
  1808. "https://searx.underworld.fr",
  1809. "https://xeek.com",
  1810. "https://serx.cf",
  1811. "https://searxng.ch",
  1812. "https://search.st8.at",
  1813. "https://searx.roughs.ru",
  1814. "https://search.datura.network",
  1815. "https://searxng.online",
  1816. "https://search.im-in.space",
  1817. "https://search.zdechov.net",
  1818. "https://searx.ankha.ac",
  1819. "https://search.ngn.tf",
  1820. "https://searx.feneas.org",
  1821. "https://dynabyte.ca",
  1822. "https://search.in.projectsegfau.lt",
  1823. "https://searx.rasp.fr",
  1824. "https://searx.xkek.net",
  1825. "https://engo.mint.lgbt",
  1826. "https://timdor.noip.me/searx",
  1827. "https://trovu.komun.org",
  1828. "https://haku.ahmia.fi",
  1829. "https://searx.lavatech.top",
  1830. "https://searx.slash-dev.de",
  1831. "https://www.webrats.xyz",
  1832. "https://searx.tiekoetter.com",
  1833. "https://paulgo.io",
  1834. "https://searx.hummel-web.at",
  1835. "https://searx.webheberg.info",
  1836. "https://searx.tux.land",
  1837. "https://searx.gnous.eu",
  1838. "https://jsearch.pw",
  1839. "https://search.antonkling.se",
  1840. "https://searx.tk",
  1841. "https://searx.openhoofd.nl",
  1842. "https://searx.nixnet.services",
  1843. "https://searx.zapashcanon.fr",
  1844. "https://search.ethibox.fr",
  1845. "https://searx.theanonymouse.xyz",
  1846. "https://northboot.xyz",
  1847. "https://swag.pw",
  1848. "https://search.mdosch.de",
  1849. "https://sx.fedi.tech",
  1850. "https://s.zhaocloud.net",
  1851. "https://searx.zackptg5.com",
  1852. "https://searx.mha.fi",
  1853. "https://searx.divided-by-zero.eu",
  1854. "https://metasearch.nl",
  1855. "https://search.snopyta.org",
  1856. "https://searx.roflcopter.fr",
  1857. "https://sx.catgirl.cloud",
  1858. "https://searx.mastodontech.de",
  1859. "https://searx.dresden.network",
  1860. "https://darmarit.org/searx",
  1861. "https://suche.uferwerk.org",
  1862. "https://searx.nakhan.net",
  1863. "https://suche.dasnetzundich.de",
  1864. "https://anon.sx",
  1865. "https://nibblehole.com",
  1866. "https://opengo.nl",
  1867. "https://privatesearch.app",
  1868. "https://procurx.pt",
  1869. "https://recherche.catmargue.org",
  1870. "https://search.076.ne.jp",
  1871. "https://search.anonymize.com",
  1872. "https://search.asynchronousexchange.com",
  1873. "https://search.fedi.life",
  1874. "https://search.stinpriza.org",
  1875. "https://search.trom.tf",
  1876. "https://searx.bissisoft.com",
  1877. "https://searxzh.cn",
  1878. "https://searx.sk",
  1879. "https://searx.nevrlands.de",
  1880. "https://searx.akusov.xyz",
  1881. "https://a.searx.space",
  1882. "https://searx.hardwired.link",
  1883. "https://searx.stuehieyr.com",
  1884. "https://searx.sp-codes.de",
  1885. "https://searx.solusar.de",
  1886. "https://searx.tyil.nl",
  1887. "https://searx.vitanetworks.link",
  1888. "https://searx.zecircle.xyz",
  1889. "https://searx.semipvt.com",
  1890. "https://searx.se",
  1891. "https://searx.sadblog.xyz",
  1892. "https://searx.s1gm4.eu",
  1893. "https://searx.run",
  1894. "https://searx.operationtulip.com",
  1895. "https://searx.pwoss.org",
  1896. "https://searx.gnu.style",
  1897. "https://search.bluelock.org",
  1898. "https://search.jigsaw-security.com",
  1899. "https://www.searxs.eu",
  1900. "https://www.perfectpixel.de/searx",
  1901. "https://wtf.roflcopter.fr/searx",
  1902. "https://searx.thegreenwebfoundation.org",
  1903. "https://search.privacytools.io",
  1904. "https://search.blou.xyz",
  1905. "https://search.kling.gg",
  1906. "https://search.activemail.de",
  1907. "https://searx.al-f.net",
  1908. "https://searx.hsbp.org",
  1909. "https://search.ononoki.org",
  1910. "https://monocles.de",
  1911. "https://search.bka.li",
  1912. "https://searx.puffyan.us",
  1913. "https://searx.pussthecat.org",
  1914. "https://search.bus-hit.me",
  1915. "https://searx.thegpm.org",
  1916. "https://etsi.me",
  1917. "https://search.zzls.xyz",
  1918. "https://opnxng.com",
  1919. "https://searxng.tordenskjold.de",
  1920. "https://searx.alloca.dev",
  1921. // "https://cthd.icu",
  1922. // "https://searx.cthd.icu",
  1923. "https://search.neet.works",
  1924. "https://search.rabbit-company.com",
  1925. "https://searxng.zackptg5.com",
  1926. "https://searx.catfluori.de",
  1927. "https://www.higgssearch.com",
  1928. "https://search.projectsegfau.lt",
  1929. "https://searx.domain.glass",
  1930. "https://recherche.facil.services",
  1931. // "https://searx.foss.wtf",
  1932. "https://searx.stemy.me",
  1933. "https://searxng.no-logs.com",
  1934. "https://search.exarius.org",
  1935. "https://priv.au",
  1936. "https://searx.work",
  1937. "https://searx.fi",
  1938. "https://searxng.pavot.ca",
  1939. "https://searx.envs.net",
  1940. "https://searx.simplifiedprivacy.com",
  1941. "https://searx.absturztau.be",
  1942. "https://search.vojkovic.xyz",
  1943. "https://searx.ebnar.xyz",
  1944. "https://searx.jaska.cc",
  1945. "https://search.rootdo.com",
  1946. "https://copp.gg",
  1947. "https://s.mble.dk",
  1948. "https://s.trung.fun",
  1949. "https://search.gcomm.ch",
  1950. "https://search.laksith.dev",
  1951. "https://search.leptons.xyz",
  1952. "https://search.modalogi.com",
  1953. "https://search.rowie.at",
  1954. "https://searx.daetalytica.io",
  1955. "https://searx.zhenyapav.com",
  1956. "https://apps.disroot.org",
  1957. "https://searx.danksquad.org",
  1958. "https://search.privacyredirect.com"
  1959. ],
  1960. "i2p": [
  1961. "http://mqamk4cfykdvhw5kjez2gnvse56gmnqxn7vkvvbuor4k4j2lbbnq.b32.i2p",
  1962. "http://ransack.i2p"
  1963. ],
  1964. "loki": [],
  1965. "tor": [
  1966. "http://eb6w5ctgodhchf3p.onion/searx",
  1967. "http://searchb5a7tmimez.onion",
  1968. "http://7jwxg5rakyfvikpi.onion",
  1969. "http://ulrn6sryqaifefld.onion",
  1970. "http://eb6w5ctgodhchf3p.onion",
  1971. "http://tp7nwuggtryzbla7.onion/searx",
  1972. "http://htk2rvtgj6vv3ppj.onion",
  1973. "http://searx7hcqiogbrhk.onion",
  1974. "http://searx.bsbvtqi5oq2cqzn32zt4cr2f2z2rwots3dq7gmdcnlyqoxko2wx6reqd.onion",
  1975. "http://3afisqjw2rxm6z7mmstyt5rx75qfqrgxnkzftknbp2vhipr2nrmrjdyd.onion",
  1976. "http://searxbgetrkiwxhdwi6svpgh7eotopqyxhbqiokrwzg7dcte44t36kyd.onion",
  1977. "http://suche.xyzco456vwisukfg.onion",
  1978. "http://w5rl6wsd7mzj4bdkbuqvzidet5osdsm5jhg2f7nvfidakfq5exda5wid.onion",
  1979. "http://z34ambyi6makk6ta7ksog2sljly2ctt2sa3apekb7wkllk72sxecdtad.onion",
  1980. "http://search.4bkxscubgtxwvhpe.onion",
  1981. "http://juy4e6eicawzdrz7.onion",
  1982. "http://z5vawdol25vrmorm4yydmohsd4u6rdoj2sylvoi3e3nqvxkvpqul7bqd.onion",
  1983. "http://zbuc3bbzbfdqqo2x46repx2ddajbha6fpsjeeptjhhhhzji3zopxdqyd.onion",
  1984. "http://4n53nafyi77iplnbrpmxnp3x4exbswwxigujaxy3b37fvr7bvlopxeyd.onion",
  1985. "http://f4qfqajszpx5b7itzxt6mb7kj4ktpgbdq7lq6xaiqyqx6a7de3epptad.onion",
  1986. "http://searx.cwuzdtzlubq5uual.onion",
  1987. "http://searx3aolosaf3urwnhpynlhuokqsgz47si4pzz5hvb7uuzyjncl2tid.onion",
  1988. "http://rq2w52kyrif3xpfihkgjnhqm3a5aqhoikpv72z3drpjglfzc2wr5z4yd.onion",
  1989. "http://yra4tke2pwcnatxjkufpw6kvebu3h3ti2jca2lcdpgx3mpwol326lzid.onion"
  1990. ],
  1991. "yggdrasil": []
  1992. },
  1993. "simplytranslate": {
  1994. "clearnet": [
  1995. "https://manerakai.asuscomm.com:447",
  1996. "https://translate.riverside.rocks",
  1997. // "https://translate.namazso.eu",
  1998. "https://translate.josias.dev",
  1999. // "https://simplytranslate.pussthecat.org",
  2000. "https://simplytranslate.org",
  2001. "https://simplytranslate.reallyaweso.me",
  2002. "https://translate.northboot.xyz",
  2003. // "https://st.bloatcat.tk",
  2004. "https://tr.chaotic.ninja",
  2005. "https://st.manerakai.com",
  2006. "https://translate.syncpundit.com",
  2007. "https://translate.tiekoetter.com",
  2008. "https://simplytranslate.leemoon.network",
  2009. // "https://st.odyssey346.dev",
  2010. "https://st.privacydev.net",
  2011. "https://st.tokhmi.xyz",
  2012. "https://tl.vern.cc",
  2013. ],
  2014. "i2p": [],
  2015. "loki": [],
  2016. "tor": [],
  2017. "yggdrasil": []
  2018. },
  2019. "libretranslate": {
  2020. "clearnet": [
  2021. "https://translate.reallyaweso.me"
  2022. ],
  2023. "i2p": [],
  2024. "loki": [],
  2025. "tor": [],
  2026. "yggdrasil": []
  2027. },
  2028. "spot": {
  2029. "clearnet": [
  2030. "https://search.ggc-project.de"
  2031. ],
  2032. "i2p": [],
  2033. "loki": [],
  2034. "tor": [],
  2035. "yggdrasil": []
  2036. },
  2037. "teddit": {
  2038. "clearnet": [
  2039. "https://teddit.zaggy.nl",
  2040. // "https://teddit.bus-hit.me",
  2041. // "https://teddit.adminforge.de",
  2042. "https://incogsnoo.com",
  2043. // "https://teddit.hostux.net",
  2044. // "https://teddit.ggc-project.de",
  2045. // "https://snoo.ioens.is",
  2046. // "https://teddit.no-logs.com",
  2047. // "https://teddit.net",
  2048. "https://i.opnxng.com",
  2049. // "https://tedd.it",
  2050. "https://teddit.projectsegfau.lt",
  2051. "https://reddit.lol",
  2052. // "https://rdt.trom.tf",
  2053. "https://t.sneed.network",
  2054. "https://teddit.domain.glass",
  2055. // "https://teddit.froth.zone",
  2056. // "https://teddit.namazso.eu",
  2057. // "https://teddit.sethforprivacy.com",
  2058. // "https://teddit.tinfoil-hat.net",
  2059. // "https://teddit.totaldarkness.net",
  2060. "https://td.vern.cc",
  2061. "https://teddit.vern.cc"
  2062. ],
  2063. "i2p": [
  2064. "http://k62ptris7p72aborr4zoanee7xai6wguucveptwgxs5vbgt7qzpq.b32.i2p",
  2065. "http://teddit.i2p"
  2066. ],
  2067. "loki": [],
  2068. "tor": [
  2069. "http://t.sneed4fmhevap3ci4xhf4wgkf72lwk275lcgomnfgwniwmqvaxyluuid.onion",
  2070. "http://tedditfyn6idalzso5wam5qd3kdtxoljjhbrbbx34q2xkcisvshuytad.onion"
  2071. ],
  2072. "yggdrasil": [
  2073. "http://[200:5e4b:515c:e42b:3e73:6fbf:2f11:779d]"
  2074. ]
  2075. },
  2076. "tent": {
  2077. "clearnet": [
  2078. "https://tent.sny.sh",
  2079. // "https://tent.bloatcat.tk"
  2080. ],
  2081. "i2p": [],
  2082. "loki": [],
  2083. "tor": [],
  2084. "yggdrasil": []
  2085. },
  2086. "uso": {
  2087. "clearnet": [
  2088. "https://userscripts-mirror.org"
  2089. ],
  2090. "i2p": [],
  2091. "loki": [],
  2092. "tor": [],
  2093. "yggdrasil": []
  2094. },
  2095. "wayback-classic": {
  2096. "clearnet": [
  2097. "https://wayback-classic.net",
  2098. ],
  2099. "i2p": [],
  2100. "loki": [],
  2101. "tor": [
  2102. "http://waybackclassic.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion"
  2103. ],
  2104. "yggdrasil": []
  2105. },
  2106. "whoogle": {
  2107. "clearnet": [
  2108. "https://www.whooglesearch.ml",
  2109. "https://whoogle.privacydev.net",
  2110. "https://whoogle.lunar.icu",
  2111. "https://gowogle.voring.me",
  2112. "https://search.sethforprivacy.com",
  2113. "https://search.albony.xyz",
  2114. "https://www.higgssearch.com",
  2115. "https://google.owacon.moe",
  2116. // "https://search.foss.wtf",
  2117. "https://whoogle.dcs0.hu",
  2118. "https://whoogle.ftw.lol",
  2119. "https://s.tokhmi.xyz",
  2120. "https://search.dr460nf1r3.org",
  2121. "https://search.garudalinux.org",
  2122. "https://wgl.frail.duckdns.org",
  2123. "https://wg.vern.cc",
  2124. "https://whoogle.hxvy0.gq",
  2125. "https://whoogle.hostux.net",
  2126. "https://whoogle.no-logs.com"
  2127. ],
  2128. "i2p": [
  2129. "http://verneks7rfjptpz5fpii7n7nrxilsidi2qxepeuuf66c3tsf4nhq.b32.i2p"
  2130. ],
  2131. "loki": [],
  2132. "tor": [
  2133. "http://nuifgsnbb2mcyza74o7illtqmuaqbwu4flam3cdmsrnudwcmkqur37qd.onion",
  2134. "http://whoglqjdkgt2an4tdepberwqz3hk7tjo4kqgdnuj77rt7nshw2xqhqad.onion",
  2135. "http://whoogle.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  2136. "http://whoogle.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  2137. ],
  2138. "yggdrasil": []
  2139. },
  2140. "wikiless": {
  2141. "clearnet": [
  2142. "https://wikiless.reallyaweso.me",
  2143. "https://wikiless.org",
  2144. // "https://wikiless.sethforprivacy.com",
  2145. // "https://wiki.604kph.xyz",
  2146. "https://wikiless.tiekoetter.com",
  2147. // "https://wikiless.bloatcat.tk",
  2148. "https://wiki.adminforge.de",
  2149. "https://wl.vern.cc",
  2150. "https://wikiless.privacyfucking.rocks",
  2151. "https://w.sneed.network",
  2152. "https://wiki.froth.zone",
  2153. "https://wikiless.lunar.icu",
  2154. "https://wikiless.northboot.xyz",
  2155. // "https://wikiless.rootdo.com",
  2156. ],
  2157. "i2p": [
  2158. "http://wikiless.i2p"
  2159. ],
  2160. "loki": [],
  2161. "tor": [
  2162. "http://dj2tbh2nqfxyfmvq33cjmhuw7nb6am7thzd3zsjvizeqf374fixbrxyd.onion",
  2163. "http://w.sneed4fmhevap3ci4xhf4wgkf72lwk275lcgomnfgwniwmqvaxyluuid.onion"
  2164. ],
  2165. "yggdrasil": []
  2166. },
  2167. "wikiless-dark": {
  2168. "clearnet": [
  2169. "https://wiki.owo.si",
  2170. "https://wikiless.privacyredirect.com",
  2171. "https://wikiless.funami.tech"
  2172. ],
  2173. "i2p": [
  2174. "http://wikiless.i2p"
  2175. ],
  2176. "loki": [],
  2177. "tor": [
  2178. "http://dj2tbh2nqfxyfmvq33cjmhuw7nb6am7thzd3zsjvizeqf374fixbrxyd.onion",
  2179. "http://w.sneed4fmhevap3ci4xhf4wgkf72lwk275lcgomnfgwniwmqvaxyluuid.onion"
  2180. ],
  2181. "yggdrasil": []
  2182. },
  2183. "everybodywiki": {
  2184. "clearnet": [
  2185. "https://everybodywiki.com"
  2186. ],
  2187. "i2p": [],
  2188. "loki": [],
  2189. "tor": [],
  2190. "yggdrasil": []
  2191. },
  2192. "wikiwand": {
  2193. "clearnet": [
  2194. "https://www.wikiwand.com"
  2195. ],
  2196. "i2p": [],
  2197. "loki": [],
  2198. "tor": [],
  2199. "yggdrasil": []
  2200. },
  2201. "yacy": {
  2202. "clearnet": [
  2203. "https://search.cdev.nexus",
  2204. "https://yacy.iko.soy",
  2205. ],
  2206. "i2p": [
  2207. "http://1search.i2p"
  2208. ],
  2209. "loki": [],
  2210. "tor": [
  2211. "http://yacy.bsbvtqi5oq2cqzn32zt4cr2f2z2rwots3dq7gmdcnlyqoxko2wx6reqd.onion"
  2212. ],
  2213. "yggdrasil": []
  2214. }
  2215. };
  2216.  
  2217. sessionDisableProxyRedirect = sessionStorage.getItem('disableProxyRedirect');
  2218. if (sessionDisableProxyRedirect == 'true') {
  2219. window.addEventListener('load', function() {
  2220. let spanElement = document.createElement('span');
  2221. document.body.prepend(spanElement);
  2222. document.body.style.marginTop = '50px';
  2223. spanElement.innerHTML = '🥸 Proxy Redirect Userscript for Greasemonkey is disabled. Click to enable it.';
  2224. spanElement.style.background = 'powderblue'; // '#e0e8f6'; // '#f1f1f1';
  2225. spanElement.style.color = '#000';
  2226. spanElement.style.cursor = 'pointer';
  2227. spanElement.style.direction = 'ltr';
  2228. spanElement.style.display = 'block';
  2229. //spanElement.style.fontWeight = 'bold';
  2230. spanElement.style.lineHeight = '30px';
  2231. //spanElement.style.marginBottom = '50px';
  2232. spanElement.style.textAlign = 'center';
  2233. spanElement.style.userSelect = 'none';
  2234. spanElement.style.position = 'fixed';
  2235. spanElement.style.top = '0';
  2236. spanElement.style.right = '0';
  2237. spanElement.style.left = '0';
  2238. spanElement.style.zIndex = '1000000';
  2239. spanElement.onclick = () => {
  2240. sessionStorage.removeItem('disableProxyRedirect');
  2241. location.reload();
  2242. };
  2243. });
  2244. return;
  2245. };
  2246.  
  2247. function pageLoader(newUrl) {
  2248. //window.onprogress = (event) => {
  2249. // /questions/6464592/how-to-align-entire-html-body-to-the-center
  2250. const loadPage = '<html xmlns="http://www.w3.org/1999/xhtml" style="display:table;margin:auto;"><head><link type="image/svg+xml" rel="shortcut icon" href="data:image/svg+xml,&lt;svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22&gt; &lt;text y=%22.9em%22 font-size=%2290%22&gt;&#x1F978;&lt;/text&gt; &lt;/svg&gt;"/><title>Proxy Redirect</title></head><body style="padding:1em;display:table-cell;height:100%;background-color:#f1f1f1;font-family:system-ui;cursor:default;user-select:none;max-height:100%;max-width:100%;"><dl><dt><h1>&#x1F978; Proxy Redirect</h1></dt><dd><h2>The request is being redirected to a privacy proxy frontend.</h2><div id="message"><h3 style="color:#0000ff;">Redirecting...</h3></div><i>Made for <a href="https://falkon.org">Falkon</a></i></dd></dl></body></html>';
  2251. const domParser = new DOMParser();
  2252. const newDocument = domParser.parseFromString(loadPage, 'text/html');
  2253. //newDocument.querySelector('#icon-tc').onclick = () => {disable()}; // FIXME
  2254. //newDocument.querySelector('#icon-tc').addEventListener("click", disable, false);
  2255. const insertDocument = document.importNode(newDocument.documentElement, true);
  2256. const removeDocument = document.documentElement;
  2257. document.replaceChild(insertDocument, removeDocument);
  2258. let div = document.querySelector('#message');
  2259. if (div) {
  2260. div.innerHTML = `<h4>Proceeding to a privacy proxy frontend at <a href="${newUrl}" style="color:#7a7a7a;">${newUrl.hostname}</a></h4>`;
  2261. //div.onclick = () => {location.href = newUrl};
  2262. } else {
  2263. location.href = 'https://greasyfork.org/scripts/465936-proxy-redirect?autoredirect';
  2264. }
  2265. }
  2266.  
  2267. function noRespond(url, newUrl) {
  2268. let div = document.querySelector('#message');
  2269. div.innerHTML = `<h3>A third-party <a href="https://farside.link">Far Side</a> service is utilized to redirect.</h3><h3 style="color:#0000ff;">Redirecting within three seconds...</h3><h3><a href="${newUrl}">Click here</a> if the redirection does not occur automatically.</h3><hr/><h3>🐵 Greasemonkey requires your attention</h3><h4 style="color:#ff0000;">Proxy list appears to be out of date or API GM.xmlHttpRequest is missing!</h4><ul><li><h4>Update your <a href="https://greasyfork.org/scripts/465936-proxy-redirect">Proxy Redirect</a> installation; or</h4></li><li><h4>Proceed to the <span id="disable-proxy-redirect"><u>original page</u></span>.</h4></li></ul>`;
  2270. document.querySelector('#disable-proxy-redirect').onclick = () => {
  2271. sessionStorage.setItem('disableProxyRedirect', 'true');
  2272. location.reload();
  2273. };
  2274. }
  2275.  
  2276. // FIXME
  2277. // /questions/1397329/how-to-remove-the-hash-from-window-location-url-with-javascript-without-page-r
  2278. function disable() {
  2279. window.location.href =
  2280. window.location.href.substr(
  2281. 0,
  2282. window.location.href.indexOf('#'))
  2283. + '#noredirect';
  2284. }
  2285.  
  2286. /*
  2287. loop = setInterval(function() {
  2288. //modifyURL(location.href);
  2289. window.open(newURL,'_self');
  2290. //location.href = newURL;
  2291. console.info('Redirecting to ' + newURL);
  2292. clearInterval(loop);
  2293. }, 1000);
  2294. */
  2295.  
  2296. /*
  2297. function modifyURL() {
  2298. inst = pickURL();
  2299. // make function synchronous
  2300. // /questions/8778267/synchronous-gm-xmlhttprequest-acting-asynchronously
  2301. stat = statRES(inst);
  2302. if (stat.match(200)) {
  2303. newURL = settURL();
  2304. } else {
  2305. pickURL(url);
  2306. }
  2307. return newURL;
  2308. }
  2309. */
  2310.  
  2311. //(window.onload = alert()
  2312.  
  2313. // TODO Nested elements (i.e. element "a" inside another element)
  2314. // See "else if e.target.hasChildNodes()"
  2315.  
  2316. (function addEventListeners() {
  2317. document.addEventListener("DOMContentLoaded",
  2318. function() {
  2319. for (linkElement of document.links) {
  2320. // mouseover works with keyboard too
  2321. linkElement.addEventListener("mouseover",
  2322. async function(e) {
  2323. if (e.target && e.target.nodeName == "A") {
  2324. hyperLink = e.target;
  2325. await xhrHyperLink(hyperLink);
  2326. } // else if e.target.hasChildNodes()
  2327. },
  2328. {
  2329. once: true
  2330. }
  2331. );
  2332. }
  2333. }
  2334. );
  2335. })();
  2336.  
  2337. function linkOnError(node) {
  2338. node.style.color = 'orange';
  2339. node.style.fontStyle = 'italic';
  2340. node.title = 'Proxy state check was not possible. Please refresh and try again in case the offered page is offline.';
  2341. }
  2342.  
  2343. function linkOnFail(node) {
  2344. node.style.color = 'red';
  2345. node.style.fontStyle = 'italic';
  2346. node.title = 'No proxy was found. Utilizing Farside to intermediate proxy.';
  2347. }
  2348.  
  2349. function linkOnProgress(node) {
  2350. node.style.color = 'aquamarine';
  2351. node.title = 'Looking up for online proxy... Please wait.';
  2352. }
  2353.  
  2354. function linkOnSuccess(node) {
  2355. text = node.textContent
  2356. node.textContent = `🥸 ${text}`; // TODO enable once removeEventListener is solved.
  2357. node.title = 'Proxy link has been found!';
  2358. //node.removeAttribute('title');
  2359. node.style.color = 'forestgreen'; // TODO remove once removeEventListener is solved.
  2360. node.style.fontWeight = 'bold'; // TODO remove once removeEventListener is solved.
  2361. //node.removeAttribute('style'); // TODO enable once removeEventListener is solved.
  2362. }
  2363.  
  2364. function isValid(url, node) {
  2365. try {
  2366. url = new URL(url);
  2367. } catch (err) {
  2368. return;
  2369. }
  2370. let hostName = url.hostname;
  2371. let pathName = url.pathname;
  2372. // check by excluded
  2373. for (let i = 0; i < urlsMatchers.exclude.length; i++) {
  2374. //if (hostName.endsWith(urlsMatchers.exclude[i].host)) {
  2375. //if (hostName.match(urlsMatchers.exclude[i].host)) {
  2376. if (hostName == urlsMatchers.exclude[i].host ||
  2377. hostName == 'www.' + urlsMatchers.exclude[i].host) {
  2378. for (let j = 0; j < urlsMatchers.exclude[i].path.length; j++) {
  2379. if (pathName.includes('/' + urlsMatchers.exclude[i].path[j])) {
  2380. return 0; // exit further check
  2381. }
  2382. }
  2383. if (node) {
  2384. let text = node.outerText;
  2385. if (urlsMatchers.exclude[i].text) {
  2386. for (let j = 0; j < urlsMatchers.exclude[i].text.length; j++) {
  2387. if (text.match(urlsMatchers.exclude[i].text[j])) {
  2388. return 0; // exit further check
  2389. }
  2390. }
  2391. }
  2392. }
  2393. }
  2394. }
  2395. // continue to includeByHostname
  2396. for (let i = 0; i < urlsMatchers.includeByHostname.length; i++) {
  2397. // perhaps use 'match' and create a new object.array for domains with multiple subdomains
  2398. if (hostName == urlsMatchers.includeByHostname[i].host ||
  2399. hostName == 'www.' + urlsMatchers.includeByHostname[i].host) {
  2400. //if (hostName.endsWith(urlsMatchers.includeByHostname[i].host)) {
  2401. return 1;
  2402. }
  2403. }
  2404. // continue to specific
  2405. for (let i = 0; i < urlsMatchers.includeByPathname.length; i++) {
  2406. if (hostName.endsWith(urlsMatchers.includeByPathname[i].host)) {
  2407. for (let j = 0; j < urlsMatchers.includeByPathname[i].path.length; j++) {
  2408. if (pathName.startsWith('/' + urlsMatchers.includeByPathname[i].path[j])) {
  2409. return 1;
  2410. }
  2411. }
  2412. }
  2413. }
  2414. // continue to second-level-domain
  2415. for (let i = 0; i < urlsMatchers.includeBySLD.length; i++) {
  2416. partedHost = hostName.split('.');
  2417. partedHost.shift();
  2418. if (partedHost.join('.').match(urlsMatchers.includeBySLD[i].host)) {
  2419. //if (partedHost[partedHost.length-2].match(urlsMatchers.includeBySLD[i].host)) {
  2420. return 1;
  2421. }
  2422. }
  2423. // continue to second-level-domain and path
  2424. for (let i = 0; i < urlsMatchers.includeByPathnameAndSLD.length; i++) {
  2425. partedHost = hostName.split('.');
  2426. // TODO Test
  2427. if (partedHost[partedHost.length-2].match(urlsMatchers.includeByPathnameAndSLD[i].host)) {
  2428. for (let j = 0; j < urlsMatchers.includeByPathnameAndSLD[i].path.length; j++) {
  2429. if (pathName.startsWith('/' + urlsMatchers.includeByPathnameAndSLD[i].path[j])) {
  2430. return 1;
  2431. }
  2432. }
  2433. }
  2434. }
  2435. }
  2436.  
  2437. // var caller = (function xhr() {
  2438. async function xhrHyperLink(node) {
  2439. let url = node.href;
  2440. let valid = isValid(url, node);
  2441. if (!valid) {return;}
  2442. //let url = node.href;
  2443. //if (!url) {return;}
  2444. let instanceSelect = await pickInstance(url);
  2445. let result = await pickURL(instanceSelect);
  2446. if (!result) {return;}
  2447. let instanceName = result.name;
  2448. let instanceType = result.type;
  2449. let instanceUrl = result.url;
  2450. if (!url) {return;}
  2451. let newPath = modifyPathname(instanceName, url);
  2452. let newUrl = new URL(instanceUrl + newPath);
  2453. let counter = 0;
  2454.  
  2455. console.log(`
  2456. Setting Proxy to ${instanceName}
  2457. URL: ${newUrl}
  2458. `);
  2459.  
  2460. console.log(`
  2461. URL: ${url}
  2462. Selected: ${instanceUrl}
  2463. Pathname: ${newPath}
  2464. `);
  2465.  
  2466. try {
  2467. gmXmlhttpRequest({
  2468. method: 'GET',
  2469. url: instanceUrl,
  2470. synchronous: true,
  2471. onprogress: linkOnProgress(node),
  2472. onload: async function(response) {
  2473. if (response.finalUrl.startsWith(instanceUrl) && response.status == 200) {
  2474. newPath = modifyPathname(instanceName, url);
  2475. newUrl = new URL(instanceUrl + newPath);
  2476. node.href = newUrl;
  2477. linkOnSuccess(node)
  2478. } else {
  2479. instanceUrlPrint = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2480. instanceUrlPrint = instanceUrlPrint.replace(/\./g,'-');
  2481. console.warn('Instance URL ' + instanceUrl + ' might be out of service. URL has changed. Please report this to the developer.');
  2482. if (maxAttempts(instanceName, instanceType, counter)) {
  2483. instanceUrl = farSide(instanceName, instanceUrl);
  2484. if (!instanceUrl) {
  2485. instanceObj = await pickURL(instanceName);
  2486. instanceUrl = instanceObj.url;
  2487. }
  2488. newPath = modifyPathname(instanceName, url);
  2489. node.href = new URL(instanceUrl + newPath);
  2490. linkOnFail(node);
  2491. return;
  2492. }
  2493. maxAttempts(instanceName, instanceType, counter);
  2494. xhr();
  2495. }
  2496. },
  2497. onerror: async function(response) {
  2498. instanceUrlPrint = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2499. instanceUrlPrint = instanceUrlPrint.replace(/\./g,'-');
  2500. console.warn('Instance URL ' + instanceUrl + ' might be offline. Status error: ' + response.status + '. Please report this to the developer.');
  2501. instanceUrl = farSide(instanceName, instanceUrl);
  2502. if (!instanceUrl) {
  2503. instanceObj = await pickURL(instanceName);
  2504. instanceUrl = instanceObj.url;
  2505. }
  2506. newPath = modifyPathname(instanceName, url);
  2507. node.href = new URL(instanceUrl + newPath);
  2508. linkOnError(node);
  2509. if (maxAttempts(instanceName, instanceType, counter)) {
  2510. instanceUrl = farSide(instanceName, instanceUrl);
  2511. if (!instanceUrl) {
  2512. instanceObj = await pickURL(instanceName);
  2513. instanceUrl = instanceObj.url;
  2514. }
  2515. newPath = modifyPathname(instanceName, url);
  2516. node.href = new URL(instanceUrl + newPath);
  2517. linkOnFail(node);
  2518. return;
  2519. }
  2520. maxAttempts(instanceName, instanceType, counter);
  2521. xhr();
  2522. }
  2523. });
  2524. } catch (err) {
  2525. console.warn(err);
  2526. console.info('API GM.xmlHttpRequest does not seem to be available. Defaulting to Farside.link. Contribute your help in C++ to improve Greasemonkey for Falkon https://bugs.kde.org/show_bug.cgi?id=466533');
  2527. //pickURL();
  2528. instanceUrl = farSide(instanceName, instanceUrl);
  2529. if (!instanceUrl) {
  2530. instanceObj = await pickURL(instanceName);
  2531. instanceUrl = instanceObj.url;
  2532. }
  2533. //if ((proxy[instanceName].clearnet).filter(str => str.includes('farside.link')).length) {
  2534. // instanceUrl = (proxy[instanceName].clearnet).filter(str => str.includes('farside.link'))[0];
  2535. //}
  2536. newPath = modifyPathname(instanceName, url);
  2537. node.href = new URL(instanceUrl + newPath);
  2538. }
  2539. }
  2540.  
  2541. // var caller = (function xhr() {
  2542. var init = (async function xhrAddressBar() {
  2543. let url = document.location.href;
  2544. if (!url) {return;}
  2545. let valid = isValid(url);
  2546. if (!valid) {return;}
  2547. let instanceSelect = await pickInstance(url);
  2548. let result = await pickURL(instanceSelect);
  2549. if (!result) {return;}
  2550. let instanceName = result.name;
  2551. let instanceType = result.type;
  2552. let instanceUrl = result.url;
  2553. if (!url) {return;}
  2554. let newPath = modifyPathname(instanceName, url);
  2555. let newUrl = new URL(instanceUrl + newPath);
  2556. let counter = 0;
  2557.  
  2558. console.log(`
  2559. Setting Proxy to ${instanceName}
  2560. URL: ${newUrl}
  2561. `);
  2562.  
  2563. console.log(`
  2564. URL: ${url}
  2565. Selected: ${instanceUrl}
  2566. Pathname: ${newPath}
  2567. `);
  2568.  
  2569. try {
  2570. gmXmlhttpRequest({
  2571. method: 'GET',
  2572. url: instanceUrl,
  2573. synchronous: true,
  2574. onprogress: pageLoader(newUrl),
  2575. onload: async function(response) {
  2576. // FIXME wiki.slipfox.xyz and wikiless.bloatcat.tk are selected albeit none should be selected.
  2577. if (response.finalUrl.startsWith(instanceUrl) && response.status == 200) {
  2578. newPath = modifyPathname(instanceName, url);
  2579. newUrl = new URL(instanceUrl + newPath);
  2580. await wait(3);
  2581. location.href = newUrl;
  2582. } else {
  2583. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2584. instanceUrl = instanceUrl.replace(/\./g,'-');
  2585. console.warn('Instance URL ' + instanceUrl + ' might be out of service. URL has changed. Please report this to the developer.');
  2586. if (maxAttempts(instanceName, instanceType, counter)) {
  2587. instanceUrl = farSide(instanceName, instanceUrl);
  2588. if (!instanceUrl) {
  2589. instanceObj = await pickURL(instanceName);
  2590. instanceUrl = instanceObj.url;
  2591. }
  2592. newPath = modifyPathname(instanceName, url);
  2593. newUrl = new URL(instanceUrl + newPath);
  2594. noRespond(url, newUrl);
  2595. await wait(5);
  2596. location.href = newUrl;
  2597. }
  2598. maxAttempts(instanceName, instanceType, counter);
  2599. xhr();
  2600. }
  2601. },
  2602. onerror: async function(response) {
  2603. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2604. instanceUrl = instanceUrl.replace(/\./g,'-');
  2605. console.warn('Instance URL ' + instanceUrl + ' might be offline. Status error: ' + response.status + '. Please report this to the developer.');
  2606. if (maxAttempts(instanceName, instanceType, counter)) {
  2607. instanceUrl = farSide(instanceName, instanceUrl);
  2608. if (!instanceUrl) {
  2609. instanceObj = await pickURL(instanceName);
  2610. instanceUrl = instanceObj.url;
  2611. }
  2612. newPath = modifyPathname(instanceName, url);
  2613. newUrl = new URL(instanceUrl + newPath);
  2614. noRespond(url, newUrl);
  2615. await wait(5);
  2616. location.href = newUrl;
  2617. }
  2618. maxAttempts(instanceName, instanceType, counter);
  2619. xhr();
  2620. }
  2621. });
  2622. } catch (err) {
  2623. console.warn(err);
  2624. console.info('API GM.xmlHttpRequest does not seem to be available. Defaulting to Farside.link. Contribute your help in C++ to improve Greasemonkey for Falkon https://bugs.kde.org/show_bug.cgi?id=466533');
  2625. //pickURL();
  2626. instanceUrl = farSide(instanceName, instanceUrl);
  2627. if (!instanceUrl) {
  2628. instanceObj = await pickURL(instanceName);
  2629. instanceUrl = instanceObj.url;
  2630. }
  2631. //if ((proxy[instanceName].clearnet).filter(str => str.includes('farside.link')).length) {
  2632. // instanceUrl = (proxy[instanceName].clearnet).filter(str => str.includes('farside.link'))[0];
  2633. //}
  2634. newPath = modifyPathname(instanceName, url);
  2635. newUrl = new URL(instanceUrl + newPath);
  2636. await wait(3);
  2637. location.href = newUrl;
  2638. }
  2639. })();
  2640.  
  2641. function farSide(instanceName, instanceUrl) {
  2642. switch (instanceName) {
  2643. case '4get':
  2644. instanceUrl = 'https://farside.link/4get';
  2645. break;
  2646. case 'anonymousoverflow':
  2647. instanceUrl = 'https://farside.link/anonymousoverflow';
  2648. break;
  2649. case 'bibliogram':
  2650. instanceUrl = 'https://farside.link/bibliogram';
  2651. break;
  2652. case 'breezewiki':
  2653. instanceUrl = 'https://farside.link/breezewiki';
  2654. break;
  2655. case 'dumb':
  2656. instanceUrl = 'https://farside.link/dumb';
  2657. break;
  2658. case 'gothub':
  2659. instanceUrl = 'https://farside.link/gothub';
  2660. break;
  2661. case 'invidious':
  2662. instanceUrl = 'https://farside.link/invidious';
  2663. break;
  2664. case 'librarian':
  2665. instanceUrl = 'https://farside.link/librarian';
  2666. break;
  2667. case 'libreddit':
  2668. instanceUrl = 'https://farside.link/libreddit';
  2669. break;
  2670. case 'libremdb':
  2671. instanceUrl = 'https://farside.link/libremdb';
  2672. break;
  2673. case 'librex':
  2674. instanceUrl = 'https://farside.link/librex';
  2675. break;
  2676. case 'librey':
  2677. instanceUrl = 'https://farside.link/librey';
  2678. break;
  2679. case 'lingva':
  2680. instanceUrl = 'https://farside.link/lingva';
  2681. break;
  2682. case 'nitter':
  2683. instanceUrl = 'https://farside.link/nitter';
  2684. break;
  2685. case 'piped':
  2686. instanceUrl = 'https://farside.link/piped';
  2687. break;
  2688. case 'proxigram':
  2689. instanceUrl = 'https://farside.link/proxigram';
  2690. break;
  2691. case 'proxitok':
  2692. instanceUrl = 'https://farside.link/proxitok';
  2693. break;
  2694. case 'quetre':
  2695. instanceUrl = 'https://farside.link/quetre';
  2696. break;
  2697. case 'redlib':
  2698. instanceUrl = 'https://farside.link/redlib';
  2699. break;
  2700. case 'rimgo':
  2701. instanceUrl = 'https://farside.link/rimgo';
  2702. break;
  2703. case 'scribe':
  2704. instanceUrl = 'https://farside.link/scribe';
  2705. break;
  2706. case 'searx':
  2707. instanceUrl = 'https://farside.link/searxng';
  2708. break;
  2709. case 'simplytranslate':
  2710. instanceUrl = 'https://farside.link/simplytranslate';
  2711. break;
  2712. case 'teddit':
  2713. instanceUrl = 'https://farside.link/teddit';
  2714. break;
  2715. case 'whoogle':
  2716. instanceUrl = 'https://farside.link/whoogle';
  2717. break;
  2718. case 'wikiless':
  2719. instanceUrl = 'https://farside.link/wikiless';
  2720. break;
  2721. //case 'yacy':
  2722. // instanceUrl = 'https://farside.link/yacy';
  2723. // break;
  2724. default:
  2725. instanceUrl = 0;
  2726. }
  2727. return instanceUrl;
  2728. }
  2729.  
  2730. function maxAttempts(instanceName, instanceType, counter) {
  2731. counter = counter + 1;
  2732. if (counter == proxy[instanceName][instanceType].length) {
  2733. return true;
  2734. } else {
  2735. return counter;
  2736. }
  2737. }
  2738.  
  2739. function setValue(para, sourceURL) {
  2740. if (sourceURL.searchParams.get(para)) {
  2741. para = [para];
  2742. return pickParameters(para, sourceURL);
  2743. } else {
  2744. return 'auto';
  2745. }
  2746. }
  2747.  
  2748. function pickParameters(para, sourceURL) {
  2749. for (let i = 0; i < para.length; i++) {
  2750. if (sourceURL.searchParams.get(para[i])) {
  2751. para = sourceURL.searchParams.get(para[i]);
  2752. sourceURL.searchParams.delete(para[i]);
  2753. return para;
  2754. }
  2755. }
  2756. }
  2757.  
  2758. /*
  2759.  
  2760. FIXME Check whether instance is enabled.
  2761. TODO Do not add instance is is disabled,
  2762. so that the redirector will not halt
  2763. when a disabled instance is chosen.
  2764.  
  2765. */
  2766.  
  2767. async function pickInstance(url) {
  2768.  
  2769. let sourceURL = new URL(url);
  2770. let paras = ['continue', 'retpath'];
  2771.  
  2772. for (let i = 0; i < paras.length; i++) {
  2773. if (sourceURL.searchParams.get(paras[i])) {
  2774. //sourceURL = pickParameters(paras[i], sourceURL);
  2775. sourceURL = sourceURL.searchParams.get(paras[i]);
  2776. sourceURL = new URL(sourceURL);
  2777. }
  2778. }
  2779.  
  2780. let hostname = sourceURL.hostname;
  2781. let pathname = sourceURL.pathname;
  2782. let instanceName;
  2783. let instanceNameArray = [];
  2784.  
  2785. switch (true) {
  2786.  
  2787. case hostname == 'bandcamp.com':
  2788. case hostname == 'www.bandcamp.com':
  2789. case hostname.endsWith('.bandcamp.com'):
  2790. instanceName = 'tent';
  2791. break;
  2792.  
  2793. case hostname == 'bilibili.com':
  2794. case hostname == 'www.bilibili.com':
  2795. case hostname.endsWith('.bilibili.com'):
  2796. instanceName = 'mikuinvidious';
  2797. break;
  2798.  
  2799. //case pathname.startsWith('/magnet/') && (hostname == 'bt4g.org' || hostname == 'www.bt4g.org'):
  2800. //case pathname.startsWith('/magnet/') && hostname == 'bt4gprx.com' || hostname == 'www.bt4gprx.com':
  2801. case pathname.startsWith('/hash/') && hostname == 'downloadtorrentfile.com' || hostname == 'www.downloadtorrentfile.com':
  2802. case hostname == 'torrentdownload.info':
  2803. case hostname == 'www.torrentdownload.info':
  2804. case hostname == 'torrentz.eu':
  2805. case hostname == 'www.torrentz.eu':
  2806. case hostname == 'torrentz.me':
  2807. case hostname == 'www.torrentz.me':
  2808. case hostname == 'torrentz2.is':
  2809. case hostname == 'www.torrentz2.is':
  2810. instanceName = 'btdigg';
  2811. break;
  2812.  
  2813. //case hostname == 'fandom.com':
  2814. //case hostname == 'www.fandom.com':
  2815. case hostname.endsWith('.fandom.com'):
  2816. instanceName = 'breezewiki';
  2817. break;
  2818.  
  2819. case hostname == 'github.com':
  2820. case hostname == 'www.github.com':
  2821. case hostname.endsWith('.github.com'):
  2822. instanceName = 'gothub';
  2823. break;
  2824.  
  2825. case hostname == 'gitlab.com':
  2826. case hostname == 'www.gitlab.com':
  2827. instanceName = 'laboratory';
  2828. break;
  2829.  
  2830. case hostname == 'goodreads.com':
  2831. case hostname == 'www.goodreads.com':
  2832. instanceName = 'biblioreads';
  2833. break;
  2834.  
  2835. // TODO quadkey (mapquest)
  2836. // NOTE quadkeyToTile(quadkey) See /mapbox/tilebelt
  2837. case hostname.endsWith('wikimap.toolforge.org'):
  2838. case (hostname.endsWith('moovitapp.com') &&
  2839. sourceURL.search.includes('tll')):
  2840. case (hostname.endsWith('bing.com') &&
  2841. pathname.startsWith('/maps')):
  2842. case (hostname.includes('google.') &&
  2843. pathname.startsWith('/maps')):
  2844. case (hostname.includes('waze.com') &&
  2845. pathname.startsWith('/live-map')):
  2846. case (hostname.includes('waze.com') &&
  2847. pathname.startsWith('/ul')):
  2848. case (hostname.includes('yandex.') &&
  2849. pathname.startsWith('/maps')):
  2850. instanceNameArray.push('facilmap');
  2851. instanceNameArray.push('openstreetmap');
  2852. break;
  2853.  
  2854. case hostname == 'imdb.com':
  2855. case hostname == 'www.imdb.com':
  2856. instanceName = 'libremdb';
  2857. break;
  2858.  
  2859. case hostname == 'imgur.com':
  2860. case hostname == 'www.imgur.com':
  2861. //instanceNameArray.push('imgin');
  2862. instanceNameArray.push('rimgo');
  2863. break;
  2864.  
  2865. case hostname == 'instructables.com':
  2866. case hostname == 'www.instructables.com':
  2867. instanceNameArray.push('destructables');
  2868. instanceNameArray.push('indestructables');
  2869. break;
  2870.  
  2871. case hostname == 'instagram.com':
  2872. case hostname == 'www.instagram.com':
  2873. //instanceNameArray.push('bibliogram');
  2874. instanceNameArray.push('proxigram');
  2875. break;
  2876.  
  2877. //case hostname == 'medium.com':
  2878. //case hostname == 'www.medium.com':
  2879. case hostname == 'medium.com':
  2880. case hostname == 'www.medium.com':
  2881. case hostname.endsWith('.medium.com'):
  2882. instanceNameArray.push('libmedium');
  2883. instanceNameArray.push('scribe');
  2884. break;
  2885.  
  2886. case hostname == 'odysee.com':
  2887. case hostname == 'www.odysee.com':
  2888. instanceName = 'librarian';
  2889. break;
  2890.  
  2891. case hostname == 'quora.com':
  2892. case hostname == 'www.quora.com':
  2893. instanceName = 'quetre';
  2894. break;
  2895.  
  2896. case hostname == 'reddit.com':
  2897. case hostname == 'old.reddit.com':
  2898. case hostname == 'www.reddit.com':
  2899. case hostname == 'preview.redd.it':
  2900. instanceNameArray.push('libreddit');
  2901. instanceNameArray.push('redlib');
  2902. instanceNameArray.push('teddit');
  2903. break;
  2904.  
  2905. case hostname == 'reuters.com':
  2906. case hostname == 'www.reuters.com':
  2907. instanceName = 'neuters';
  2908. break;
  2909.  
  2910. // FIXME
  2911. case (hostname.startsWith('search.yahoo.')):
  2912. //case (pathname.startsWith('/search')):
  2913. case (hostname.includes('yandex.') &&
  2914. pathname.startsWith('/search')):
  2915. case (hostname.includes('yahoo.') &&
  2916. pathname.startsWith('/search')):
  2917. case (hostname.includes('bing.') &&
  2918. pathname.startsWith('/search')):
  2919. case (hostname.includes('google.') &&
  2920. pathname.startsWith('/search')):
  2921. instanceNameArray.push('4get');
  2922. instanceNameArray.push('librex');
  2923. instanceNameArray.push('librey');
  2924. instanceNameArray.push('lieu');
  2925. instanceNameArray.push('metastem');
  2926. instanceNameArray.push('searx');
  2927. instanceNameArray.push('spot');
  2928. instanceNameArray.push('whoogle');
  2929. break;
  2930.  
  2931. case hostname == 'stackoverflow.com':
  2932. case hostname == 'www.stackoverflow.com':
  2933. instanceName = 'anonymousoverflow';
  2934. break;
  2935.  
  2936. case hostname == 'tiktok.com':
  2937. case hostname == 'www.tiktok.com':
  2938. instanceName = 'proxitok';
  2939. break;
  2940.  
  2941. case (hostname.endsWith('translate.yandex.com')):
  2942. // FIXME website blocks us from redirecting
  2943. // function setTimeout() seems to not work
  2944. // consider different approach/way
  2945. case (hostname.endsWith('translate.google.com')):
  2946. instanceNameArray.push('lingva');
  2947. instanceNameArray.push('simplytranslate');
  2948. break;
  2949.  
  2950. case (hostname.endsWith('.tumblr.com')):
  2951. instanceName = 'priviblur';
  2952. break;
  2953.  
  2954. case hostname == 'twitter.com':
  2955. case hostname == 'www.twitter.com':
  2956. case hostname == 'x.com':
  2957. case hostname == 'www.x.com':
  2958. instanceName = 'nitter';
  2959. break;
  2960.  
  2961. case hostname == 'urbandictionary.com':
  2962. case hostname == 'www.urbandictionary.com':
  2963. instanceName = 'ruraldictionary';
  2964. break;
  2965.  
  2966. case hostname == 'userscripts.org':
  2967. case hostname == 'www.userscripts.org':
  2968. instanceName = 'uso';
  2969. break;
  2970.  
  2971. //case hostname == 'wikipedia.org':
  2972. //case hostname == 'www.wikipedia.org':
  2973. case hostname.endsWith('.wikipedia.org'):
  2974. // instanceNameArray.push('everybodywiki');
  2975. // instanceNameArray.push('metastemwiki');
  2976. instanceNameArray.push('wikiless');
  2977. // instanceNameArray.push('wikiwand');
  2978. break;
  2979.  
  2980. case hostname == 'youtu.be':
  2981. case hostname == 'www.youtu.be':
  2982. case hostname == 'youtube.com':
  2983. case hostname == 'www.youtube.com':
  2984. case hostname == 'youtube-nocookie.com':
  2985. case hostname == 'www.youtube-nocookie.com':
  2986. //case hostname.endsWith('invidious-invidious.invidious.svc.cluster.local:3000'):
  2987. instanceNameArray.push('alltube');
  2988. instanceNameArray.push('cloudtube');
  2989. instanceNameArray.push('invidious');
  2990. instanceNameArray.push('materialious');
  2991. instanceNameArray.push('piped');
  2992. // //instanceNameArray.push('pipedmaterial');
  2993. instanceNameArray.push('poketube');
  2994. instanceNameArray.push('tubo');
  2995. break;
  2996.  
  2997. //default:
  2998. // return target;
  2999.  
  3000. }
  3001.  
  3002. // proxy select
  3003. if (instanceNameArray.length) {
  3004. instanceName = instanceNameArray[Math.floor(Math.random()*instanceNameArray.length)];
  3005. //urlArray = proxyArray[Math.floor(Math.random()*proxyArray.length)];
  3006. }
  3007.  
  3008. return instanceName;
  3009.  
  3010. }
  3011.  
  3012. function removeParameters(sourceURL) {
  3013.  
  3014. switch (sourceURL.hostname) {
  3015. case 'youtube.com':
  3016. case 'www.youtube.com':
  3017. case 'youtube-nocookie.com':
  3018. case 'www.youtube-nocookie.com':
  3019. sourceURL.searchParams.delete('app')
  3020. break;
  3021. }
  3022.  
  3023. return sourceURL;
  3024.  
  3025. }
  3026.  
  3027. // TODO
  3028. // Settle hostname
  3029. function modifyHostname(instanceName, url) {
  3030. let lang, partedHost;
  3031. let sourceURL = new URL(url);
  3032. let hostname = sourceURL.hostname;
  3033.  
  3034. switch (instanceName) {
  3035.  
  3036. case 'everybodywiki':
  3037. // extract language code
  3038. partedHost = hostname.split('.');
  3039. if (partedHost.length === 3 || partedHost.length === 4) {
  3040. lang = partedHost[0];
  3041. }
  3042. newHostname = `${lang}.everybodywiki.com`;
  3043. sourceURL.hostname = newHostname;
  3044. break;
  3045.  
  3046. }
  3047.  
  3048. return sourceURL;
  3049.  
  3050. }
  3051.  
  3052. // Settle pathname
  3053. function modifyPathname(instanceName, url) {
  3054. let brand, lang, name, newPath, para, partedHost;
  3055. let sourceURL = new URL(url);
  3056. //url = removeParameters(sourceURL);
  3057. let pathname = sourceURL.pathname;
  3058. let hostname = sourceURL.hostname;
  3059. //let parameter = sourceURL.searchParams;
  3060.  
  3061. switch (instanceName) {
  3062.  
  3063. // NOTE This "case" is not required albeit it makes the URL more clear
  3064. case 'alltube':
  3065. cleansedUrl = removeParameters(sourceURL);
  3066. newPath = `/info?url=${cleansedUrl}`;
  3067. break;
  3068.  
  3069. // consider function setTimeout()
  3070. case 'bibliogram':
  3071. if (!pathname.includes('accounts/login')) {
  3072. newPath = `/u/${para}`;
  3073. } else {
  3074. if (sourceURL.searchParams.get('next')) {
  3075. para = ['next'];
  3076. para = pickParameters(para, sourceURL);
  3077. newPath = `/u/${para}`;
  3078. }
  3079. }
  3080. break;
  3081.  
  3082. case 'breezewiki':
  3083. // extract wiki name
  3084. partedHost = hostname.split('.');
  3085. if (partedHost.length === 3 || partedHost.length === 4) {
  3086. brand = partedHost[0];
  3087. }
  3088. newPath = `/${brand}${pathname}`;
  3089. break;
  3090.  
  3091. case 'btdigg':
  3092. // extract sha1sum
  3093. //hash = pathname.split('/')[2];
  3094. let hash = pathname.split('/');
  3095. for (let i = 0; i < hash.length; i++) {
  3096. if (hash[i].length === 40 || hash[i].length === 33) {
  3097. hash = hash[i];
  3098. break;
  3099. }
  3100. }
  3101. newPath = `/${hash}`;
  3102. break;
  3103.  
  3104. case 'cloudtube':
  3105. case 'invidious':
  3106. case 'piped':
  3107. case 'pipedmaterial':
  3108. case 'poketube':
  3109. if (sourceURL.searchParams.get('v')) {
  3110. para = ['v'];
  3111. para = pickParameters(para, sourceURL);
  3112. newPath = `/watch?v=${para}`;
  3113. }
  3114. break;
  3115.  
  3116. case 'libreddit':
  3117. case 'redlib':
  3118. case 'teddit':
  3119. let newPathPart;
  3120. if (instanceName == 'teddit') {
  3121. newPathPart = '/pics/w:null_';
  3122. } else {
  3123. newPathPart = '/img/';
  3124. }
  3125. if (hostname == 'preview.redd.it') {
  3126. newPath = `${newPathPart}${pathname}`;
  3127. } else
  3128. if (hostname.endsWith('reddit.com') && pathname == '/media' && sourceURL.searchParams.get('url')) {
  3129. let extractedURL = new URL(sourceURL.searchParams.get('url'))
  3130. if (extractedURL.hostname == 'preview.redd.it') {
  3131. extractedPathname = extractedURL.pathname.split('-').pop();
  3132. extractedPathname = extractedPathname.replace('/','');
  3133. newPath = `${newPathPart}${extractedPathname}`;
  3134. }
  3135. }
  3136. break;
  3137.  
  3138. case 'gothub':
  3139. if (hostname.endsWith('gist.github.com')) {
  3140. newPath = `/gist${pathname}`;
  3141. }
  3142. break;
  3143.  
  3144. case 'laboratory':
  3145. newPath = '/' + hostname + pathname;
  3146. break;
  3147.  
  3148. // case 'libmedium':
  3149. //partedHost = hostname.split('.');
  3150. //if (partedHost.length === 3 || partedHost.length === 4) {
  3151. // name = partedHost[0];
  3152. //}
  3153. //newPath = `/@${name}${pathname}`;
  3154. // newPath = pathname;
  3155. // break;
  3156.  
  3157. case 'librex':
  3158. case 'metastem':
  3159. case 'spot':
  3160. // extract search parameter
  3161. para = ['q', 'text', 'p'];
  3162. para = pickParameters(para, sourceURL);
  3163. newPath = `/search.php?q=${para}`;
  3164. break;
  3165.  
  3166. case 'lingva':
  3167. // extract text parameter
  3168. let paras = ['sl', 'tl', 'text'];
  3169.  
  3170. for (let i = 0; i < paras.length; i++) {
  3171. paras[i] = setValue(paras[i], sourceURL);
  3172. }
  3173.  
  3174. //if (paras[2] === 'auto') { paras[2] = ''; }
  3175.  
  3176. if ((paras[0] == 'auto') && (paras[1] == 'auto')) {
  3177. newPath = `/${paras[2]}`;
  3178. } else {
  3179. newPath = `/${paras[0]}/${paras[1]}/${paras[2]}`;
  3180. }
  3181. break;
  3182.  
  3183. case 'facilmap':
  3184. case 'openstreetmap':
  3185. // extract coordinations
  3186. /*
  3187. if (pathname.includes('@')) {
  3188. cord = pathname.split('/')[2].split('&')[0].slice(1);
  3189. cord = cord.split(',');
  3190. }
  3191. newPath = '/#map=' + cord[2].slice(0, 1) +
  3192. '/' + cord[0] + '/' + cord[1];
  3193. */
  3194. let cord, lat, lon, zoom;
  3195. // extract coordinations
  3196. if (sourceURL.search.includes('%7E')) { // %7E is ~
  3197. para = ['cp'];
  3198. cord = pickParameters(para, sourceURL);
  3199. cord = cord.split('~');
  3200. para = ['lvl'];
  3201. zoom = pickParameters(para, sourceURL);
  3202. lat = cord[0];
  3203. lon = cord[1];
  3204. } else
  3205. if (sourceURL.search.includes('to')) {
  3206. para = ['to'];
  3207. cord = pickParameters(para, sourceURL);
  3208. cord = cord.slice(3).split(',');
  3209. lat = cord[0];
  3210. lon = cord[1];
  3211. } else
  3212. if (pathname.includes('ul') &&
  3213. sourceURL.search.includes('ll')) {
  3214. para = ['ll'];
  3215. cord = pickParameters(para, sourceURL);
  3216. cord = cord.split(',');
  3217. para = ['zoom'];
  3218. zoom = pickParameters(para, sourceURL);
  3219. lat = cord[0];
  3220. lon = cord[1];
  3221. } else
  3222. if (sourceURL.search.includes('ll')) {
  3223. para = ['ll'];
  3224. cord = pickParameters(para, sourceURL);
  3225. cord = cord.split(',');
  3226. para = ['z'];
  3227. zoom = pickParameters(para, sourceURL);
  3228. lat = cord[0];
  3229. lon = cord[1];
  3230. } else
  3231. if (sourceURL.search.includes('tll')) {
  3232. para = ['tll'];
  3233. cord = pickParameters(para, sourceURL);
  3234. cord = cord.split('_');
  3235. lat = cord[0];
  3236. lon = cord[1];
  3237. } else
  3238. if (pathname.includes('@')) {
  3239. partedPath = pathname.split('/')
  3240. for (let i = 0; i < partedPath.length; i++) {
  3241. if (partedPath[i].startsWith('@')) {
  3242. cord = partedPath[i].split(',');
  3243. }
  3244. }
  3245. lat = cord[0].slice(1);
  3246. lon = cord[1];
  3247. zoom = cord[2];
  3248. //newPath = `/#map=${cord[2].slice(0, 2)}/${cord[0].slice(1)}/${cord[1]}`;
  3249. //newPath = `/#map=${cord[2]}/${cord[0].slice(1)}/${cord[1]}`;
  3250. //newPath = `/#${cord[2]}/${cord[0].slice(1)}/${cord[1]}/`;
  3251. }
  3252.  
  3253. if (lat && lon && zoom) {
  3254. newPath = `/#${zoom}/${lat}/${lon}/`;
  3255. } else
  3256. if (lat && lon && !zoom) {
  3257. newPath = `/#10/${lat}/${lon}/`;
  3258. }
  3259.  
  3260. if (!newPath && sourceURL.searchParams.get('q')) {
  3261. para = ['q'];
  3262. para = pickParameters(para, sourceURL);
  3263. newPath = `/search?query=${para}`;
  3264. instanceUrl = 'https://www.openstreetmap.org'; // TODO Check why this line exist
  3265. }
  3266. break;
  3267.  
  3268. case 'lieu':
  3269. case 'searx':
  3270. case 'whoogle':
  3271. // extract search parameter
  3272. para = ['q', 'text', 'p'];
  3273. para = pickParameters(para, sourceURL);
  3274. newPath = `/search?q=${para}`;
  3275. break;
  3276.  
  3277. case 'metastemwiki':
  3278. // extract language code
  3279. partedHost = hostname.split('.');
  3280. if (partedHost.length === 3 || partedHost.length === 4) {
  3281. lang = partedHost[0];
  3282. }
  3283. newPath = `/#${pathname}/${lang}`;
  3284. break;
  3285.  
  3286. case 'mikuinvidious':
  3287. if (!hostname.startsWith('www.')) {
  3288. partedHost = hostname.split('.');
  3289. if (partedHost.length === 3 || partedHost.length === 4) {
  3290. name = partedHost[0];
  3291. }
  3292. newPath = `/${name}${pathname}`;
  3293. }
  3294. break;
  3295.  
  3296. case 'priviblur':
  3297. if (hostname == '64.media.tumblr.com') {
  3298. newPath = `/tblr/media/64${pathname}`;
  3299. } else {
  3300. partedHost = hostname.split('.');
  3301. if (partedHost.length === 3 || partedHost.length === 4) {
  3302. subname = partedHost[0];
  3303. }
  3304. pathname = pathname.replace('/image/', '/post/');
  3305. if (pathname == '/library') {pathname = '';}
  3306. if (subname == 'www') {subname = '';}
  3307. newPath = `/${subname}${pathname}`;
  3308. }
  3309. break;
  3310.  
  3311. case 'tent':
  3312. partedHost = hostname.split('.');
  3313. if (partedHost.length === 3 || partedHost.length === 4) {
  3314. artist = partedHost[0];
  3315. }
  3316. partedPath = pathname.split('/');
  3317. type = partedPath[1];
  3318. name = partedPath[2];
  3319. if (name) {
  3320. newPath = `/release.php?artist=${artist}&type=${type}&name=${name}`;
  3321. } else {
  3322. newPath = `/release.php?artist=${artist}&type=${type}`;
  3323. }
  3324. break;
  3325.  
  3326. case 'wikiless':
  3327. // extract language code
  3328. partedHost = hostname.split('.');
  3329. if (partedHost.length === 3 || partedHost.length === 4) {
  3330. lang = partedHost[0];
  3331. }
  3332. newPath = `${pathname}?lang=${lang}`;
  3333. break;
  3334.  
  3335. case 'wikiwand':
  3336. // extract language code
  3337. partedHost = hostname.split('.');
  3338. if (partedHost.length === 3 || partedHost.length === 4) {
  3339. lang = partedHost[0];
  3340. }
  3341. partedPath = pathname.split('/');
  3342. pathname = partedPath[2];
  3343. newPath = `/${lang}/${pathname}`;
  3344. break;
  3345.  
  3346. case 'yacy':
  3347. // extract search parameter
  3348. para = ['q', 'text', 'p'];
  3349. //pickParameters(para, sourceURL); // works even when just calling the function?
  3350. para = pickParameters(para, sourceURL);
  3351. newPath = `/yacysearch.html?query=${para}`;
  3352. break;
  3353.  
  3354. }
  3355.  
  3356. if (!newPath || newPath == '/') {
  3357. newPath = pathname + sourceURL.search + sourceURL.hash;
  3358. }
  3359.  
  3360. return newPath;
  3361.  
  3362. }
  3363.  
  3364. (async function registerMenuCommand(){
  3365. try {
  3366. for (let key in proxy) {
  3367. let keyValue = await GM.getValue(key, true);
  3368. let icon, status, value;
  3369. if (keyValue) {
  3370. icon = '🔀'
  3371. status = 'on';
  3372. value = false;
  3373. } else {
  3374. icon = '🔁'
  3375. status = 'off';
  3376. value = true;
  3377. }
  3378. await GM.registerMenuCommand(`${icon} ${key} [${status}]`.toUpperCase(), () => toggleStatus(key, value, status));
  3379. }
  3380. for (let key of ['dhttp', 'i2p', 'loki', 'tor', 'veilid', 'yggdrasil']) {
  3381. let keyValue = await GM.getValue(key, false);
  3382. let icon, status, value;
  3383. if (keyValue) {
  3384. icon = '🔒'
  3385. status = 'on';
  3386. value = false;
  3387. } else {
  3388. icon = '🔓'
  3389. status = 'off';
  3390. value = true;
  3391. }
  3392. await GM.registerMenuCommand(`${icon} ${key} system [${status}]`.toUpperCase(), () => toggleStatus(key, value, status), key[0]);
  3393. }
  3394. } catch (err) {
  3395. console.warn(err);
  3396. console.info('API GM.registerMenuCommand does not seem to be available.');
  3397. }
  3398. })();
  3399.  
  3400. async function toggleStatus(key, value, status) {
  3401. await GM.setValue(key, value);
  3402. //alert(`${key} is now ${status}d`)
  3403. //location.reload();
  3404. }
  3405.  
  3406. (function instanceSwitcher(){
  3407. document.addEventListener("DOMContentLoaded",
  3408. async function() {
  3409. let instanceSelect = isInstance();
  3410. if (instanceSelect) {
  3411. infoBar(instanceSelect);
  3412. //proxyButton(instanceSelect);
  3413. reverseURL(location.href);
  3414. await GM.registerMenuCommand(`🎲️ Switch Instance`,
  3415. () => xhrInstanceSwitcher(instanceSelect), 'S'); // ↻ ↯ ↫
  3416. }
  3417. });
  3418. })();
  3419.  
  3420. // TODO
  3421. function reverseURL() {
  3422.  
  3423. // NOTE Useful for bookmarking original URL
  3424.  
  3425. }
  3426.  
  3427. // Check whether current page is a proxy instance
  3428. // If it is, create a menu command and a top bar to switch with another instance.
  3429. function isInstance(){
  3430. for (i in proxy) {
  3431. for (j in proxy[i]) {
  3432. for (k in proxy[i][j]) {
  3433. let url
  3434. url = proxy[i][j][k];
  3435. url = new URL(url);
  3436. if (location.hostname == url.hostname) {
  3437. instanceName = i;
  3438. return instanceName;
  3439. }
  3440. }
  3441. }
  3442. }
  3443. }
  3444.  
  3445. function proxyButton(instanceSelect) {
  3446. let namespace = 'i2p-schimon-proxy-button';
  3447. let bttn = document.createElement(namespace);
  3448. bttn.id = namespace;
  3449. document.body.append(bttn);
  3450. let icon = document.createElement(namespace);
  3451. bttn.append(icon)
  3452. let text = document.createElement(namespace);
  3453. bttn.append(text)
  3454. text.textContent = `Switch ${instanceSelect} instance`;
  3455. // set color
  3456. //text.style.borderWidth = '5px';
  3457. //text.style.borderRadius = '5px';
  3458. //text.style.borderColor = 'red';
  3459. //text.style.background = 'black';
  3460. //text.style.color = 'whitesmoke';
  3461. // set position
  3462. text.style.display = 'none';
  3463. text.style.position = 'fixed';
  3464. text.style.bottom = 0;
  3465. text.style.right = 0;
  3466. text.style.marginTop = '100px';
  3467. text.style.marginRight = '60px';
  3468. text.style.minHeight = '40px';
  3469. // set font
  3470. text.style.fontFamily = 'system-ui';
  3471. text.style.fontSize = '20px';
  3472. text.style.fontStyle = 'italic';
  3473. text.style.fontWeight = 'bold';
  3474. //icon.title = `🥸 Switch ${instanceSelect} instance`;
  3475. // set content
  3476. icon.textContent = '🥸';
  3477. icon.style.all = 'unset';
  3478. // set font
  3479. icon.style.fontFamily = 'system-ui';
  3480. icon.style.fontSize = '20px';
  3481. icon.style.fontWeight = 'bold';
  3482. // set position
  3483. icon.style.position = 'fixed';
  3484. icon.style.bottom = 0;
  3485. icon.style.right = 0;
  3486. // set appearance
  3487. icon.style.marginTop = '100px';
  3488. icon.style.marginRight = '10px';
  3489. icon.style.minWidth = '50px';
  3490. icon.style.minHeight = '50px';
  3491. icon.style.zIndex = 10000;
  3492. icon.style.opacity = 0.5;
  3493. //icon.style.transition = 'all .5s ease .5s';
  3494. // center character
  3495. icon.style.justifyContent = 'center';
  3496. icon.style.alignItems = 'center';
  3497. icon.style.display = 'flex';
  3498. // disable selection marks
  3499. icon.style.outline = 'none';
  3500. bttn.style.userSelect = 'none';
  3501. bttn.style.cursor = 'default';
  3502. bttn.onmouseover = () => {
  3503. //bttn.textContent = `Switch ${instanceSelect} instance 🥸`;
  3504. icon.style.opacity = 'unset';
  3505. text.style.display = 'unset';
  3506. };
  3507. bttn.onmouseleave = () => {
  3508. icon.textContent = `🥸`;
  3509. icon.style.opacity = 0.8;
  3510. text.style.display = 'none';
  3511. };
  3512. bttn.onclick = async () => {
  3513. await xhrInstanceSwitcher(instanceSelect);
  3514. };
  3515. }
  3516.  
  3517. function getOriginalLink(instanceSelect) {
  3518. let lang, originalLink, originalPath, splitPathname;
  3519. let sourceURL = new URL(location.href);
  3520. let pathname = sourceURL.pathname;
  3521. pathname = pathname.replace('//', '/');
  3522. //let hostname = sourceURL.hostname;
  3523. switch (instanceSelect) {
  3524. case 'alltube':
  3525. originalLink = sourceURL.searchParams.get('url').replace('/www.','/');
  3526. break;
  3527. case 'anonymousoverflow':
  3528. // NOTE Not good due to I2P and onion not having HTTP(S)
  3529. //sourceURL.hostname = 'stackoverflow.com';
  3530. //originalLink = sourceURL;
  3531. originalLink = `https://stackoverflow.com${pathname}`;
  3532. break;
  3533. case 'biblioreads':
  3534. originalLink = `https://goodreads.com${pathname}`;
  3535. break;
  3536. case 'breezewiki':
  3537. splitPathname = pathname.split('/');
  3538. splitPathname.shift();
  3539. let brand = splitPathname.shift();
  3540. originalPath = splitPathname.join('/');
  3541. originalLink = `https://${brand}.fandom.com/${originalPath}`;
  3542. break;
  3543. case 'btdigg':
  3544. if (location.href.includes('/search?')) {
  3545. originalLink = sourceURL;
  3546. } else {
  3547. hash = pathname.split('/')[1];
  3548. originalLink = `magnet:?xt=urn:btih:${hash}`;
  3549. }
  3550. break;
  3551. case 'cloudtube':
  3552. case 'invidious':
  3553. case 'materialious':
  3554. case 'piped':
  3555. case 'pipedmaterial':
  3556. case 'poketube':
  3557. let pageId;
  3558. if (pathname.includes('/embed/') || instanceSelect == 'materialious') {
  3559. pageId = pathname.split('/')[2];
  3560. } else {
  3561. pageId = sourceURL.searchParams.get('v');
  3562. }
  3563. originalLink = `https://youtube.com/watch?v=${pageId}`;
  3564. break;
  3565. case 'destructables':
  3566. case 'indestructables':
  3567. originalLink = `https://instructables.com${pathname}`;
  3568. break;
  3569. case 'gothub':
  3570. originalLink = `https://github.com${pathname}`;
  3571. break;
  3572. case 'laboratory':
  3573. originalLink = `https://${pathname}`;
  3574. break;
  3575. case 'libmedium':
  3576. splitPathname = pathname.split('/');
  3577. //let handler = splitPathname[1].substring(1);
  3578. let handler = splitPathname[1];
  3579. originalPath = splitPathname[2];
  3580. originalLink = `https://${handler}.medium.com/${originalPath}`;
  3581. break;
  3582. case 'libremdb':
  3583. originalLink = `https://imdb.com${pathname}`;
  3584. break;
  3585. case 'librarian':
  3586. originalLink = `https://odysee.com${pathname}`;
  3587. break;
  3588. case 'nitter':
  3589. originalLink = `https://twitter.com${pathname}`;
  3590. break;
  3591. case 'neuters':
  3592. originalLink = `https://reuters.com${pathname}`;
  3593. break;
  3594. case 'proxitok':
  3595. originalLink = `https://tiktok.com${pathname}`;
  3596. break;
  3597. case 'quetre':
  3598. originalLink = `https://quora.com${pathname}`;
  3599. break;
  3600. case 'libreddit':
  3601. case 'redlib':
  3602. case 'teddit':
  3603. if (pathname.includes('/img/')) {
  3604. filename = pathname.split('/')[2];
  3605. originalLink = `https://preview.redd.it/${filename}`;
  3606. } else
  3607. if (pathname.includes('/pics/')) {
  3608. filename = pathname.split('/')[2].replace('w:null_', '');
  3609. originalLink = `https://preview.redd.it/${filename}`;
  3610. } else {
  3611. originalLink = `https://reddit.com${pathname}`;
  3612. }
  3613. break;
  3614. case 'metastemwiki':
  3615. splitHash = sourceURL.hash.split('/')
  3616. lang = splitHash[3];
  3617. pathname = splitHash[2];
  3618. originalLink = `https://${lang}.wikipedia.org/wiki/${pathname}`;
  3619. break;
  3620. case 'imgin':
  3621. case 'rimgo':
  3622. originalLink = `https://imgur.com${pathname}`;
  3623. break;
  3624. case 'scribe':
  3625. originalLink = `https://medium.medium.com${pathname}`;
  3626. break;
  3627. case 'tent':
  3628. let artist = sourceURL.searchParams.get('artist');
  3629. let name = sourceURL.searchParams.get('name');
  3630. let type = sourceURL.searchParams.get('type');
  3631. if (type) {
  3632. originalLink = `https://${artist}.bandcamp.com/${type}/${name}`;
  3633. } else {
  3634. originalLink = `https://${artist}.bandcamp.com/`;
  3635. }
  3636. break;
  3637. case 'wikiless':
  3638. lang = sourceURL.searchParams.get('lang');
  3639. if (!lang) {
  3640. lang = document.querySelector('html').lang;
  3641. }
  3642. originalLink = `https://${lang}.wikipedia.org${pathname}`;
  3643. break;
  3644. case 'wikiwand':
  3645. splitPathname = pathname.split('/')
  3646. lang = splitPathname[1];
  3647. pathname = splitPathname[2];
  3648. originalLink = `https://${lang}.wikipedia.org/wiki/${pathname}`;
  3649. break;
  3650. default:
  3651. originalLink = ``;
  3652. }
  3653. return originalLink;
  3654. }
  3655.  
  3656. function infoBar(instanceSelect) {
  3657. let originalLink = getOriginalLink(instanceSelect);
  3658. let namespace = 'i2p-schimon-proxy-bar';
  3659. let bar = document.createElement(namespace);
  3660. document.body.prepend(bar);
  3661. bar.id = namespace;
  3662. instanceSelectCapitalized = instanceSelect[0].toUpperCase() + instanceSelect.substring(1);
  3663. //bar.title = 'Click to switch to another instance';
  3664. bar.style.all = 'unset';
  3665. bar.style.direction = 'ltr';
  3666. bar.style.backgroundColor = '#f1f1f1';
  3667. bar.style.color = '#000';
  3668. bar.style.borderTop = 'ridge';
  3669. bar.style.fontFamily = 'system-ui';
  3670. bar.style.fontSize = '0.8em'
  3671. //bar.style.fontSize = 'larger';
  3672. bar.style.right = 0;
  3673. bar.style.left = 0;
  3674. bar.style.bottom = 0;
  3675. bar.style.zIndex = 10000000000;
  3676. //bar.style.padding = '6px';
  3677. bar.style.position = 'fixed';
  3678. //bar.style.textAlign = 'center';
  3679. bar.style.userSelect = 'none';
  3680. bar.style.opacity = 0.5;
  3681. //bar.onmouseleave = () => { // onmouseout
  3682. // bar.style.opacity = 0.8;
  3683. //};
  3684. bar.onmouseover = () => { // mouseenter
  3685. bar.style.opacity = 'unset';
  3686. };
  3687. bar.style.display = 'block';
  3688. //bar.style.lineHeight = '40px';
  3689. document.body.style.marginBottom = '40px';
  3690. // TODO Hide when screen is too narrow to hold all elements in one line
  3691. let spanTitle = document.createElement('span');
  3692. spanTitle.textContent = 'URL';
  3693. spanTitle.title = `${instanceSelectCapitalized}`;
  3694. spanTitle.style.margin = '5px';
  3695. spanTitle.style.fontWeight = 'bold';
  3696. bar.append(spanTitle);
  3697. let text = document.createElement('input');
  3698. text.value = originalLink;
  3699. text.style.all = 'unset';
  3700. text.style.margin = '3px';
  3701. //text.style.minWidth = '30%';
  3702. text.style.background = '#fff';
  3703. text.style.borderRadius = '10px';
  3704. text.style.borderStyle = 'inset';
  3705. text.style.borderColor = '-internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133))';
  3706. bar.append(text);
  3707. let spanSelect = document.createElement('span');
  3708. spanSelect.textContent = 'Select';
  3709. spanSelect.title = 'Select an instance';
  3710. spanSelect.style.margin = '5px';
  3711. spanSelect.style.fontWeight = 'bold';
  3712. bar.append(spanSelect);
  3713. let select = document.createElement('select');
  3714. select.style.all = 'unset';
  3715. select.style.textAlign = 'left';
  3716. select.style.margin = '3px';
  3717. //select.style.maxWidth = '30%';
  3718. select.style.background = '#fff';
  3719. select.style.borderRadius = '10px';
  3720. select.style.borderStyle = 'inset';
  3721. select.style.borderColor = '-internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133))';
  3722. select.oninput = async () => {replaceOrigin(select.value);};
  3723. bar.append(select);
  3724. for (i in proxy[instanceSelect]) {
  3725. for (j of proxy[instanceSelect][i]) {
  3726. let option = document.createElement('option');
  3727. option.textContent = j;
  3728. option.value = j;
  3729. select.append(option);
  3730. }
  3731. }
  3732. let buttons = document.createElement('span');
  3733. buttons.style.float = 'right';
  3734. let buttonSwitch = document.createElement('button');
  3735. buttonSwitch.textContent = '🎲️ Random';
  3736. buttonSwitch.title = 'Switch instance randomly';
  3737. buttonSwitch.style.all = 'unset';
  3738. buttonSwitch.style.margin = '3px';
  3739. buttonSwitch.onclick = async () => {await xhrInstanceSwitcher(instanceSelect);};
  3740. buttons.append(buttonSwitch);
  3741. let buttonReturn = document.createElement('button');
  3742. buttonReturn.textContent = '🏠️ Return';
  3743. buttonReturn.title = 'Return to origin page (click twice)';
  3744. buttonReturn.style.all = 'unset';
  3745. buttonReturn.style.margin = '3px';
  3746. buttonReturn.ondblclick = async () => {location.href = originalLink;};
  3747. buttons.append(buttonReturn);
  3748. let buttonClose = document.createElement('button');
  3749. buttonClose.textContent = '🚪️ Close';
  3750. buttonClose.title = 'Close this bar';
  3751. buttonClose.style.all = 'unset';
  3752. //buttonClose.style.fontWeight = 'bold';
  3753. buttonClose.style.margin = '3px';
  3754. buttonClose.style.marginRight = '15px';
  3755. buttonClose.onclick = async () => {bar.remove();};
  3756. buttons.append(buttonClose);
  3757. bar.append(buttons);
  3758. //let span = document.createElement('span');
  3759. //span.textContent = 'Proxy Redirect';
  3760. ////span.style.fontWeight = 'normal';
  3761. ////span.style.fontStyle = 'italic';
  3762. //span.style.margin = '3px';
  3763. //bar.append(span);
  3764. }
  3765.  
  3766. function replaceOrigin(newUrl) {
  3767. let url = new URL(location.href);
  3768. let pathname = url.pathname + url.search;
  3769. location.href = newUrl + pathname;
  3770. //url.origin = newUrl;
  3771. //location.href = url
  3772. }
  3773.  
  3774. async function pickURL(instanceName) {
  3775. // instance select
  3776. let urlArray, telecomSystem;
  3777. if (instanceName && await GM.getValue(instanceName, true)) {
  3778. for (let key of ['dhttp', 'i2p', 'loki', 'tor', 'veilid', 'yggdrasil']) {
  3779. if (await GM.getValue(key, false) &&
  3780. proxy[instanceName][key].length) {
  3781. urlArray = proxy[instanceName][key];
  3782. telecomSystem = key;
  3783. break;
  3784. }
  3785. }
  3786. if (!urlArray) {
  3787. urlArray = proxy[instanceName].clearnet;
  3788. telecomSystem = 'clearnet';
  3789. }
  3790. let urlSelect = urlArray[Math.floor(Math.random()*urlArray.length)];
  3791. return {name : instanceName, url : urlSelect, type : telecomSystem};
  3792. }
  3793. }
  3794.  
  3795. async function xhrInstanceSwitcher(instanceSelect) {
  3796. let url = location.href;
  3797. let result = await pickURL(instanceSelect);
  3798. if (!result) {return;}
  3799. let instanceName = result.name;
  3800. let instanceType = result.type;
  3801. let instanceUrl = result.url;
  3802. if (!url) {return;}
  3803. let newPath = location.pathname + location.search;
  3804. let newUrl = new URL(instanceUrl + newPath);
  3805. let counter = 0;
  3806.  
  3807. console.log(`
  3808. Setting Proxy to ${instanceName}
  3809. URL: ${newUrl}
  3810. `);
  3811.  
  3812. console.log(`
  3813. URL: ${url}
  3814. Selected: ${instanceUrl}
  3815. Pathname: ${newPath}
  3816. `);
  3817.  
  3818. try {
  3819. gmXmlhttpRequest({
  3820. method: 'GET',
  3821. url: instanceUrl,
  3822. synchronous: true,
  3823. onprogress: pageLoader(newUrl),
  3824. onload: async function(response) {
  3825. if (response.finalUrl.startsWith(instanceUrl) && response.status == 200) {
  3826. newUrl = new URL(instanceUrl + newPath);
  3827. await wait(3);
  3828. location.href = newUrl;
  3829. } else {
  3830. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  3831. instanceUrl = instanceUrl.replace(/\./g,'-');
  3832. console.warn('Instance URL ' + instanceUrl + ' might be out of service. URL has changed. Please report this to the developer.');
  3833. if (maxAttempts(instanceName, instanceType, counter)) {
  3834. instanceUrl = farSide(instanceName, instanceUrl);
  3835. if (!instanceUrl) {
  3836. instanceObj = await pickURL(instanceName);
  3837. instanceUrl = instanceObj.url;
  3838. }
  3839. newPath = modifyPathname(instanceName, url);
  3840. newUrl = new URL(instanceUrl + newPath);
  3841. noRespond(url, newUrl);
  3842. await wait(5);
  3843. location.href = newUrl;
  3844. }
  3845. maxAttempts(instanceName, instanceType, counter);
  3846. xhr();
  3847. }
  3848. },
  3849. onerror: async function(response) {
  3850. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  3851. instanceUrl = instanceUrl.replace(/\./g,'-');
  3852. console.warn('Instance URL ' + instanceUrl + ' might be offline. Status error: ' + response.status + '. Please report this to the developer.');
  3853. if (maxAttempts(instanceName, instanceType, counter)) {
  3854. instanceUrl = farSide(instanceName, instanceUrl);
  3855. if (!instanceUrl) {
  3856. instanceObj = await pickURL(instanceName);
  3857. instanceUrl = instanceObj.url;
  3858. }
  3859. newPath = modifyPathname(instanceName, url);
  3860. newUrl = new URL(instanceUrl + newPath);
  3861. noRespond(url, newUrl);
  3862. await wait(5);
  3863. location.href = newUrl;
  3864. }
  3865. maxAttempts(instanceName, instanceType, counter);
  3866. xhr();
  3867. }
  3868. });
  3869. } catch (err) {
  3870. console.warn(err);
  3871. console.info('API GM.xmlHttpRequest does not seem to be available. Defaulting to Farside.link. Contribute your help in C++ to improve Greasemonkey for Falkon https://bugs.kde.org/show_bug.cgi?id=466533');
  3872. //pickURL();
  3873. instanceUrl = farSide(instanceName, instanceUrl);
  3874. if (!instanceUrl) {
  3875. instanceObj = await pickURL(instanceName);
  3876. instanceUrl = instanceObj.url;
  3877. }
  3878. //if ((proxy[instanceName].clearnet).filter(str => str.includes('farside.link')).length) {
  3879. // instanceUrl = (proxy[instanceName].clearnet).filter(str => str.includes('farside.link'))[0];
  3880. //}
  3881. newUrl = new URL(instanceUrl + newPath);
  3882. await wait(3);
  3883. location.href = newUrl;
  3884. }
  3885. }
  3886.  
  3887. async function wait(seconds) {
  3888. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  3889. }