Proxy Redirect

Redirect to privacy respecting proxy frontends

当前为 2024-12-11 提交的版本,查看 最新版本

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