Proxy Redirect

Redirect to privacy respecting proxy frontends

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

  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.11.04
  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 biblioreads.ga
  39. // @connect btdig.i2p
  40. // @connect btdig.com
  41. // @connect btdigggink2pdqzqrik3blmqemsbntpzwxottujilcdjfz56jumzfsyd.onion
  42. // @connect bus-hit.me
  43. // @connect cadence.moe
  44. // @connect catfluori.de
  45. // @connect cblgh.org
  46. // @connect censors.us
  47. // @connect chauvet.pro
  48. // @connect citizen4.eu
  49. // @connect cowfee.moe
  50. // @connect creller.net
  51. // @connect crewz.me
  52. // @connect cn.i2p
  53. // @connect datatunnel.xyz
  54. // @connect dcs0.hu
  55. // @connect domain.glass
  56. // @connect datura.network
  57. // @connect duckdns.org
  58. // @connect ducks.party
  59. // @connect dynabyte.ca
  60. // @connect ebnar.xyz
  61. // @connect envs.net
  62. // @connect esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion
  63. // @connect etsi.me
  64. // @connect exarius.org
  65. // @connect facilmap.org
  66. // @connect farside.link
  67. // @connect fdn.fr
  68. // @connect flokinet.to
  69. // @connect flux.industries
  70. // @connect fmac.xyz
  71. // @connect froth.zone
  72. // @connect gatti.ninja
  73. // @connect ggc-project.de
  74. // @connect ggtyler.dev
  75. // @connect gnu.style
  76. // @connect go.metastem.su
  77. // @connect grimneko.de
  78. // @connect hostux.net
  79. // @connect hxvy0.gq
  80. // @connect hyperborea.cloud
  81. // @connect iket.me
  82. // @connect il.ax
  83. // @connect incogniweb.net
  84. // @connect incogsnoo.com
  85. // @connect invak.id
  86. // @connect jamiethalacker.dev
  87. // @connect jeikobu.net
  88. // @connect jewtube.i2p
  89. // @connect jing.rocks
  90. // @connect josias.dev
  91. // @connect jpope.org
  92. // @connect k62ptris7p72aborr4zoanee7xai6wguucveptwgxs5vbgt7qzpq.b32.i2p
  93. // @connect kavin.rocks
  94. // @connect kittywi.re
  95. // @connect kylrth.com
  96. // @connect ledditqo2mxfvlgobxnlhrkq4dh34jss6evfkdkb2thlvy6dn4f4gpyd.onion
  97. // @connect libredd.it
  98. // @connect libreddit.de
  99. // @connect libreddit.eu.org
  100. // @connect libreddit.hu
  101. // @connect libreddit.nl
  102. // @connect lingva.ml
  103. // @connect lqs5fjmajyp7rvp4qvyubwofzi6d4imua7vs237rkc4m5qogitqwrgyd.onion
  104. // @connect lr.n8pjl.ca
  105. // @connect lunar.icu
  106. // @connect melmac.space
  107. // @connect mint.lgbt
  108. // @connect moeyy.cn
  109. // @connect moomoo.me
  110. // @connect mywire.org
  111. // @connect mdosch.de
  112. // @connect monocles.de
  113. // @connect nadeko.net
  114. // @connect neet.works
  115. // @connect neuters.de
  116. // @connect netlify.app
  117. // @connect ngn.tf
  118. // @connect nitter.hu
  119. // @connect nitter.it
  120. // @connect nitter.net
  121. // @connect nitter.one
  122. // @connect nixnet.services
  123. // @connect no-logs.com
  124. // @connect nogoo.me
  125. // @connect northboot.xyz
  126. // @connect nttr.stream
  127. // @connect ononoki.org
  128. // @connect ooguy.com
  129. // @connect openstreetmap.org
  130. // @connect osi.kr
  131. // @connect oversold.host
  132. // @connect owacon.moe
  133. // @connect owo.si
  134. // @connect pabloferreiro.es
  135. // @connect paulgo.io
  136. // @connect pavot.ca
  137. // @connect phreedom.club
  138. // @connect piped.video
  139. // @connect poketube.fun
  140. // @connect priv.au
  141. // @connect privacy.com.de
  142. // @connect private.coffee
  143. // @connect projectsegfau.lt
  144. // @connect procurx.pt
  145. // @connect prvcy.eu
  146. // @connect puffyan.us
  147. // @connect pussthecat.org
  148. // @connect qwik.i2p
  149. // @connect qwikxx2erhx6qrymued6ox2qkf2yeogjwypqvzoif4fqkljixasr6oid.onion
  150. // @connect r.nf
  151. // @connect r4fo.com
  152. // @connect rabbit-company.com
  153. // @connect rasp.fr
  154. // @connect reallyaweso.me
  155. // @connect resrv.org
  156. // @connect revvy.de
  157. // @connect riverside.rocks
  158. // @connect rtrace.io
  159. // @connect scribe.rip
  160. // @connect search.cdev.nexus
  161. // @connect search.im-in.space
  162. // @connect search.zdechov.net
  163. // @connect searx.ankha.ac
  164. // @connect searx.be
  165. // @connect searx.ee
  166. // @connect searx.fi
  167. // @connect searx.ninja
  168. // @connect searx.ru
  169. // @connect sethforprivacy.com
  170. // @connect simplifiedprivacy.com
  171. // @connect simplytranslate.org
  172. // @connect smnz.de
  173. // @connect snopyta.org
  174. // @connect sny.sh
  175. // @connect some-things.org
  176. // @connect sp-codes.de
  177. // @connect spike.codes
  178. // @connect spjmllawtheisznfs7uryhxumin26ssv2draj7oope3ok3wuhy43eoyd.onion
  179. // @connect strongthany.cc
  180. // @connect stuehieyr.com
  181. // @connect sugoma.tk
  182. // @connect syncpundit.com
  183. // @connect teddit.i2p
  184. // @connect teddit.net
  185. // @connect tedditfyn6idalzso5wam5qd3kdtxoljjhbrbbx34q2xkcisvshuytad.onion
  186. // @connect theanonymouse.xyz
  187. // @connect tinfoil-hat.net
  188. // @connect tiekoetter.com
  189. // @connect tm4rwkeysv3zz3q5yacyr4rlmca2c4etkdobfvuqzt6vsfsu4weq.b32.i2p
  190. // @connect tokhmi.xyz
  191. // @connect totaldarkness.net
  192. // @connect trom.tf
  193. // @connect tromdienste.de
  194. // @connect tux.land
  195. // @connect tux.pizza
  196. // @connect tuxcloud.net
  197. // @connect tyil.nl
  198. // @connect unixfox.eu
  199. // @connect unofficialbird.com
  200. // @connect userscripts-mirror.org
  201. // @connect vernapl3lpo3huqdx3pjzxqgdgavxjlmdskbvejh2gfqgmjuyvxq.b32.i2p
  202. // @connect vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p
  203. // @connect vernmzgraj6aaoafmehupvtkkynpaa67rxcdj2kinwiy6konn6rq.b32.i2p
  204. // @connect vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion
  205. // @connect vern.cc
  206. // @connect vern.i2p
  207. // @connect voidnet.tech
  208. // @connect vojkovic.xyz
  209. // @connect voring.me
  210. // @connect walkx.org
  211. // @connect webheberg.info
  212. // @connect weblibre.org
  213. // @connect whatever.social
  214. // @connect whatevertinfoil.de
  215. // @connect wikiless.i2p
  216. // @connect wikiless.org
  217. // @connect winscloud.net
  218. // @connect yewtu.be
  219. // @connect yonalee.eu
  220. // @connect ytmous.i2p
  221. // @connect xanny.family
  222. // @connect yacy.iko.soy
  223. // @connect zackptg5.com
  224. // @connect zaggy.nl
  225. // @connect zhaocloud.net
  226. // @connect zzls.i2p
  227. // @connect zzls.xyz
  228. // @icon data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjRtbSIgaGVpZ2h0PSI2NG1tIiB2aWV3Qm94PSIwIDAgNjQgNjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZvbnQtd2VpZ2h0OjQwMDtmb250LXNpemU6MTkycHg7bGluZS1oZWlnaHQ6MDt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwO3dyaXRpbmctbW9kZTpsci10YjtkaXJlY3Rpb246bHRyO3RleHQtb3JpZW50YXRpb246bWl4ZWQ7ZG9taW5hbnQtYmFzZWxpbmU6YXV0bztiYXNlbGluZS1zaGlmdDpiYXNlbGluZTt0ZXh0LWFuY2hvcjpzdGFydDtzaGFwZS1wYWRkaW5nOjA7c2hhcGUtbWFyZ2luOjA7aW5saW5lLXNpemU6MDtvcGFjaXR5OjE7ZmlsbDojMDAwO2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDoxLjI3OTgyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO3N0b3AtY29sb3I6IzAwMDtzdG9wLW9wYWNpdHk6MSIgeD0iMTcuMDA1MjQ1IiB5PSIzMS42NTg0MDUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00LjQzNjg1NjQgNDAuODk0OTQpIHNjYWxlKC4yNjQ1OCkiPjx0c3BhbiB4PSIxNy4wMDUyNDUiIHk9IjMxLjY1ODQwNSIgc3R5bGU9ImZvbnQtc2l6ZToxOTJweCI+8J+luDwvdHNwYW4+PC90ZXh0Pjwvc3ZnPgo=
  229. // ==/UserScript==
  230.  
  231. //TODO
  232.  
  233. // Display bar at top to enable redirection for current page when all instances are not enabled.
  234.  
  235. // Add https://www.qwant.com/maps/#map=9.00/XXX/YYY
  236.  
  237. //Rebrand: Open Redirect, Proxy Redirect
  238. //Rebrand: Freelink, LibreProxy, Libreproxy, Open Link, Proxy Direct, Proxy Link, Proxy Redirect
  239.  
  240. /*
  241.  
  242. FIXME"
  243.  
  244. Read settings from function pickURL
  245.  
  246. if (await GM.getValue('libreddit')) {
  247. proxyArray.push(proxy.libreddit)
  248. }
  249. if (await GM.getValue('teddit')) {
  250. proxyArray.push(proxy.teddit)
  251. }
  252. proxyArray = [proxy.libreddit, proxy.teddit];
  253.  
  254. urlArray = []
  255. if (await GM.getValue('libred')) {
  256. urlArray.concat(proxy.libred)
  257. }
  258.  
  259. NOTE
  260. This program was inspired by Farside project from Ben Busby
  261. For more information: https://farside.link
  262.  
  263. TODO
  264.  
  265. Add RDX https://rdx.overdevs.com/
  266.  
  267. Brand
  268. FreeDirector, Free Direct, FreeDirect.js
  269. Open Redirector, Open Redirect, Open Direct, OpenDirect.js
  270. Redirect.js, Redirect.user.js, Redirector.js
  271. UserDirect, UserRedirect
  272.  
  273. FIXME
  274. // @match *://*.imgur.com/*
  275. // @exclude *://i.*.imgur.com/*
  276.  
  277. FIXME RegEx
  278. // @exclude /*.medium\.com\/*\/(c|fit|v2)\/.*$/
  279.  
  280. */
  281.  
  282. // https://github.com/makyen
  283. // https://github.com/greasemonkey/greasemonkey/issues/3160#issuecomment-1456758080
  284. const gmXmlhttpRequest = typeof GM_xmlhttpRequest === 'function' ? GM_xmlhttpRequest : GM.xmlHttpRequest;
  285.  
  286. //const url = location.href;
  287.  
  288. const urlsMatchers = {
  289. 'exclude' : [
  290. {
  291. 'addr' : 'gist.github.com',
  292. 'host' : 'gist.github.com',
  293. 'path' : [],
  294. 'text' : ['View on GitHub'],
  295. },
  296. {
  297. 'addr' : 'github.com',
  298. 'host' : 'github.com',
  299. // not-href -> perhaps starts with, ends with and inclusive
  300. 'path' : [
  301. 'actions', 'archive', 'blame', 'blob', 'codespaces', 'collections',
  302. 'commit', 'compare', 'contribute', 'customer-stories', 'delete',
  303. 'discussions', 'edit', 'enterprise', 'events', 'features', 'files',
  304. 'graphs', 'issues', 'labels', 'login', 'marketplace', 'milestones',
  305. 'notifications', 'orgs', 'password_reset', 'pricing', 'projects', 'pull', 'pulse',
  306. 'releases', 'security', 'sessions', 'settings', 'signup', 'solutions',
  307. 'sponsors', 'tags', 'team/', 'topics', 'tree', 'trending', 'wiki'
  308. ],
  309. 'text' : ['View on GitHub'],
  310. },
  311. {
  312. 'addr' : 'gitlab.com',
  313. 'host' : 'gitlab.com',
  314. 'path' : [
  315. 'activity', 'artifacts', 'boards', 'cadences', 'compare', 'commits', 'jobs',
  316. 'labels', 'merge_requests', 'network', 'path_locks', 'pipeline_schedules',
  317. 'pipelines', 'project_members', 'requirements_management', 'sign_in',
  318. 'starrers', 'subgroups', 'successful_verification', 'tags', 'test_cases',
  319. 'tree', 'uploads', 'wikis'
  320. ],
  321. },
  322. {
  323. 'addr' : 'imdb.com',
  324. 'host' : 'imdb.com',
  325. 'path' : ['reviews'],
  326. },
  327. {
  328. 'addr' : 'medium.com',
  329. 'host' : 'medium.com',
  330. 'path' : ['feed/', 'c/', 'fit/', 'format:', 'resize:fit:', 'v2/'],
  331. },
  332. {
  333. 'addr' : 'safereddit.com',
  334. 'host' : 'safereddit.com',
  335. 'path' : [''],
  336. },
  337. {
  338. 'addr' : 'stackoverflow.com/questions/',
  339. 'host' : 'stackoverflow.com',
  340. 'path' : ['tagged', 'users'], // /questions/tagged
  341. },
  342. {
  343. 'addr' : 'tiktok.com',
  344. 'host' : 'tiktok.com',
  345. 'path' : ['discover', 'playlist'],
  346. },
  347. {
  348. 'addr' : 'www.torrentdownload.info',
  349. 'host' : 'torrentdownload.info',
  350. 'path' : ['feed_latest', 'search?q='],
  351. },
  352. {
  353. 'addr' : 'torrentz.eu',
  354. 'host' : 'torrentz.eu',
  355. 'path' : ['search?f='],
  356. },
  357. {
  358. 'addr' : 'torrentz.me',
  359. 'host' : 'torrentz.me',
  360. 'path' : ['search?f='],
  361. },
  362. {
  363. 'addr' : 'torrentz2.eu',
  364. 'host' : 'torrentz2.eu',
  365. 'path' : ['search?f='],
  366. },
  367. {
  368. 'addr' : 'torrentz2.is',
  369. 'host' : 'torrentz2.is',
  370. 'path' : ['search?f='],
  371. },
  372. // {
  373. // 'addr' : 'youtube.com',
  374. // 'host' : 'youtube.com',
  375. // 'path' : ['users'],
  376. // 'text' : ['Watch on YouTube'],
  377. // }
  378. ], // hosts, paths and texts to exclude
  379.  
  380. 'includeByHostname' : [
  381. {
  382. 'addr' : 'bandcamp.com',
  383. 'host' : 'bandcamp.com',
  384. },
  385. {
  386. 'addr' : 'bilibili.com',
  387. 'host' : 'bilibili.com',
  388. },
  389. {
  390. 'addr' : 'fandom.com',
  391. 'host' : 'fandom.com',
  392. },
  393. {
  394. 'addr' : 'gist.github.com',
  395. 'host' : 'gist.github.com',
  396. },
  397. {
  398. 'addr' : 'github.com',
  399. 'host' : 'github.com',
  400. },
  401. {
  402. 'addr' : 'gitlab.com',
  403. 'host' : 'gitlab.com',
  404. },
  405. {
  406. 'addr' : 'goodreads.com',
  407. 'host' : 'goodreads.com',
  408. },
  409. {
  410. 'addr' : 'imdb.com',
  411. 'host' : 'imdb.com',
  412. },
  413. {
  414. 'addr' : 'imgur.com',
  415. 'host' : 'imgur.com',
  416. },
  417. {
  418. 'addr' : 'instructables.com',
  419. 'host' : 'instructables.com',
  420. },
  421. {
  422. 'addr' : 'instagram.com',
  423. 'host' : 'instagram.com',
  424. },
  425. {
  426. 'addr' : 'invidious-invidious.invidious.svc.cluster.local:3000',
  427. 'host' : 'invidious-invidious.invidious.svc.cluster.local:3000',
  428. },
  429. {
  430. 'addr' : 'medium.com',
  431. 'host' : 'medium.com',
  432. },
  433. {
  434. 'addr' : 'moovitapp.com',
  435. 'host' : 'moovitapp.com',
  436. },
  437. {
  438. 'addr' : 'odysee.com',
  439. 'host' : 'odysee.com',
  440. },
  441. {
  442. 'addr' : 'reddit.com',
  443. 'host' : 'reddit.com',
  444. },
  445. {
  446. 'addr' : 'old.reddit.com',
  447. 'host' : 'old.reddit.com',
  448. },
  449. {
  450. 'addr' : 'quora.com',
  451. 'host' : 'quora.com',
  452. },
  453. {
  454. 'addr' : 'reuters.com',
  455. 'host' : 'reuters.com',
  456. },
  457. {
  458. 'addr' : 'tiktok.com',
  459. 'host' : 'tiktok.com',
  460. },
  461. {
  462. 'addr' : 'www.torrentdownload.info',
  463. 'host' : 'torrentdownload.info',
  464. },
  465. {
  466. 'addr' : 'torrentz.eu',
  467. 'host' : 'torrentz.eu',
  468. },
  469. {
  470. 'addr' : 'torrentz.me',
  471. 'host' : 'torrentz.me',
  472. },
  473. {
  474. 'addr' : 'torrentz2.eu',
  475. 'host' : 'torrentz2.eu',
  476. },
  477. {
  478. 'addr' : 'torrentz2.is',
  479. 'host' : 'torrentz2.is',
  480. },
  481. {
  482. 'addr' : 'twitter.com',
  483. 'host' : 'twitter.com',
  484. },
  485. {
  486. 'addr' : 'urbandictionary.com',
  487. 'host' : 'urbandictionary.com',
  488. },
  489. {
  490. 'addr' : 'userscripts.org',
  491. 'host' : 'userscripts.org',
  492. },
  493. {
  494. 'addr' : 'wikimap.toolforge.org',
  495. 'host' : 'wikimap.toolforge.org',
  496. },
  497. {
  498. 'addr' : 'search.yahoo.co.jp',
  499. 'host' : 'yahoo.co.jp',
  500. },
  501. {
  502. 'addr' : 'youtu.be',
  503. 'host' : 'youtu.be',
  504. },
  505. {
  506. 'addr' : 'youtube.com',
  507. 'host' : 'youtube.com',
  508. },
  509. {
  510. 'addr' : 'x.com',
  511. 'host' : 'x.com',
  512. }
  513. ], // hosts to include
  514.  
  515. 'includeBySLD' : [
  516. {
  517. 'addr' : 'bandcamp.com',
  518. 'host' : 'bandcamp.com',
  519. },
  520. {
  521. 'addr' : 'medium.com',
  522. 'host' : 'medium.com',
  523. },
  524. {
  525. 'addr' : 'reddit.com', // old.reddit.com
  526. 'host' : 'reddit',
  527. },
  528. {
  529. 'addr' : 'tumblr.com',
  530. 'host' : 'tumblr',
  531. },
  532. {
  533. 'addr' : 'wikipedia.org',
  534. 'host' : 'wikipedia',
  535. },
  536. {
  537. 'addr' : 'x.com',
  538. 'host' : 'x.com',
  539. }
  540. ], // hosts to include by second-level-domain
  541.  
  542. 'includeByPathnameAndSLD' : [
  543. {
  544. 'addr' : 'google.com',
  545. 'host' : 'google',
  546. 'path' : ['search'],
  547. }
  548. ], // hosts to include by pathname and second-level-domain
  549.  
  550. 'includeByPathname' : [
  551. {
  552. 'addr' : 'bt4g.org/magnet/',
  553. 'host' : 'bt4g.org',
  554. 'path' : ['magnet'],
  555. },
  556. {
  557. 'addr' : 'bt4gprx.com/magnet/',
  558. 'host' : 'bt4gprx.com',
  559. 'path' : ['magnet'],
  560. },
  561. {
  562. 'addr' : 'bing.com/(maps|search)',
  563. 'host' : 'bing.com',
  564. 'path' : ['maps', 'search'],
  565. },
  566. {
  567. 'addr' : 'fandom.com/wiki',
  568. 'host' : 'fandom.com',
  569. 'path' : ['wiki'],
  570. },
  571. {
  572. 'addr' : 'google.com/maps',
  573. 'host' : 'google.com',
  574. 'path' : ['maps'],
  575. },
  576. // {
  577. // 'addr' : 'google.com/sorry',
  578. // 'host' : 'google.com',
  579. // 'path' : ['sorry'],
  580. // },
  581. {
  582. 'addr' : 'stackoverflow.com/questions/',
  583. 'host' : 'stackoverflow.com',
  584. 'path' : ['questions'],
  585. },
  586. {
  587. 'addr' : 'yahoo.com/search',
  588. 'host' : 'yahoo.com',
  589. 'path' : ['search'],
  590. },
  591. {
  592. 'addr' : '(www|ul).waze.com/(live-map|ul)',
  593. 'host' : 'waze.com',
  594. 'path' : ['live-map', 'ul'],
  595. },
  596. {
  597. 'addr' : 'yandex.com/(maps|search)',
  598. 'host' : 'yandex.com',
  599. 'path' : ['maps', 'search'],
  600. },
  601. // { // THIS PART OF CODE BELONGS TO FJYT
  602. // 'addr' : 'youtube-nocookie.com',
  603. // 'host' : 'youtube-nocookie.com',
  604. // 'path' : ['@', 'channel', 'watch'],
  605. // },
  606. // { // THIS PART OF CODE BELONGS TO FJYT
  607. // 'addr' : 'youtube.com',
  608. // 'host' : 'youtube.com',
  609. // 'path' : ['@', 'channel', 'watch'],
  610. // }
  611. ], // hosts to include by pathname
  612.  
  613. };
  614.  
  615. const proxy = {
  616. "4get": {
  617. "clearnet": [
  618. "https://4get.perennialte.ch",
  619. "https://4get.kizuki.lol",
  620. "https://search.mint.lgbt",
  621. "https://4get.dcs0.hu",
  622. "https://4get.zzls.xyz",
  623. "https://4get.seitan-ayoub.lol",
  624. "https://4get.sijh.net",
  625. "https://4g.ggtyler.dev",
  626. "https://4get.ca",
  627. "https://4get.silly.computer",
  628. "https://4getus.zzls.xyz",
  629. "https://4get.lvkaszus.pl",
  630. "https://4get.konakona.moe",
  631. "https://4get.hbubli.cc",
  632. "https://4get.plunked.party",
  633. "https://4get.etenie.pl",
  634. "https://4get.nadeko.net"
  635. ],
  636. "i2p": [],
  637. "loki": [],
  638. "tor": [
  639. "http://4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
  640. "http://4getus.zzls2vhse6jeahgdz5snle37dnngmbeh4jgug5xvsdpmlchaw3ieonid.onion",
  641. "http://4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
  642. "http://d6imk74yn4crbqnni3kwioogwpqrfi4kay6ci7nghl363ogy4atctiid.onion",
  643. "http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion"
  644. ],
  645. "yggdrasil": []
  646. },
  647. "anonymousoverflow": {
  648. "clearnet": [
  649. "https://ao.phreedom.club",
  650. "https://overflow.hostux.net",
  651. // "https://ao.foss.wtf",
  652. "https://ao.ngn.tf",
  653. "https://overflow.adminforge.de",
  654. "https://ao.owo.si",
  655. "https://ao.bloat.cat",
  656. "https://overflow.reallyaweso.me",
  657. "https://overflow.lunar.icu",
  658. // "https://anonymousoverflow.esmailelbob.xyz",
  659. "https://overflow.smnz.de",
  660. "https://ao.vern.cc",
  661. "https://code.whatever.social",
  662. "https://stackoverflow.vern.cc",
  663. "https://anonymousoverflow.vern.cc",
  664. "http://overflow.ducks.party",
  665. // "https://ao.bloatcat.tk",
  666. "https://se.chaotic.ninja",
  667. "https://anonymousoverflow.privacyfucking.rocks",
  668. "https://overflow.projectsegfau.lt",
  669. // "https://anonoverflow.frontendfriendly.xyz",
  670. "https://overflow.perennialte.ch",
  671. "https://anonymousoverflow.privacyredirect.com",
  672. // "https://overflow.fascinated.cc",
  673. "https://ao.rootdo.com"
  674. ],
  675. "i2p": [
  676. "http://vernmzgraj6aaoafmehupvtkkynpaa67rxcdj2kinwiy6konn6rq.b32.i2p"
  677. ],
  678. "loki": [],
  679. "tor": [
  680. "http://anonymousoverflow.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  681. "http://ao.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  682. ],
  683. "yggdrasil": [
  684. "http://[301:f69c:2017:b6b8::8]"
  685. ]
  686. },
  687. "bibliogram": {
  688. "clearnet": [
  689. "https://bib.actionsack.com",
  690. "https://bibliogram.art",
  691. "https://bibliogram.snopyta.org",
  692. "https://bibliogram.pussthecat.org",
  693. "https://bibliogram.1d4.us",
  694. "https://biblioreads.ducks.party",
  695. "https://insta.trom.tf",
  696. "https://bib.riverside.rocks",
  697. // "https://bibliogram.esmailelbob.xyz",
  698. "https://insta.privacy.com.de",
  699. "https://bibliogram.privacy.com.de",
  700. "https://bibliogram.domain.glass",
  701. "https://bibliogram.froth.zone",
  702. "https://insta.tromdienste.de"
  703. ],
  704. "i2p": [],
  705. "loki": [],
  706. "tor": [
  707. "http://qsuiaf4jio2yaxdbj6ljte3jmr6m7g333rujoilbtipjeawnou26frad.onion",
  708. "http://rlp5gt4d7dtkok3yaogocbcvrs2tdligjrxipsamztjq4wwpxzjeuxqd.onion"
  709. ],
  710. "yggdrasil": []
  711. },
  712. "biblioreads": {
  713. "clearnet": [
  714. "https://biblioreads.eu.org",
  715. // "https://biblioreads.esmailelbob.xyz",
  716. "https://biblioreads.lunar.icu",
  717. "https://biblioreads.ga",
  718. // "https://biblioreads.ml",
  719. "https://biblioreads.netlify.app",
  720. "https://bl.vern.cc",
  721. "https://biblioreads.privacyredirect.com"
  722. ],
  723. "i2p": [
  724. "http://vernapl3lpo3huqdx3pjzxqgdgavxjlmdskbvejh2gfqgmjuyvxq.b32.i2p"
  725. ],
  726. "loki": [],
  727. "tor": [
  728. "http://biblioreads.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  729. "http://bl.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  730. ],
  731. "yggdrasil": []
  732. },
  733. "binternet": {
  734. "clearnet": [
  735. "https://binternet.ducks.party",
  736. "https://binternet.ahwx.org",
  737. "https://bn.bloat.cat",
  738. "https://binternet.revvy.de",
  739. "https://bn.opnxng.com",
  740. "https://binternet.privacyfucking.rocks"
  741. ],
  742. "i2p": [
  743. "http://revznkqdwy7nmlzql66x226g3qnapiooss3rg2uajbj4rypxjnba.b32.i2p",
  744. "http://5cv2aw6jhe6la444vpn3jvo46442ls3ccgp3difx5ddlv5yf4hlq.b32.i2p"
  745. ],
  746. "loki": [],
  747. "tor": [
  748. "http://binternet.revvybrr6pvbx4n3j4475h4ghw4elqr4t5xo2vtd3gfpu2nrsnhh57id.onion",
  749. "http://binternet.skunky7dhv7nohsoalpwe3sxfz3fbkad7r3wk632riye25vqm3meqead.onion"
  750. ],
  751. "yggdrasil": []
  752. },
  753. "breezewiki": {
  754. "clearnet": [
  755. "https://antifandom.com",
  756. "https://bw.artemislena.eu",
  757. "https://breezewiki.pussthecat.org",
  758. "https://bw.projectsegfau.lt",
  759. "https://breeze.hostux.net",
  760. "https://breeze.nohost.network",
  761. "https://breezewiki.hyperreal.coffee",
  762. "https://breezewiki.nadeko.net",
  763. "https://bw.hamstro.dev",
  764. "https://fandom.reallyaweso.me",
  765. "https://breezewiki.frontendfriendly.xyz",
  766. "https://breezewiki.catsarch.com",
  767. "https://breeze.mint.lgbt",
  768. "https://breezewiki.woodland.cafe",
  769. "https://z.opnxng.com"
  770. ],
  771. "i2p": [
  772. "http://bw.vern.i2p"
  773. ],
  774. "loki": [],
  775. "tor": [],
  776. "yggdrasil": []
  777. },
  778. "btdigg": {
  779. "clearnet": [
  780. "https://btdig.com"
  781. ],
  782. "i2p": [
  783. "http://btdig.i2p"
  784. ],
  785. "loki": [],
  786. "tor": [
  787. "http://btdigggink2pdqzqrik3blmqemsbntpzwxottujilcdjfz56jumzfsyd.onion"
  788. ],
  789. "yggdrasil": []
  790. },
  791. "cloudtube": {
  792. "clearnet": [
  793. "https://tube.cadence.moe"
  794. ],
  795. "i2p": [],
  796. "loki": [],
  797. "tor": [],
  798. "yggdrasil": []
  799. },
  800. "destructables": {
  801. "clearnet": [
  802. "https://ds.vern.cc"
  803. ],
  804. "i2p": [],
  805. "loki": [],
  806. "tor": [],
  807. "yggdrasil": []
  808. },
  809. "dumb": {
  810. "clearnet": [
  811. "https://dumb.privacydev.net",
  812. "https://dumb.ducks.party",
  813. "https://dm.vern.cc",
  814. "https://dumb.reallyaweso.me",
  815. "https://dumb.lunar.icu",
  816. // "https://dumb.esmailelbob.xyz",
  817. "https://sing.whatever.social"
  818. ],
  819. "i2p": [
  820. "http://vernxpcpqi2y4uhu7to4rnjmyjjgzh3x3qxyzpmkhykefchkmleq.b32.i2p"
  821. ],
  822. "loki": [],
  823. "tor": [
  824. "http://dumb.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  825. "http://dm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  826. "http://dm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  827. ],
  828. "yggdrasil": []
  829. },
  830. "facilmap": {
  831. "clearnet": [
  832. "https://facilmap.org"
  833. ],
  834. "i2p": [],
  835. "loki": [],
  836. "tor": [],
  837. "yggdrasil": []
  838. },
  839. "gothub": {
  840. "clearnet": [
  841. "https://gothub.lunar.icu",
  842. // "https://gh.riverside.rocks",
  843. // "https://dev.gh.akisblack.dev",
  844. // "https://gothub.esmailelbob.xyz",
  845. "https://gothub.dev.projectsegfau.lt",
  846. // "https://gh.fascinated.cc",
  847. // "https://gh.whateveritworks.org",
  848. // "https://gothub.xbdm.fun",
  849. // "https://gothub.no-logs.com",
  850. "https://gothub.ducks.party",
  851. // "https://gh.creller.net",
  852. // "https://gh.akisblack.dev",
  853. // "https://gh.odyssey346.dev",
  854. "https://gh.phreedom.club",
  855. // "https://gh.vern.cc",
  856. "https://gothub.projectsegfau.lt",
  857. "https://gh.owo.si",
  858. "https://gothub.r4fo.com",
  859. "https://g.opnxng.com",
  860. // "https://gothub.frontendfriendly.xyz",
  861. "https://gothub.private.coffee"
  862. ],
  863. "i2p": [],
  864. "loki": [],
  865. "tor": [],
  866. "yggdrasil": []
  867. },
  868. //"imgin": {
  869. // "clearnet": [],
  870. // "i2p": [],
  871. // "loki": [],
  872. // "tor": [],
  873. // "yggdrasil": []
  874. //},
  875. "indestructables": {
  876. "clearnet": [
  877. "https://indestructables.private.coffee"
  878. ],
  879. "i2p": [],
  880. "loki": [],
  881. "tor": [],
  882. "yggdrasil": []
  883. },
  884. "alltube": {
  885. "clearnet": [
  886. "https://alltube.private.coffee"
  887. ],
  888. "i2p": [],
  889. "loki": [],
  890. "tor": [],
  891. "yggdrasil": []
  892. },
  893. "invidious": {
  894. "clearnet": [
  895. "https://invidious.yourdevice.ch",
  896. "https://inv.nadeko.net",
  897. "https://incogtube.com",
  898. "https://vid.puffyan.us",
  899. "https://yt.artemislena.eu",
  900. "https://iteroni.com",
  901. // "https://inv.oikei.net",
  902. "https://invidious.snopyta.org",
  903. "https://invidious.jing.rocks",
  904. "https://youtube.076.ne.jp",
  905. "https://invidious.osi.kr",
  906. // "https://invidious-us.kavin.rocks",
  907. // "https://inv.cthd.icu",
  908. // "https://invidious.namazso.eu",
  909. "https://yewtu.be",
  910. "https://invidio.xamh.de",
  911. // "https://invidious.kavin.rocks",
  912. "https://invidious.reallyaweso.me",
  913. "https://monocles.live",
  914. "https://inv.riverside.rocks",
  915. "https://invidious.lunar.icu",
  916. "https://y.com.sb",
  917. "https://inv.bp.projectsegfau.lt",
  918. "https://invidious.privacyredirect.com",
  919. "https://invidious.flokinet.to",
  920. "https://invidious.sethforprivacy.com",
  921. // "https://invidious.esmailelbob.xyz",
  922. "https://ytb.trom.tf",
  923. "https://invidious.domain.glass",
  924. // "https://tube.cthd.icu",
  925. "https://inv.vern.cc",
  926. "https://invidious.garudalinux.org",
  927. "https://youtube.owacon.moe",
  928. "https://invidious.tinfoil-hat.net",
  929. "https://iv.melmac.space",
  930. "https://invidious.tiekoetter.com",
  931. "https://invidious.baczek.me",
  932. "https://invidious.no-logs.com",
  933. "https://invidious.incogniweb.net",
  934. "https://invidious.0011.lt",
  935. "https://yt.funami.tech",
  936. "https://inv.tux.pizza",
  937. "https://vid.priv.au",
  938. "https://not-ytb.blocus.ch",
  939. "https://inv.creller.net",
  940. "https://inv.zzls.xyz",
  941. "https://yt.floss.media",
  942. // "https://invidious.slipfox.xyz",
  943. "https://par1.iv.ggtyler.dev",
  944. "https://inv.citw.lgbt",
  945. "https://invidious.io.lol",
  946. "https://yt.oelrichsgarcia.de",
  947. "https://iv.nboeck.de",
  948. "https://invidious.protokolla.fi",
  949. "https://invidious.fi",
  950. "https://onion.tube",
  951. "https://inv.in.projectsegfau.lt",
  952. "https://invidious.privacydev.net",
  953. "https://invidious.takebackourtech.org",
  954. "https://qc1.iv.ggtyler.dev",
  955. "https://anontube.lvkaszus.pl",
  956. "https://invidious.asir.dev",
  957. "https://invidious.fdn.fr",
  958. "https://iv.datura.network",
  959. "https://invidious.private.coffee",
  960. "https://inv.pistasjis.net",
  961. "https://invidious.pavot.ca",
  962. "https://yt.cdaut.de",
  963. "https://yt.drgnz.club",
  964. "https://invidious.perennialte.ch",
  965. "https://yt.chaotic.ninja",
  966. "https://yt.omada.cafe",
  967. "https://super8.absturztau.be",
  968. "https://i.redsnake.io",
  969. "https://watch.supernets.org",
  970. "https://invidious.qwik.space",
  971. // "https://inv.odyssey346.dev",
  972. "https://invidious.mutahar.rocks",
  973. "https://invidious.nerdvpn.de",
  974. "https://invidious.projectsegfau.lt",
  975. "https://invidious.weblibre.org",
  976. "https://iv.ggtyler.dev",
  977. // "https://watch.thekitty.zone",
  978. "https://inv.us.projectsegfau.lt",
  979. "https://invidious.drgns.space",
  980. "https://invidious.kalli.st"
  981. ],
  982. "i2p": [
  983. "http://tube.i2p",
  984. "http://inv.cn.i2p",
  985. "http://jewtube.i2p",
  986. "http://ytmous.i2p",
  987. "http://pa7eextqat4wg35onzs4cnlhqa3gvzen243bcbrng67zyla4fqya.b32.i2p",
  988. "http://inv.vern.i2p",
  989. "http://inv.zzls.i2p",
  990. "http://invidious.qwik.i2p",
  991. "http://verni6dr4qxjgjumnvesxerh5rvhv6oy5ddeibaqy5d7tgbiiyfa.b32.i2p"
  992. ],
  993. "loki": [],
  994. "tor": [
  995. "http://tuberyps2pn6dor6h47brof3w2asmauahhk4ei42krugybzzzo55klad.onion",
  996. "http://qwikxxeiw4kgmml6vjw2bsxtviuwjce735dunai2djhu6q7qbacq73id.onion",
  997. "http://qwikxxt6jvggxzxe2v2fuzro5j7ibgphxmblmri6wkj5vpicdbo2kwad.onion",
  998. "http://inv.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion",
  999. "http://c7hqkpkpemu6e7emz5b4vyz7idjgdvgaaa3dyimmeojqbgpea3xqjoid.onion",
  1000. "http://grwp24hodrefzvjjuccrkw3mjq4tzhaaq32amf33dzpmuxe7ilepcmad.onion",
  1001. "http://invidious.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  1002. "http://euxxcnhsynwmfidvhjf6uzptsmh4dipkmgdmcmxxuo7tunp3ad2jrwyd.onion",
  1003. "http://invidious.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  1004. "http://iv.odysfvr23q5wgt7i456o5t3trw2cw5dgn56vbjfbq2m7xsc5vqbqpcyd.onion",
  1005. "http://kbjggqkzv65ivcqj6bumvp337z6264huv5kpkwuv6gu5yjiskvan7fad.onion",
  1006. "http://ng27owmagn5amdm7l5s3rsqxwscl5ynppnis5dqcasogkyxcfqn7psid.onion",
  1007. "http://osbivz6guyeahrwp2lnwyjk2xos342h4ocsxyqrlaopqjuhwn2djiiyd.onion",
  1008. "http://u2cvlit75owumwpy4dj2hsmvkq7nvrclkpht7xgyye2pyoxhpmclkrad.onion",
  1009. "http://w6ijuptxiku4xpnnaetxvnkc5vqcdu7mgns2u77qefoixi63vbvnpnqd.onion"
  1010. ],
  1011. "yggdrasil": [
  1012. "http://[200:168a:c80a:b258:1dfe:f920:4414:6897]"
  1013. ]
  1014. },
  1015. "kddit": {
  1016. "clearnet": [
  1017. "https://kddit.kalli.st"
  1018. ],
  1019. "i2p": [],
  1020. "loki": [],
  1021. "tor": [],
  1022. "yggdrasil": []
  1023. },
  1024. "minisearch": {
  1025. "clearnet": [
  1026. // "https://minisearch.r4fo.com"
  1027. ],
  1028. "i2p": [],
  1029. "loki": [],
  1030. "tor": [],
  1031. "yggdrasil": []
  1032. },
  1033. "laboratory": {
  1034. "clearnet": [
  1035. //"https://lab.bloatcat.tk",
  1036. "https://lab.vern.cc",
  1037. // "https://laboratory.vitali64.duckdns.org"
  1038. ],
  1039. "i2p": [],
  1040. "loki": [],
  1041. "tor": [],
  1042. "yggdrasil": []
  1043. },
  1044. "libmedium": {
  1045. "clearnet": [
  1046. "https://medium.hostux.net",
  1047. "https://libmedium.batsense.net",
  1048. "https://med.ngn.tf",
  1049. "https://md.vern.cc"
  1050. ],
  1051. "i2p": [
  1052. "http://vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p"
  1053. ],
  1054. "loki": [],
  1055. "tor": [
  1056. "http://md.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"
  1057. ],
  1058. "yggdrasil": []
  1059. },
  1060. "librarian": {
  1061. "clearnet": [
  1062. "https://librarian.pussthecat.org",
  1063. "https://odysee.076.ne.jp",
  1064. "https://lbry.projectsegfau.lt",
  1065. // "https://librarian.esmailelbob.xyz",
  1066. "https://lbry.mywire.org",
  1067. // "https://lbry.slipfox.xyz",
  1068. "https://lbry.vern.cc",
  1069. "https://lbry.ooguy.com",
  1070. "https://lbn.frail.duckdns.org",
  1071. "https://odysee.owacon.moe",
  1072. "https://lbry.bcow.xyz"
  1073. ],
  1074. "i2p": [],
  1075. "loki": [],
  1076. "tor": [
  1077. "http://librarian.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  1078. "http://lbry.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1079. "http://5znbzx2xcymhddzekfjib3isgqq4ilcyxa2bsq6vqmnvbtgu4f776lqd.onion",
  1080. "http://bxewpsswttslepw27w2hhxhlizwm7l7y54x3jw5cfrb64hb6lgc557ad.onion"
  1081. ],
  1082. "yggdrasil": []
  1083. },
  1084. "libreddit": {
  1085. "clearnet": [
  1086. "https://libreddit.spike.codes",
  1087. "https://libreddit.nl",
  1088. "https://libreddit.strongthany.cc",
  1089. "https://libreddit.40two.app",
  1090. "https://libreddit.albony.xyz",
  1091. "https://libreddit.privacydev.net",
  1092. "https://libreddit.kavin.rocks",
  1093. "https://libreddit.privacy.com.de",
  1094. // "https://libreddit.bloatcat.tk",
  1095. // "https://libreddit.no-logs.com",
  1096. // "https://lr.slipfox.xyz",
  1097. "https://lr.creller.net",
  1098. "https://libreddit.dcs0.hu",
  1099. "https://libreddit.tux.pizza",
  1100. "https://snoo.habedieeh.re",
  1101. "https://lr.4201337.xyz",
  1102. "https://lr.artemislena.eu",
  1103. "https://libreddit.privacyfucking.rocks",
  1104. "https://libreddit.qwik.space",
  1105. "https://de.leddit.xyz",
  1106. "https://leddit.xyz",
  1107. "https://libreddit.autarkic.org",
  1108. "https://libreddit.crewz.me",
  1109. "https://libreddit.de",
  1110. "https://libreddit.dothq.co",
  1111. "https://libreddit.drivet.xyz",
  1112. // "https://libreddit.igna.rocks",
  1113. "https://libredd.it",
  1114. "https://libreddit.jamiethalacker.dev",
  1115. "https://libreddit.kylrth.com",
  1116. "https://libreddit.lunar.icu",
  1117. // "https://libreddit.northboot.xyz",
  1118. "https://libreddit.pussthecat.org",
  1119. "https://libreddit.silkky.cloud",
  1120. "https://libreddit.sugoma.tk",
  1121. "https://libreddit.tiekoetter.com",
  1122. "https://libreddit.winscloud.net",
  1123. "https://libreddit.yonalee.eu",
  1124. "https://lr.cowfee.moe",
  1125. // "https://lr.mint.lgbt",
  1126. "https://lr.oversold.host",
  1127. "https://lr.stilic.ml",
  1128. "https://r.nf",
  1129. "https://r.walkx.org",
  1130. "https://reddit.artemislena.eu",
  1131. "https://reddit.phii.me",
  1132. "https://reddit.rtrace.io",
  1133. "https://reddit.stuehieyr.com",
  1134. "https://libreddit.nohost.network",
  1135. "https://reddit.simo.sh"
  1136. ],
  1137. "i2p": [
  1138. "http://woo5ugmoomzbtaq6z46q4wgei5mqmc6jkafqfi5c37zni7xc4ymq.b32.i2p"
  1139. ],
  1140. "loki": [],
  1141. "tor": [
  1142. "http://spjmllawtheisznfs7uryhxumin26ssv2draj7oope3ok3wuhy43eoyd.onion",
  1143. "http://qwikxxeiw4kgmml6vjw2bsxtviuwjce735dunai2djhu6q7qbacq73id.onion",
  1144. "http://qwikxx4xqvhdyyazkrw7pwdpdppfnmn7j2n6cvq5zecm4atbppaslzad.onion",
  1145. "http://ecue64ybzvn6vjzl37kcsnwt4ycmbsyf74nbttyg7rkc3t3qwnj7mcyd.onion",
  1146. "http://fwhhsbrbltmrct5hshrnqlqygqvcgmnek3cnka55zj4y7nuus5muwyyd.onion",
  1147. "http://inytumdgnri7xsqtvpntjevaelxtgbjqkuqhtf6txxhwbll2fwqtakqd.onion",
  1148. "http://kphht2jcflojtqte4b4kyx7p2ahagv4debjj32nre67dxz7y57seqwyd.onion",
  1149. "http://kzhfp3nvb4qp575vy23ccbrgfocezjtl5dx66uthgrhu7nscu6rcwjyd.onion",
  1150. "http://lbrdtjaj7567ptdd4rv74lv27qhxfkraabnyphgcvptl64ijx2tijwid.onion",
  1151. "http://libreddit.2syis2nnyytz6jnusnjurva4swlaizlnleiks5mjp46phuwjbdjqwgqd.onion",
  1152. "http://ledditqo2mxfvlgobxnlhrkq4dh34jss6evfkdkb2thlvy6dn4f4gpyd.onion",
  1153. "http://libreddit.lqs5fjmajyp7rvp4qvyubwofzi6d4imua7vs237rkc4m5qogitqwrgyd.onion",
  1154. "http://libredoxhxwnmsb6dvzzd35hmgzmawsq5i764es7witwhddvpc2razid.onion",
  1155. "http://ol5begilptoou34emq2sshf3may3hlblvipdjtybbovpb7c7zodxmtqd.onion",
  1156. "http://liredejj74h5xjqr2dylnl5howb2bpikfowqoveub55ru27x43357iid.onion"
  1157. ],
  1158. "yggdrasil": []
  1159. },
  1160. "libremdb": {
  1161. "clearnet": [
  1162. "https://libremdb.iket.me",
  1163. "https://lmdb.ngn.tf",
  1164. "https://ld.vern.cc",
  1165. // "https://libremdb.esmailelbob.xyz",
  1166. "https://binge.whatever.social",
  1167. "https://lmdb.tokhmi.xyz",
  1168. "https://libremdb.ducks.party",
  1169. "https://libremdb.lunar.icu",
  1170. "https://libremdbeu.herokuapp.com",
  1171. "https://libremdb.pussthecat.org",
  1172. "https://libremdb.jeikobu.net",
  1173. "https://lmdb.hostux.net",
  1174. "https://libremdb.catsarch.com",
  1175. "https://libremdb.frontendfriendly.xyz",
  1176. // "https://libremdb.fascinated.cc"
  1177. ],
  1178. "i2p": [
  1179. "http://vernz3ubrntql4wrgyrssd6u3qzi36zrhz2agbo6vibzbs5olk2q.b32.i2p"
  1180. ],
  1181. "loki": [],
  1182. "tor": [
  1183. "http://ld.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1184. "http://libremdb.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion"
  1185. ],
  1186. "yggdrasil": []
  1187. },
  1188. "librex": {
  1189. "clearnet": [
  1190. // "https://librex.bloatcat.tk",
  1191. "https://search.pabloferreiro.es",
  1192. "https://search.funami.tech",
  1193. "https://librex.retro-hax.net",
  1194. "https://librex.zzls.xyz",
  1195. "https://librex.nohost.network",
  1196. "https://librex.baczek.me",
  1197. "https://buscar.weblibre.org",
  1198. "https://librex.mikata.ru",
  1199. "https://librex.myroware.eu",
  1200. "https://librex.pufe.org",
  1201. "https://librex.revvy.de",
  1202. "https://lx.vern.cc",
  1203. "https://search.femboy.hu",
  1204. "https://search.madreyk.xyz",
  1205. "https://search.milivojevic.in.rs",
  1206. "https://search.sesu.cc",
  1207. "https://search.tildevarsh.in",
  1208. "https://librex.ratakor.com",
  1209. "https://lx.drain.win"
  1210. ],
  1211. "i2p": [
  1212. "http://7huurwog32tny663wkglrhozfoyqyqmsuxjbd7dtudccx44awjda.b32.i2p",
  1213. "http://lqbchqljxiwl3bbjt4vqe76luovk5ly6khqhg7mt5qcqfn6e4sbq.b32.i2p",
  1214. "http://revekebotog64xrrammtsmjwtwlg3vqyzwdurzt2pu6botg4bejq.b32.i2p",
  1215. "http://vernziqfqvweijfaacmwazohgpdo2bt2ib2jlupt2pwwu27bhgxq.b32.i2p"
  1216. ],
  1217. "loki": [],
  1218. "tor": [
  1219. "http://fcnfg6avz45hqzwbneekq57u2mqbnwa7veyvjcc4dndqbatvkjlaj7yd.onion",
  1220. "http://f7ssz7l3biu4fugwctfpcx4txg5yq4gqhrt473ledsuc3ivtd3omniid.onion",
  1221. "http://librex.revvybrr6pvbx4n3j4475h4ghw4elqr4t5xo2vtd3gfpu2nrsnhh57id.onion",
  1222. "http://librex.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
  1223. "http://lx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1224. "http://search.cepyxplublbyw2f4axy4pyztfbxmf63lrt2c7uwv6wl4iixz53czload.onion",
  1225. "http://search.swxoebbpeqiiixyhbuh3vbw53pdrmtbiaj2sqveol6kkn5rpapfi4aad.onion"
  1226. ],
  1227. "yggdrasil": []
  1228. },
  1229. "librey": {
  1230. "clearnet": [
  1231. "https://search.pabloferreiro.es",
  1232. "https://search.funami.tech",
  1233. "https://librex.retro-hax.net",
  1234. "https://search.davidovski.xyz",
  1235. "https://search.zeroish.xyz",
  1236. "https://search.seitan-ayoub.lol",
  1237. "https://lx.benike.me",
  1238. "https://librey.baczek.me",
  1239. "https://librex.yogeshlamichhane.com.np",
  1240. "https://librex.nohost.network",
  1241. "https://librex.ix.tc",
  1242. "https://librex.uk.to",
  1243. "https://librex.supernets.org",
  1244. "https://librey.org",
  1245. "https://librey.danyaal.xyz",
  1246. "https://ly.owo.si",
  1247. "https://search2.ahwx.org",
  1248. "https://search.ratakor.com",
  1249. "https://search.ahwx.org",
  1250. "https://search3.ahwx.org"
  1251. ],
  1252. "i2p": [
  1253. "http://d4vi3tvfui2rfzsxr33tin4a6542heulf4mhkokdpbhbcejlg3la.b32.i2p",
  1254. "http://libreyqmoa2iuihoyyscolhaymrxxgdrmkgmiufnyaukwub2c7ya.b32.i2p"
  1255. ],
  1256. "loki": [],
  1257. "tor": [
  1258. "http://ly.pk47sgwhncn5cgidm7bofngmh7lc7ukjdpk5bjwfemmyp27ovl25ikyd.onion",
  1259. "http://libreytvcxak42f3p7nxh3filsp2pjqesjii5f5e4eivs2gpcn77tdid.onion",
  1260. "http://hyy7rcvknwb22v4nnoar635wntiwr4uwzhiuyimemyl4fz6k7tahj5id.onion",
  1261. "http://wn5jl6fxlzzfenlyu3lc4q7jpw2saplrywxvxtvqbguotwd4y5cjeuqd.onion",
  1262. "http://jxhkfulu6wpdl4apuy4dyivuowmpprvsd7e3el2z73crq7fmyv7rjkyd.onion",
  1263. "http://ouosr2fq3lktngcvbz4r4op2lab5hbiz5y6g6toorsgieb7elet76jad.onion"
  1264. ],
  1265. "yggdrasil": []
  1266. },
  1267. "lieu": {
  1268. "clearnet": [
  1269. "https://lieu.cblgh.org"
  1270. ],
  1271. "i2p": [],
  1272. "loki": [],
  1273. "tor": [],
  1274. "yggdrasil": []
  1275. },
  1276. "lingva": {
  1277. "clearnet": [
  1278. "https://lingva.reallyaweso.me",
  1279. "https://translate.libtar.de",
  1280. "https://lingva.frontendfriendly.xyz",
  1281. "https://lingva.retiolus.net",
  1282. "https://translate.plausibility.cloud",
  1283. "https://lingva.lunar.icu",
  1284. "https://lingva.dialectapp.org"
  1285. ],
  1286. "i2p": [],
  1287. "loki": [],
  1288. "tor": [],
  1289. "yggdrasil": []
  1290. },
  1291. "materialious": {
  1292. "clearnet": [
  1293. "https://materialious.nadeko.net"
  1294. ],
  1295. "i2p": [],
  1296. "loki": [],
  1297. "tor": [],
  1298. "yggdrasil": []
  1299. },
  1300. "metastem": {
  1301. "clearnet": [
  1302. "https://go.metastem.su"
  1303. ],
  1304. "i2p": [],
  1305. "loki": [],
  1306. "tor": [],
  1307. "yggdrasil": []
  1308. },
  1309. "metastemwiki": {
  1310. "clearnet": [
  1311. "https://wiki.metastem.su"
  1312. ],
  1313. "i2p": [],
  1314. "loki": [],
  1315. "tor": [],
  1316. "yggdrasil": []
  1317. },
  1318. "mikuinvidious": {
  1319. "clearnet": [
  1320. "https://mi.resrv.org",
  1321. "https://mikuinv-gs.vern.cc",
  1322. "https://mikuinv.resrv.org",
  1323. "https://moeyy.cn/mikuinvidious"
  1324. ],
  1325. "i2p": [],
  1326. "loki": [],
  1327. "tor": [],
  1328. "yggdrasil": []
  1329. },
  1330. "mozhi": {
  1331. "clearnet": [
  1332. "https://mozhi.pussthecat.org",
  1333. "https://translate.bus-hit.me",
  1334. "https://translate.perennialte.ch"
  1335. ],
  1336. "i2p": [],
  1337. "loki": [],
  1338. "tor": [],
  1339. "yggdrasil": []
  1340. },
  1341. "neuters": {
  1342. "clearnet": [
  1343. "https://neuters.de",
  1344. "https://neuters.privacyfucking.rocks",
  1345. "https://nu.vern.cc",
  1346. "https://neuters.vern.cc",
  1347. "https://reuters.vern.cc"
  1348. ],
  1349. "i2p": [],
  1350. "loki": [],
  1351. "tor": [],
  1352. "yggdrasil": []
  1353. },
  1354. "nitter": {
  1355. "clearnet": [
  1356. "https://nitter.hu",
  1357. "https://nitter.actionsack.com",
  1358. "https://nitter.net",
  1359. "https://nitter.1d4.us",
  1360. "https://nitter.nixnet.services",
  1361. "https://nitter.unixfox.eu",
  1362. "https://nitter.sethforprivacy.com",
  1363. "https://nitter.pussthecat.org",
  1364. "https://nitter.it",
  1365. "https://nitter.moomoo.me",
  1366. "https://tw.artemislena.eu",
  1367. "https://nitter.snopyta.org",
  1368. "https://birdsite.xanny.family",
  1369. "https://nitter.domain.glass",
  1370. // "https://read.whatever.social",
  1371. // "https://nitter.lacontrevoie.fr",
  1372. "https://bird.trom.tf",
  1373. "https://nitter.hostux.net",
  1374. "https://nitter.sneed.network",
  1375. "https://twitter.owacon.moe",
  1376. "https://nitter.ggc-project.de",
  1377. "https://unofficialbird.com",
  1378. "https://nitter.fdn.fr",
  1379. "https://nitter.no-logs.com",
  1380. // "https://nitter.slipfox.xyz",
  1381. "https://nitter.one",
  1382. "https://nitter.ungovernable.men",
  1383. "https://nitter.private.coffee",
  1384. // "https://nitter.soopy.moe",
  1385. "https://nitter.oksocial.net",
  1386. "https://n.sneed.network",
  1387. "https://nitter.qwik.space",
  1388. "https://nitter.nohost.network",
  1389. "https://de.nttr.stream",
  1390. "https://nitter.42l.fr",
  1391. "https://nitter.bus-hit.me",
  1392. // "https://nitter.ca",
  1393. // "https://nitter.eu",
  1394. "https://nitter.grimneko.de",
  1395. "https://nitter.kavin.rocks",
  1396. "https://nitter.koyu.space",
  1397. // "https://nitter.namazso.eu",
  1398. "https://nttr.stream",
  1399. "https://twitter.076.ne.jp",
  1400. "https://twitter.censors.us",
  1401. "https://n.hyperborea.cloud",
  1402. "https://n.biendeo.com",
  1403. // "https://n.opnxng.com",
  1404. "https://nitter.adminforge.de",
  1405. "https://nitter.catsarch.com",
  1406. "https://nitter.cz",
  1407. // "https://nitter.esmailelbob.xyz",
  1408. "https://nitter.in.projectsegfau.lt",
  1409. "https://nitter.io.lol",
  1410. "https://nitter.ktachibana.party",
  1411. "https://nitter.kylrth.com",
  1412. "https://nitter.poast.org",
  1413. "https://nitter.privacydev.net",
  1414. "https://nitter.salastil.com",
  1415. "https://nitter.woodland.cafe",
  1416. "https://nitter.dcs0.hu"
  1417. ],
  1418. "i2p": [
  1419. "http://tm4rwkeysv3zz3q5yacyr4rlmca2c4etkdobfvuqzt6vsfsu4weq.b32.i2p"
  1420. ],
  1421. "loki": [],
  1422. "tor": [
  1423. "http://qwikxxeiw4kgmml6vjw2bsxtviuwjce735dunai2djhu6q7qbacq73id.onion",
  1424. "http://qwikxx2erhx6qrymued6ox2qkf2yeogjwypqvzoif4fqkljixasr6oid.onion",
  1425. "http://n.sneed4fmhevap3ci4xhf4wgkf72lwk275lcgomnfgwniwmqvaxyluuid.onion"
  1426. ],
  1427. "yggdrasil": []
  1428. },
  1429. "openstreetmap": {
  1430. "clearnet": [
  1431. "https://www.openstreetmap.org"
  1432. ],
  1433. "i2p": [],
  1434. "loki": [],
  1435. "tor": [],
  1436. "yggdrasil": []
  1437. },
  1438. "tubo": {
  1439. "clearnet": [
  1440. "https://tubo.media",
  1441. "https://tubo.reallyaweso.me"
  1442. ],
  1443. "i2p": [],
  1444. "loki": [],
  1445. "tor": [],
  1446. "yggdrasil": []
  1447. },
  1448. "twineo": {
  1449. "clearnet": [
  1450. "https://twineo.reallyaweso.me"
  1451. ],
  1452. "i2p": [],
  1453. "loki": [],
  1454. "tor": [],
  1455. "yggdrasil": []
  1456. },
  1457. "pipedmaterial": {
  1458. "clearnet": [
  1459. //"https://ngp.piped.xn--17b.net",
  1460. // "https://piped-material.xn--17b.net"
  1461. ],
  1462. "i2p": [],
  1463. "loki": [],
  1464. "tor": [],
  1465. "yggdrasil": []
  1466. },
  1467. "piped": {
  1468. "clearnet": [
  1469. "https://piped.mint.lgbt",
  1470. "https://piped.video",
  1471. "https://watch.whatevertinfoil.de",
  1472. "https://piped.ducks.party",
  1473. "https://watch.whatever.social",
  1474. "https://piped.reallyaweso.me",
  1475. "https://piped.hostux.net",
  1476. "https://piped.no-logs.com",
  1477. "https://piped.qdi.fi",
  1478. "https://piped.ngn.tf",
  1479. "https://il.ax",
  1480. "https://piped.projectsegfau.lt",
  1481. "https://pd.vern.cc",
  1482. "https://piped.privacydev.net",
  1483. "https://piped.chauvet.pro",
  1484. "https://piped.smnz.de",
  1485. "https://piped.adminforge.de",
  1486. "https://srv.piped.video",
  1487. "https://piped.lunar.icu",
  1488. // "https://piped.esmailelbob.xyz",
  1489. "https://piped.garudalinux.org",
  1490. "https://piped.in.projectsegfau.lt",
  1491. "https://piped.mha.fi",
  1492. "https://piped.privacy.com.de",
  1493. "https://piped.tokhmi.xyz",
  1494. "https://piped.us.projectsegfau.lt",
  1495. "https://watch.leptons.xyz",
  1496. "https://piped.palveluntarjoaja.eu"
  1497. ],
  1498. "i2p": [],
  1499. "loki": [],
  1500. "tor": [],
  1501. "yggdrasil": []
  1502. },
  1503. "priviblur": {
  1504. "clearnet": [
  1505. "https://tb.opnxng.com",
  1506. // "https://pb.bloat.cat"
  1507. ],
  1508. "i2p": [],
  1509. "loki": [],
  1510. "tor": [],
  1511. "yggdrasil": []
  1512. },
  1513. "pixivfe": {
  1514. "clearnet": [
  1515. "https://pixiv.ducks.party",
  1516. "https://pixiv.perennialte.ch",
  1517. "https://pixivfe.ducks.party",
  1518. "https://pixivfe.exozy.me"
  1519. ],
  1520. "i2p": [],
  1521. "loki": [],
  1522. "tor": [],
  1523. "yggdrasil": []
  1524. },
  1525. "poketube": {
  1526. "clearnet": [
  1527. "https://poketube.fun",
  1528. // "https://pt.zzls.xyz"
  1529. ],
  1530. "i2p": [],
  1531. "loki": [],
  1532. "tor": [],
  1533. "yggdrasil": []
  1534. },
  1535. "proxigram": {
  1536. "clearnet": [
  1537. "https://ig.opnxng.com",
  1538. "https://proxigram.lunar.icu",
  1539. "https://proxigram.ducks.party",
  1540. // "https://ig.vern.cc/",
  1541. // "https://proxigram.vern.cc",
  1542. // "https://instagram.vern.cc",
  1543. // "https://proxigram.privacyredirect.com",
  1544. // "https://proxigram.kyun.li"
  1545. ],
  1546. "i2p": [],
  1547. "loki": [],
  1548. "tor": [],
  1549. "yggdrasil": []
  1550. },
  1551. "proxitok": {
  1552. "clearnet": [
  1553. "https://proxitok.lunar.icu",
  1554. "https://tik.hostux.net",
  1555. "https://proxitok.pabloferreiro.es",
  1556. "https://proxitok.privacy.com.de",
  1557. "https://tok.adminforge.de",
  1558. "https://tok.habedieeh.re",
  1559. "https://proxitok.pussthecat.org",
  1560. "https://proxitok.privacyfucking.rocks",
  1561. "https://cringe.whatever.social",
  1562. // "https://proxitok.esmailelbob.xyz",
  1563. "https://proxitok.privacydev.net",
  1564. "https://proxitok.pufe.org",
  1565. "https://cringe.datura.network",
  1566. "https://tok.artemislena.eu",
  1567. // "https://tok.thekitty.zone",
  1568. "https://proxitok.privacyredirect.com",
  1569. "https://tiktok.chauvet.pro",
  1570. // "https://proxitok.r4fo.com",
  1571. "https://tt.vern.cc",
  1572. "https://tiktok.vern.cc",
  1573. "https://proxitok.vern.cc"
  1574. ],
  1575. "i2p": [
  1576. "http://qr.vern.i2p"
  1577. ],
  1578. "loki": [],
  1579. "tor": [],
  1580. "yggdrasil": []
  1581. },
  1582. "quetre": {
  1583. "clearnet": [
  1584. "https://quetre.privacydev.net",
  1585. "https://quetre.pufe.org",
  1586. "https://que.wilbvr.me",
  1587. "https://quetre.iket.me",
  1588. "https://quetre.pussthecat.org",
  1589. "https://quetre.ducks.party",
  1590. "https://quetre.perennialte.ch",
  1591. "https://quetre.tokhmi.xyz",
  1592. "https://quetre.projectsegfau.lt",
  1593. // "https://quetre.esmailelbob.xyz",
  1594. // "https://quetre.odyssey346.dev",
  1595. "https://quetre.marcopisco.com",
  1596. "https://quetre.blackdrgn.nl",
  1597. "https://quetre.lunar.icu",
  1598. "https://quora.femboy.hu",
  1599. "https://quora.vern.cc",
  1600. // "https://quetre.fascinated.cc",
  1601. "https://quetre.rootdo.com"
  1602. ],
  1603. "i2p": [],
  1604. "loki": [],
  1605. "tor": [
  1606. "http://ask.habeehrhadazsw3izbrbilqajalfyqqln54mrja3iwpqxgcuxnus7eid.onion",
  1607. "http://qr.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
  1608. "http://quetre.esmail5pdn24shtvieloeedh7ehz3nrwcdivnfhfcedl7gf4kwddhkqd.onion",
  1609. "http://quetre.g4c3eya4clenolymqbpgwz3q3tawoxw56yhzk4vugqrl6dtu3ejvhjid.onion",
  1610. "http://quora.cepyxplublbyw2f4axy4pyztfbxmf63lrt2c7uwv6wl4iixz53czload.onion"
  1611. ],
  1612. "yggdrasil": []
  1613. },
  1614. "redlib": {
  1615. "clearnet": [
  1616. "https://redlib.incogniweb.net",
  1617. "https://discuss.whatever.social",
  1618. "https://libreddit.bus-hit.me",
  1619. "https://l.opnxng.com",
  1620. "https://red.ngn.tf",
  1621. "https://reddit.invak.id",
  1622. "https://r.darrennathanael.com",
  1623. "https://red.artemislena.eu",
  1624. "https://reddit.owo.si",
  1625. "https://safereddit.com",
  1626. "https://lr.n8pjl.ca",
  1627. "https://libreddit.projectsegfau.lt",
  1628. "https://redlib.kittywi.re",
  1629. "https://redlib.privacyredirect.com",
  1630. // "https://redlib.vimmer.dev",
  1631. "https://redlib.catsarch.com",
  1632. "https://redlib.matthew.science",
  1633. "https://redlib.pussthecat.org/",
  1634. "https://redlib.tux.pizza",
  1635. "https://reddit.idevicehacked.com",
  1636. "https://redlib.private.coffee",
  1637. "https://redlib.ducks.party",
  1638. "https://redlib.reallyaweso.me",
  1639. "https://redlib.perennialte.ch",
  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><head><link type="image/svg+xml" rel="shortcut icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🥸</text></svg>"><title>Proxy Redirect</title><style>html,body{height:100%;}html{display:table;margin:auto;}body{display:table-cell;vertical-align:middle;}body{background-color:#f1f1f1;font-family:system-ui;cursor:default;user-select:none;max-height:100%;max-width:100%;}#main{font-size:2em;color:#F83600;text-transform:uppercase;position:relative;text-align:center;}#loader{animation:flickerAnimation 2s infinite;font-size:2em;font-weight:bold;}#text{font-size:1em;text-align:center;}#icon{font-size:250%;}.centerm{display:block;margin-left:auto;margin-right:auto;width:100%;}.center{padding:1em 0px 1em 0px;text-align:center;}@keyframes flickerAnimation{0%{opacity:1;}50%{opacity:0;}100%{opacity:1;}}.flip{display:inline-block;transform:scaleX(-1);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);filter:FlipH;-ms-filter:FlipH;}</style></head><body><div id="message" class="center"></div><div id="loader" class="center">Redirecting...</div><div id="text">You are now being redirected to a privacy proxy frontend.</div><div id="icon" class="center">🥸</div></body></html>';
  2278. //const loadPage = '<html><head><link type="image/svg+xml" rel="shortcut icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🥸</text></svg>"><title>Proxy Redirect</title><style>html,body{height:100%;}html{display:table;margin:auto;}body{display:table-cell;vertical-align:middle;}body{background-color:#f1f1f1;font-family:"Helvetica Neue", Helvetica,Arial,sans-serif;cursor:default;user-select:none;max-height:100%;max-width:100%;}div{font-size:2.3em;font-weight:bold;}#icon-tc:before{content:"🔀";font-size:4em;display:flow-root;text-align:center;}#icon-tc{font-size:3em;}#main{font-size:2em;color:#F83600;text-transform:uppercase;position:relative;text-align:center;}#loader{font-style:italic;animation:flickerAnimation 1s infinite;}.centerm{display:block;margin-left:auto;margin-right:auto;width:100%;}.center{padding:1em 0px 1em 0px;text-align:center;}@keyframes flickerAnimation{0%{opacity:1;}50%{opacity:0;}100%{opacity:1;}}.flip{display:inline-block;transform:scaleX(-1);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);filter:FlipH;-ms-filter:FlipH;}</style></head><body><div id="icon-tc"></div><div id="message" class="center"></div><div id="loader" class="center">Redirecting...</div></body></html>';
  2279. //const loadPage = '<html><head><link type="image/svg+xml" rel="shortcut icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🥸</text></svg>"><title>Proxy Redirect</title><meta http-equiv="content-type" content="text/html;charset=utf-8" /><meta name="generator" content="Clear Cinema Player" /><style>body {background-color:#efefef;font-family:"Helvetica Neue", Helvetica,Arial,sans-serif; cursor: default; user-select: none;max-height:100%;max-width:100%;}div{font-size:2.3em;font-weight:bold;}#icon-tc:before{content:"🔀";font-size:4em;display:flow-root;text-align:center;}#icon-tc{font-size:3em;}#main{font-size:2em;color:#F83600;text-transform:uppercase;position:relative;text-align:center;}#loader{font-style: italic;animation:flickerAnimation 1s infinite;} #wait, #reload, #footer {font-size:14px;font-weight:normal;} #wait {font-style: italic;} .centerm {display:block;margin-left:auto;margin-right:auto;width:100%;}.center{padding:1em 0px 1em 0px;text-align:center;/* border: 3px solid green; */}@keyframes flickerAnimation {0%{opacity:1;}50%{opacity:0;}100% {opacity:1;}}.flip {display: inline-block; transform: scaleX(-1); -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); filter: FlipH; -ms-filter: FlipH;}</style></head><body><div id="intro" class="center">Proxy Redirect</div><div id="icon-tc" onclick="(function(){document.location = document.location})();"></div><div id="loader" class="center">Redirecting...</div><div id="wait" class="center">Please wait while our monkeys find a working proxy</div><div id="reload" class="center" onclick="(function(){document.location = document.location})();"></div><div id="footer" class="center">Made with <a href="https://falkon.org">Falkon</a> web browser (<a href="https://openuserjs.org/scripts/sjehuda/Proxy_Redirect/issues">Report issue</a>)</div></body></html>';
  2280. const domParser = new DOMParser();
  2281. const newDocument = domParser.parseFromString(loadPage, 'text/html');
  2282. //newDocument.querySelector('#icon-tc').onclick = () => {disable()}; // FIXME
  2283. //newDocument.querySelector('#icon-tc').addEventListener("click", disable, false);
  2284. const insertDocument = document.importNode(newDocument.documentElement, true);
  2285. const removeDocument = document.documentElement;
  2286. document.replaceChild(insertDocument, removeDocument);
  2287. setTimeout(message(newUrl), 9000); // FIXME
  2288. }
  2289.  
  2290. function message(newUrl) {
  2291. location.href = newUrl;
  2292. var div = document.querySelector('#message');
  2293. if (div) {
  2294. div.innerHTML = `Proceed to ${newUrl.hostname}`;
  2295. div.onclick = () => {location.href = newUrl};
  2296. try {
  2297. document.querySelector('#loader').remove();
  2298. } catch (err) {
  2299. console.warn('No element with Id #loader');
  2300. console.warn(err);
  2301. }
  2302. } else {
  2303. location.href = 'https://openuserjs.org/scripts/sjehuda/Proxy_Redirect?autoredirect';
  2304. }
  2305. }
  2306.  
  2307. function noRespond(url) {
  2308. var div = document.querySelector('#message');
  2309. div.id = 'message-error';
  2310. div.innerHTML = `Proxy list appears to be out of date. Proceed to <a href="${url + '#noredirect'}">${url}</a> or update <a href="https://openuserjs.org/scripts/sjehuda/Proxy_Redirect">Proxy Redirect</a>`;
  2311. //div.onclick = () => {location.href = location.href + '#noredirect'; location.reload()};
  2312. //var div = document.querySelector('#loader');
  2313. //div.innerHTML = '🥸 Update Proxy Redirect';
  2314. //div.onclick = () => {location.href = 'https://openuserjs.org/scripts/sjehuda/Proxy_Redirect'};
  2315. }
  2316.  
  2317. // FIXME
  2318. // /questions/1397329/how-to-remove-the-hash-from-window-location-url-with-javascript-without-page-r
  2319. function disable() {
  2320. window.location.href =
  2321. window.location.href.substr(
  2322. 0,
  2323. window.location.href.indexOf('#'))
  2324. + '#noredirect';
  2325. }
  2326.  
  2327. /*
  2328. loop = setInterval(function() {
  2329. //modifyURL(location.href);
  2330. window.open(newURL,'_self');
  2331. //location.href = newURL;
  2332. console.info('Redirecting to ' + newURL);
  2333. clearInterval(loop);
  2334. }, 1000);
  2335. */
  2336.  
  2337. /*
  2338. function modifyURL() {
  2339. inst = pickURL();
  2340. // make function synchronous
  2341. // /questions/8778267/synchronous-gm-xmlhttprequest-acting-asynchronously
  2342. stat = statRES(inst);
  2343. if (stat.match(200)) {
  2344. newURL = settURL();
  2345. } else {
  2346. pickURL(url);
  2347. }
  2348. return newURL;
  2349. }
  2350. */
  2351.  
  2352. //(window.onload = alert()
  2353.  
  2354. // TODO Nested elements (i.e. element "a" inside another element)
  2355. // See "else if e.target.hasChildNodes()"
  2356.  
  2357. (function addEventListeners() {
  2358. document.addEventListener("DOMContentLoaded",
  2359. function() {
  2360. for (linkElement of document.links) {
  2361. // mouseover works with keyboard too
  2362. linkElement.addEventListener("mouseover",
  2363. async function(e) {
  2364. if (e.target && e.target.nodeName == "A") {
  2365. hyperLink = e.target;
  2366. await xhrHyperLink(hyperLink);
  2367. } // else if e.target.hasChildNodes()
  2368. },
  2369. {
  2370. once: true
  2371. }
  2372. );
  2373. }
  2374. }
  2375. );
  2376. })();
  2377.  
  2378. function linkOnError(node) {
  2379. node.style.color = 'orange';
  2380. node.style.fontStyle = 'italic';
  2381. node.title = 'Proxy state check was not possible. Please refresh and try again in case the offered page is offline.';
  2382. }
  2383.  
  2384. function linkOnFail(node) {
  2385. node.style.color = 'red';
  2386. node.style.fontStyle = 'italic';
  2387. node.title = 'No proxy was found. Using Farside to intermediate proxy.';
  2388. }
  2389.  
  2390. function linkOnProgress(node) {
  2391. node.style.color = 'aquamarine';
  2392. node.title = 'Looking up for online proxy... Please wait.';
  2393. }
  2394.  
  2395. function linkOnSuccess(node) {
  2396. text = node.textContent
  2397. node.textContent = `🥸 ${text}`; // TODO enable once removeEventListener is solved.
  2398. node.title = 'Proxy link has been found!';
  2399. //node.removeAttribute('title');
  2400. node.style.color = 'forestgreen'; // TODO remove once removeEventListener is solved.
  2401. node.style.fontWeight = 'bold'; // TODO remove once removeEventListener is solved.
  2402. //node.removeAttribute('style'); // TODO enable once removeEventListener is solved.
  2403. }
  2404.  
  2405. function isValid(url, node) {
  2406. try {
  2407. url = new URL(url);
  2408. } catch (err) {
  2409. return;
  2410. }
  2411. let hostName = url.hostname;
  2412. let pathName = url.pathname;
  2413. // check by excluded
  2414. for (let i = 0; i < urlsMatchers.exclude.length; i++) {
  2415. //if (hostName.endsWith(urlsMatchers.exclude[i].host)) {
  2416. //if (hostName.match(urlsMatchers.exclude[i].host)) {
  2417. if (hostName == urlsMatchers.exclude[i].host ||
  2418. hostName == 'www.' + urlsMatchers.exclude[i].host) {
  2419. for (let j = 0; j < urlsMatchers.exclude[i].path.length; j++) {
  2420. if (pathName.includes('/' + urlsMatchers.exclude[i].path[j])) {
  2421. return 0; // exit further check
  2422. }
  2423. }
  2424. if (node) {
  2425. let text = node.outerText;
  2426. if (urlsMatchers.exclude[i].text) {
  2427. for (let j = 0; j < urlsMatchers.exclude[i].text.length; j++) {
  2428. if (text.match(urlsMatchers.exclude[i].text[j])) {
  2429. return 0; // exit further check
  2430. }
  2431. }
  2432. }
  2433. }
  2434. }
  2435. }
  2436. // continue to includeByHostname
  2437. for (let i = 0; i < urlsMatchers.includeByHostname.length; i++) {
  2438. // perhaps use 'match' and create a new object.array for domains with multiple subdomains
  2439. if (hostName == urlsMatchers.includeByHostname[i].host ||
  2440. hostName == 'www.' + urlsMatchers.includeByHostname[i].host) {
  2441. //if (hostName.endsWith(urlsMatchers.includeByHostname[i].host)) {
  2442. return 1;
  2443. }
  2444. }
  2445. // continue to specific
  2446. for (let i = 0; i < urlsMatchers.includeByPathname.length; i++) {
  2447. if (hostName.endsWith(urlsMatchers.includeByPathname[i].host)) {
  2448. for (let j = 0; j < urlsMatchers.includeByPathname[i].path.length; j++) {
  2449. if (pathName.startsWith('/' + urlsMatchers.includeByPathname[i].path[j])) {
  2450. return 1;
  2451. }
  2452. }
  2453. }
  2454. }
  2455. // continue to second-level-domain
  2456. for (let i = 0; i < urlsMatchers.includeBySLD.length; i++) {
  2457. partedHost = hostName.split('.');
  2458. partedHost.shift();
  2459. if (partedHost.join('.').match(urlsMatchers.includeBySLD[i].host)) {
  2460. //if (partedHost[partedHost.length-2].match(urlsMatchers.includeBySLD[i].host)) {
  2461. return 1;
  2462. }
  2463. }
  2464. // continue to second-level-domain and path
  2465. for (let i = 0; i < urlsMatchers.includeByPathnameAndSLD.length; i++) {
  2466. partedHost = hostName.split('.');
  2467. // TODO Test
  2468. if (partedHost[partedHost.length-2].match(urlsMatchers.includeByPathnameAndSLD[i].host)) {
  2469. for (let j = 0; j < urlsMatchers.includeByPathnameAndSLD[i].path.length; j++) {
  2470. if (pathName.startsWith('/' + urlsMatchers.includeByPathnameAndSLD[i].path[j])) {
  2471. return 1;
  2472. }
  2473. }
  2474. }
  2475. }
  2476. }
  2477.  
  2478. // var caller = (function xhr() {
  2479. async function xhrHyperLink(node) {
  2480. let url = node.href;
  2481. let valid = isValid(url, node);
  2482. if (!valid) {return;}
  2483. //let url = node.href;
  2484. //if (!url) {return;}
  2485. let instanceSelect = await pickInstance(url);
  2486. let result = await pickURL(instanceSelect);
  2487. if (!result) {return;}
  2488. let instanceName = result.name;
  2489. let instanceType = result.type;
  2490. let instanceUrl = result.url;
  2491. if (!url) {return;}
  2492. let newPath = modifyPathname(instanceName, url);
  2493. let newUrl = new URL(instanceUrl + newPath);
  2494. let counter = 0;
  2495.  
  2496. console.log(`
  2497. Setting Proxy to ${instanceName}
  2498. URL: ${newUrl}
  2499. `);
  2500.  
  2501. console.log(`
  2502. URL: ${url}
  2503. Selected: ${instanceUrl}
  2504. Pathname: ${newPath}
  2505. `);
  2506.  
  2507. try {
  2508. gmXmlhttpRequest({
  2509. method: 'GET',
  2510. url: instanceUrl,
  2511. synchronous: true,
  2512. onprogress: linkOnProgress(node),
  2513. onload: function(response) {
  2514. if (response.finalUrl.startsWith(instanceUrl) && response.status == 200) {
  2515. newPath = modifyPathname(instanceName, url);
  2516. newUrl = new URL(instanceUrl + newPath);
  2517. node.href = newUrl;
  2518. linkOnSuccess(node)
  2519. } else {
  2520. instanceUrlPrint = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2521. instanceUrlPrint = instanceUrlPrint.replace(/\./g,'-');
  2522. console.warn('Instance URL ' + instanceUrl + ' might be out of service. URL has changed. Please report this to the developer.');
  2523. if (maxAttempts(instanceName, instanceType, counter)) {
  2524. instanceUrl = farSide(instanceName, instanceUrl);
  2525. newPath = modifyPathname(instanceName, url);
  2526. node.href = new URL(instanceUrl + newPath);
  2527. linkOnFail(node);
  2528. return;
  2529. }
  2530. maxAttempts(instanceName, instanceType, counter);
  2531. xhr();
  2532. }
  2533. },
  2534. onerror: function(response) {
  2535. instanceUrlPrint = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2536. instanceUrlPrint = instanceUrlPrint.replace(/\./g,'-');
  2537. console.warn('Instance URL ' + instanceUrl + ' might be offline. Status error: ' + response.status + '. Please report this to the developer.');
  2538. instanceUrl = farSide(instanceName, instanceUrl);
  2539. newPath = modifyPathname(instanceName, url);
  2540. node.href = new URL(instanceUrl + newPath);
  2541. linkOnError(node);
  2542. if (maxAttempts(instanceName, instanceType, counter)) {
  2543. instanceUrl = farSide(instanceName, instanceUrl);
  2544. newPath = modifyPathname(instanceName, url);
  2545. node.href = new URL(instanceUrl + newPath);
  2546. linkOnFail(node);
  2547. return;
  2548. }
  2549. maxAttempts(instanceName, instanceType, counter);
  2550. xhr();
  2551. }
  2552. });
  2553. } catch (err) {
  2554. console.warn(err);
  2555. 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');
  2556. //pickURL();
  2557. instanceUrl = farSide(instanceName, instanceUrl);
  2558. //if ((proxy[instanceName].clearnet).filter(str => str.includes('farside.link')).length) {
  2559. // instanceUrl = (proxy[instanceName].clearnet).filter(str => str.includes('farside.link'))[0];
  2560. //}
  2561. newPath = modifyPathname(instanceName, url);
  2562. node.href = new URL(instanceUrl + newPath);
  2563. }
  2564. }
  2565.  
  2566. // var caller = (function xhr() {
  2567. var init = (async function xhrAddressBar() {
  2568. let url = document.location.href;
  2569. if (!url) {return;}
  2570. let valid = isValid(url);
  2571. if (!valid) {return;}
  2572. let instanceSelect = await pickInstance(url);
  2573. let result = await pickURL(instanceSelect);
  2574. if (!result) {return;}
  2575. let instanceName = result.name;
  2576. let instanceType = result.type;
  2577. let instanceUrl = result.url;
  2578. if (!url) {return;}
  2579. let newPath = modifyPathname(instanceName, url);
  2580. let newUrl = new URL(instanceUrl + newPath);
  2581. let counter = 0;
  2582.  
  2583. console.log(`
  2584. Setting Proxy to ${instanceName}
  2585. URL: ${newUrl}
  2586. `);
  2587.  
  2588. console.log(`
  2589. URL: ${url}
  2590. Selected: ${instanceUrl}
  2591. Pathname: ${newPath}
  2592. `);
  2593.  
  2594. try {
  2595. gmXmlhttpRequest({
  2596. method: 'GET',
  2597. url: instanceUrl,
  2598. synchronous: true,
  2599. onprogress: pageLoader(newUrl),
  2600. onload: function(response) {
  2601. // FIXME wiki.slipfox.xyz and wikiless.bloatcat.tk are selected albeit none should be selected.
  2602. if (response.finalUrl.startsWith(instanceUrl) && response.status == 200) {
  2603. newPath = modifyPathname(instanceName, url);
  2604. newUrl = new URL(instanceUrl + newPath);
  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. noRespond(url);
  2612. return;
  2613. }
  2614. maxAttempts(instanceName, instanceType, counter);
  2615. xhr();
  2616. }
  2617. },
  2618. onerror: function(response) {
  2619. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  2620. instanceUrl = instanceUrl.replace(/\./g,'-');
  2621. console.warn('Instance URL ' + instanceUrl + ' might be offline. Status error: ' + response.status + '. Please report this to the developer.');
  2622. if (maxAttempts(instanceName, instanceType, counter)) {
  2623. noRespond(url);
  2624. return;
  2625. }
  2626. maxAttempts(instanceName, instanceType, counter);
  2627. xhr();
  2628. }
  2629. });
  2630. } catch (err) {
  2631. console.warn(err);
  2632. 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');
  2633. //pickURL();
  2634. instanceUrl = farSide(instanceName, instanceUrl);
  2635. //if ((proxy[instanceName].clearnet).filter(str => str.includes('farside.link')).length) {
  2636. // instanceUrl = (proxy[instanceName].clearnet).filter(str => str.includes('farside.link'))[0];
  2637. //}
  2638. newPath = modifyPathname(instanceName, url);
  2639. location.href = new URL(instanceUrl + newPath);
  2640. }
  2641. })();
  2642.  
  2643. function farSide(instanceName, instanceUrl) {
  2644. switch (instanceName) {
  2645. case '4get':
  2646. instanceUrl = 'https://farside.link/4get';
  2647. break;
  2648. case 'anonymousoverflow':
  2649. instanceUrl = 'https://farside.link/anonymousoverflow';
  2650. break;
  2651. case 'bibliogram':
  2652. instanceUrl = 'https://farside.link/bibliogram';
  2653. break;
  2654. case 'breezewiki':
  2655. instanceUrl = 'https://farside.link/breezewiki';
  2656. break;
  2657. case 'dumb':
  2658. instanceUrl = 'https://farside.link/dumb';
  2659. break;
  2660. case 'gothub':
  2661. instanceUrl = 'https://farside.link/gothub';
  2662. break;
  2663. case 'invidious':
  2664. instanceUrl = 'https://farside.link/invidious';
  2665. break;
  2666. case 'librarian':
  2667. instanceUrl = 'https://farside.link/librarian';
  2668. break;
  2669. case 'libreddit':
  2670. instanceUrl = 'https://farside.link/libreddit';
  2671. break;
  2672. case 'libremdb':
  2673. instanceUrl = 'https://farside.link/libremdb';
  2674. break;
  2675. case 'librex':
  2676. instanceUrl = 'https://farside.link/librex';
  2677. break;
  2678. case 'librey':
  2679. instanceUrl = 'https://farside.link/librey';
  2680. break;
  2681. case 'lingva':
  2682. instanceUrl = 'https://farside.link/lingva';
  2683. break;
  2684. case 'nitter':
  2685. instanceUrl = 'https://farside.link/nitter';
  2686. break;
  2687. case 'piped':
  2688. instanceUrl = 'https://farside.link/piped';
  2689. break;
  2690. case 'proxigram':
  2691. instanceUrl = 'https://farside.link/proxigram';
  2692. break;
  2693. case 'proxitok':
  2694. instanceUrl = 'https://farside.link/proxitok';
  2695. break;
  2696. case 'quetre':
  2697. instanceUrl = 'https://farside.link/quetre';
  2698. break;
  2699. case 'redlib':
  2700. instanceUrl = 'https://farside.link/redlib';
  2701. break;
  2702. case 'rimgo':
  2703. instanceUrl = 'https://farside.link/rimgo';
  2704. break;
  2705. case 'scribe':
  2706. instanceUrl = 'https://farside.link/scribe';
  2707. break;
  2708. case 'searx':
  2709. instanceUrl = 'https://farside.link/searxng';
  2710. break;
  2711. case 'simplytranslate':
  2712. instanceUrl = 'https://farside.link/simplytranslate';
  2713. break;
  2714. case 'teddit':
  2715. instanceUrl = 'https://farside.link/teddit';
  2716. break;
  2717. case 'whoogle':
  2718. instanceUrl = 'https://farside.link/whoogle';
  2719. break;
  2720. case 'wikiless':
  2721. instanceUrl = 'https://farside.link/wikiless';
  2722. break;
  2723. //case 'yacy':
  2724. // instanceUrl = 'https://farside.link/yacy';
  2725. // break;
  2726. }
  2727. return instanceUrl;
  2728. }
  2729.  
  2730. function maxAttempts(instanceName, instanceType, counter) {
  2731. counter = counter + 1;
  2732. if (counter == proxy[instanceName][instanceType].length) {
  2733. return true;
  2734. } else {
  2735. return counter;
  2736. }
  2737. }
  2738.  
  2739. function setValue(para, sourceURL) {
  2740. if (sourceURL.searchParams.get(para)) {
  2741. para = [para];
  2742. return pickParameters(para, sourceURL);
  2743. } else {
  2744. return 'auto';
  2745. }
  2746. }
  2747.  
  2748. function pickParameters(para, sourceURL) {
  2749. for (let i = 0; i < para.length; i++) {
  2750. if (sourceURL.searchParams.get(para[i])) {
  2751. para = sourceURL.searchParams.get(para[i]);
  2752. sourceURL.searchParams.delete(para[i]);
  2753. return para;
  2754. }
  2755. }
  2756. }
  2757.  
  2758. /*
  2759.  
  2760. FIXME Check whether instance is enabled.
  2761. TODO Do not add instance is is disabled,
  2762. so that the redirector will not halt
  2763. when a disabled instance is chosen.
  2764.  
  2765. */
  2766.  
  2767. async function pickInstance(url) {
  2768.  
  2769. let sourceURL = new URL(url);
  2770. let paras = ['continue', 'retpath'];
  2771.  
  2772. for (let i = 0; i < paras.length; i++) {
  2773. if (sourceURL.searchParams.get(paras[i])) {
  2774. //sourceURL = pickParameters(paras[i], sourceURL);
  2775. sourceURL = sourceURL.searchParams.get(paras[i]);
  2776. sourceURL = new URL(sourceURL);
  2777. }
  2778. }
  2779.  
  2780. let hostname = sourceURL.hostname;
  2781. let pathname = sourceURL.pathname;
  2782. let instanceName;
  2783. let instanceNameArray = [];
  2784.  
  2785. switch (true) {
  2786.  
  2787. case hostname == 'bandcamp.com':
  2788. case hostname == 'www.bandcamp.com':
  2789. case hostname.endsWith('.bandcamp.com'):
  2790. instanceName = 'tent';
  2791. break;
  2792.  
  2793. case hostname == 'bilibili.com':
  2794. case hostname == 'www.bilibili.com':
  2795. case hostname.endsWith('.bilibili.com'):
  2796. instanceName = 'mikuinvidious';
  2797. break;
  2798.  
  2799. //case pathname.startsWith('/magnet/') && (hostname == 'bt4g.org' || hostname == 'www.bt4g.org'):
  2800. //case pathname.startsWith('/magnet/') && hostname == 'bt4gprx.com' || hostname == 'www.bt4gprx.com':
  2801. case pathname.startsWith('/hash/') && hostname == 'downloadtorrentfile.com' || hostname == 'www.downloadtorrentfile.com':
  2802. case hostname == 'torrentdownload.info':
  2803. case hostname == 'www.torrentdownload.info':
  2804. case hostname == 'torrentz.eu':
  2805. case hostname == 'www.torrentz.eu':
  2806. case hostname == 'torrentz.me':
  2807. case hostname == 'www.torrentz.me':
  2808. case hostname == 'torrentz2.is':
  2809. case hostname == 'www.torrentz2.is':
  2810. instanceName = 'btdigg';
  2811. break;
  2812.  
  2813. //case hostname == 'fandom.com':
  2814. //case hostname == 'www.fandom.com':
  2815. case hostname.endsWith('.fandom.com'):
  2816. instanceName = 'breezewiki';
  2817. break;
  2818.  
  2819. case hostname == 'github.com':
  2820. case hostname == 'www.github.com':
  2821. case hostname.endsWith('.github.com'):
  2822. instanceName = 'gothub';
  2823. break;
  2824.  
  2825. case hostname == 'gitlab.com':
  2826. case hostname == 'www.gitlab.com':
  2827. instanceName = 'laboratory';
  2828. break;
  2829.  
  2830. case hostname == 'goodreads.com':
  2831. case hostname == 'www.goodreads.com':
  2832. instanceName = 'biblioreads';
  2833. break;
  2834.  
  2835. // TODO quadkey (mapquest)
  2836. // NOTE quadkeyToTile(quadkey) See /mapbox/tilebelt
  2837. case hostname.endsWith('wikimap.toolforge.org'):
  2838. case (hostname.endsWith('moovitapp.com') &&
  2839. sourceURL.search.includes('tll')):
  2840. case (hostname.endsWith('bing.com') &&
  2841. pathname.startsWith('/maps')):
  2842. case (hostname.includes('google.') &&
  2843. pathname.startsWith('/maps')):
  2844. case (hostname.includes('waze.com') &&
  2845. pathname.startsWith('/live-map')):
  2846. case (hostname.includes('waze.com') &&
  2847. pathname.startsWith('/ul')):
  2848. case (hostname.includes('yandex.') &&
  2849. pathname.startsWith('/maps')):
  2850. instanceNameArray.push('facilmap');
  2851. instanceNameArray.push('openstreetmap');
  2852. break;
  2853.  
  2854. case hostname == 'imdb.com':
  2855. case hostname == 'www.imdb.com':
  2856. instanceName = 'libremdb';
  2857. break;
  2858.  
  2859. case hostname == 'imgur.com':
  2860. case hostname == 'www.imgur.com':
  2861. //instanceNameArray.push('imgin');
  2862. instanceNameArray.push('rimgo');
  2863. break;
  2864.  
  2865. case hostname == 'instructables.com':
  2866. case hostname == 'www.instructables.com':
  2867. instanceNameArray.push('destructables');
  2868. instanceNameArray.push('indestructables');
  2869. break;
  2870.  
  2871. case hostname == 'instagram.com':
  2872. case hostname == 'www.instagram.com':
  2873. //instanceNameArray.push('bibliogram');
  2874. instanceNameArray.push('proxigram');
  2875. break;
  2876.  
  2877. //case hostname == 'medium.com':
  2878. //case hostname == 'www.medium.com':
  2879. case hostname == 'medium.com':
  2880. case hostname == 'www.medium.com':
  2881. case hostname.endsWith('.medium.com'):
  2882. instanceNameArray.push('libmedium');
  2883. instanceNameArray.push('scribe');
  2884. break;
  2885.  
  2886. case hostname == 'odysee.com':
  2887. case hostname == 'www.odysee.com':
  2888. instanceName = 'librarian';
  2889. break;
  2890.  
  2891. case hostname == 'quora.com':
  2892. case hostname == 'www.quora.com':
  2893. instanceName = 'quetre';
  2894. break;
  2895.  
  2896. case hostname == 'reddit.com':
  2897. case hostname == 'old.reddit.com':
  2898. case hostname == 'www.reddit.com':
  2899. case hostname == 'preview.redd.it':
  2900. instanceNameArray.push('libreddit');
  2901. instanceNameArray.push('redlib');
  2902. instanceNameArray.push('teddit');
  2903. break;
  2904.  
  2905. case hostname == 'reuters.com':
  2906. case hostname == 'www.reuters.com':
  2907. instanceName = 'neuters';
  2908. break;
  2909.  
  2910. // FIXME
  2911. case (hostname.startsWith('search.yahoo.')):
  2912. //case (pathname.startsWith('/search')):
  2913. case (hostname.includes('yandex.') &&
  2914. pathname.startsWith('/search')):
  2915. case (hostname.includes('yahoo.') &&
  2916. pathname.startsWith('/search')):
  2917. case (hostname.includes('bing.') &&
  2918. pathname.startsWith('/search')):
  2919. case (hostname.includes('google.') &&
  2920. pathname.startsWith('/search')):
  2921. instanceNameArray.push('4get');
  2922. instanceNameArray.push('librex');
  2923. instanceNameArray.push('librey');
  2924. instanceNameArray.push('lieu');
  2925. instanceNameArray.push('metastem');
  2926. instanceNameArray.push('searx');
  2927. instanceNameArray.push('spot');
  2928. instanceNameArray.push('whoogle');
  2929. break;
  2930.  
  2931. case hostname == 'stackoverflow.com':
  2932. case hostname == 'www.stackoverflow.com':
  2933. instanceName = 'anonymousoverflow';
  2934. break;
  2935.  
  2936. case hostname == 'tiktok.com':
  2937. case hostname == 'www.tiktok.com':
  2938. instanceName = 'proxitok';
  2939. break;
  2940.  
  2941. case (hostname.endsWith('translate.yandex.com')):
  2942. // FIXME website blocks us from redirecting
  2943. // function setTimeout() seems to not work
  2944. // consider different approach/way
  2945. case (hostname.endsWith('translate.google.com')):
  2946. instanceNameArray.push('lingva');
  2947. instanceNameArray.push('simplytranslate');
  2948. break;
  2949.  
  2950. case (hostname.endsWith('.tumblr.com')):
  2951. instanceName = 'priviblur';
  2952. break;
  2953.  
  2954. case hostname == 'twitter.com':
  2955. case hostname == 'www.twitter.com':
  2956. case hostname == 'x.com':
  2957. case hostname == 'www.x.com':
  2958. instanceName = 'nitter';
  2959. break;
  2960.  
  2961. case hostname == 'urbandictionary.com':
  2962. case hostname == 'www.urbandictionary.com':
  2963. instanceName = 'ruraldictionary';
  2964. break;
  2965.  
  2966. case hostname == 'userscripts.org':
  2967. case hostname == 'www.userscripts.org':
  2968. instanceName = 'uso';
  2969. break;
  2970.  
  2971. //case hostname == 'wikipedia.org':
  2972. //case hostname == 'www.wikipedia.org':
  2973. case hostname.endsWith('.wikipedia.org'):
  2974. // instanceNameArray.push('everybodywiki');
  2975. // instanceNameArray.push('metastemwiki');
  2976. instanceNameArray.push('wikiless');
  2977. // instanceNameArray.push('wikiwand');
  2978. break;
  2979.  
  2980. case hostname == 'youtu.be':
  2981. case hostname == 'www.youtu.be':
  2982. case hostname == 'youtube.com':
  2983. case hostname == 'www.youtube.com':
  2984. case hostname == 'youtube-nocookie.com':
  2985. case hostname == 'www.youtube-nocookie.com':
  2986. //case hostname.endsWith('invidious-invidious.invidious.svc.cluster.local:3000'):
  2987. instanceNameArray.push('alltube');
  2988. instanceNameArray.push('cloudtube');
  2989. instanceNameArray.push('invidious');
  2990. instanceNameArray.push('materialious');
  2991. instanceNameArray.push('piped');
  2992. // //instanceNameArray.push('pipedmaterial');
  2993. instanceNameArray.push('poketube');
  2994. instanceNameArray.push('tubo');
  2995. break;
  2996.  
  2997. //default:
  2998. // return target;
  2999.  
  3000. }
  3001.  
  3002. // proxy select
  3003. if (instanceNameArray.length) {
  3004. instanceName = instanceNameArray[Math.floor(Math.random()*instanceNameArray.length)];
  3005. //urlArray = proxyArray[Math.floor(Math.random()*proxyArray.length)];
  3006. }
  3007.  
  3008. return instanceName;
  3009.  
  3010. }
  3011.  
  3012. function removeParameters(sourceURL) {
  3013.  
  3014. switch (sourceURL.hostname) {
  3015. case 'youtube.com':
  3016. case 'www.youtube.com':
  3017. case 'youtube-nocookie.com':
  3018. case 'www.youtube-nocookie.com':
  3019. sourceURL.searchParams.delete('app')
  3020. break;
  3021. }
  3022.  
  3023. return sourceURL;
  3024.  
  3025. }
  3026.  
  3027. // TODO
  3028. // Settle hostname
  3029. function modifyHostname(instanceName, url) {
  3030. let lang, partedHost;
  3031. let sourceURL = new URL(url);
  3032. let hostname = sourceURL.hostname;
  3033.  
  3034. switch (instanceName) {
  3035.  
  3036. case 'everybodywiki':
  3037. // extract language code
  3038. partedHost = hostname.split('.');
  3039. if (partedHost.length === 3 || partedHost.length === 4) {
  3040. lang = partedHost[0];
  3041. }
  3042. newHostname = `${lang}.everybodywiki.com`;
  3043. sourceURL.hostname = newHostname;
  3044. break;
  3045.  
  3046. }
  3047.  
  3048. return sourceURL;
  3049.  
  3050. }
  3051.  
  3052. // Settle pathname
  3053. function modifyPathname(instanceName, url) {
  3054. let brand, lang, name, newPath, para, partedHost;
  3055. let sourceURL = new URL(url);
  3056. //url = removeParameters(sourceURL);
  3057. let pathname = sourceURL.pathname;
  3058. let hostname = sourceURL.hostname;
  3059. //let parameter = sourceURL.searchParams;
  3060.  
  3061. switch (instanceName) {
  3062.  
  3063. // NOTE This "case" is not required albeit it makes the URL more clear
  3064. case 'alltube':
  3065. cleansedUrl = removeParameters(sourceURL);
  3066. newPath = `/info?url=${cleansedUrl}`;
  3067. break;
  3068.  
  3069. // consider function setTimeout()
  3070. case 'bibliogram':
  3071. if (!pathname.includes('accounts/login')) {
  3072. newPath = `/u/${para}`;
  3073. } else {
  3074. if (sourceURL.searchParams.get('next')) {
  3075. para = ['next'];
  3076. para = pickParameters(para, sourceURL);
  3077. newPath = `/u/${para}`;
  3078. }
  3079. }
  3080. break;
  3081.  
  3082. case 'breezewiki':
  3083. // extract wiki name
  3084. partedHost = hostname.split('.');
  3085. if (partedHost.length === 3 || partedHost.length === 4) {
  3086. brand = partedHost[0];
  3087. }
  3088. newPath = `/${brand}${pathname}`;
  3089. break;
  3090.  
  3091. case 'btdigg':
  3092. // extract sha1sum
  3093. //hash = pathname.split('/')[2];
  3094. let hash = pathname.split('/');
  3095. for (let i = 0; i < hash.length; i++) {
  3096. if (hash[i].length === 40 || hash[i].length === 33) {
  3097. hash = hash[i];
  3098. break;
  3099. }
  3100. }
  3101. newPath = `/${hash}`;
  3102. break;
  3103.  
  3104. case 'cloudtube':
  3105. case 'invidious':
  3106. case 'piped':
  3107. case 'pipedmaterial':
  3108. case 'poketube':
  3109. if (sourceURL.searchParams.get('v')) {
  3110. para = ['v'];
  3111. para = pickParameters(para, sourceURL);
  3112. newPath = `/watch?v=${para}`;
  3113. }
  3114. break;
  3115.  
  3116. case 'libreddit':
  3117. case 'redlib':
  3118. case 'teddit':
  3119. let newPathPart;
  3120. if (instanceName == 'teddit') {
  3121. newPathPart = '/pics/w:null_';
  3122. } else {
  3123. newPathPart = '/img/';
  3124. }
  3125. if (hostname == 'preview.redd.it') {
  3126. newPath = `${newPathPart}${pathname}`;
  3127. } else
  3128. if (hostname.endsWith('reddit.com') && pathname == '/media' && sourceURL.searchParams.get('url')) {
  3129. let extractedURL = new URL(sourceURL.searchParams.get('url'))
  3130. if (extractedURL.hostname == 'preview.redd.it') {
  3131. extractedPathname = extractedURL.pathname.split('-').pop();
  3132. extractedPathname = extractedPathname.replace('/','');
  3133. newPath = `${newPathPart}${extractedPathname}`;
  3134. }
  3135. }
  3136. break;
  3137.  
  3138. case 'gothub':
  3139. if (hostname.endsWith('gist.github.com')) {
  3140. newPath = `/gist${pathname}`;
  3141. }
  3142. break;
  3143.  
  3144. case 'laboratory':
  3145. newPath = '/' + hostname + pathname;
  3146. break;
  3147.  
  3148. // case 'libmedium':
  3149. //partedHost = hostname.split('.');
  3150. //if (partedHost.length === 3 || partedHost.length === 4) {
  3151. // name = partedHost[0];
  3152. //}
  3153. //newPath = `/@${name}${pathname}`;
  3154. // newPath = pathname;
  3155. // break;
  3156.  
  3157. case 'librex':
  3158. case 'metastem':
  3159. case 'spot':
  3160. // extract search parameter
  3161. para = ['q', 'text', 'p'];
  3162. para = pickParameters(para, sourceURL);
  3163. newPath = `/search.php?q=${para}`;
  3164. break;
  3165.  
  3166. case 'lingva':
  3167. // extract text parameter
  3168. let paras = ['sl', 'tl', 'text'];
  3169.  
  3170. for (let i = 0; i < paras.length; i++) {
  3171. paras[i] = setValue(paras[i], sourceURL);
  3172. }
  3173.  
  3174. //if (paras[2] === 'auto') { paras[2] = ''; }
  3175.  
  3176. if ((paras[0] == 'auto') && (paras[1] == 'auto')) {
  3177. newPath = `/${paras[2]}`;
  3178. } else {
  3179. newPath = `/${paras[0]}/${paras[1]}/${paras[2]}`;
  3180. }
  3181. break;
  3182.  
  3183. case 'facilmap':
  3184. case 'openstreetmap':
  3185. // extract coordinations
  3186. /*
  3187. if (pathname.includes('@')) {
  3188. cord = pathname.split('/')[2].split('&')[0].slice(1);
  3189. cord = cord.split(',');
  3190. }
  3191. newPath = '/#map=' + cord[2].slice(0, 1) +
  3192. '/' + cord[0] + '/' + cord[1];
  3193. */
  3194. let cord, lat, lon, zoom;
  3195. // extract coordinations
  3196. if (sourceURL.search.includes('%7E')) { // %7E is ~
  3197. para = ['cp'];
  3198. cord = pickParameters(para, sourceURL);
  3199. cord = cord.split('~');
  3200. para = ['lvl'];
  3201. zoom = pickParameters(para, sourceURL);
  3202. lat = cord[0];
  3203. lon = cord[1];
  3204. } else
  3205. if (sourceURL.search.includes('to')) {
  3206. para = ['to'];
  3207. cord = pickParameters(para, sourceURL);
  3208. cord = cord.slice(3).split(',');
  3209. lat = cord[0];
  3210. lon = cord[1];
  3211. } else
  3212. if (pathname.includes('ul') &&
  3213. sourceURL.search.includes('ll')) {
  3214. para = ['ll'];
  3215. cord = pickParameters(para, sourceURL);
  3216. cord = cord.split(',');
  3217. para = ['zoom'];
  3218. zoom = pickParameters(para, sourceURL);
  3219. lat = cord[0];
  3220. lon = cord[1];
  3221. } else
  3222. if (sourceURL.search.includes('ll')) {
  3223. para = ['ll'];
  3224. cord = pickParameters(para, sourceURL);
  3225. cord = cord.split(',');
  3226. para = ['z'];
  3227. zoom = pickParameters(para, sourceURL);
  3228. lat = cord[0];
  3229. lon = cord[1];
  3230. } else
  3231. if (sourceURL.search.includes('tll')) {
  3232. para = ['tll'];
  3233. cord = pickParameters(para, sourceURL);
  3234. cord = cord.split('_');
  3235. lat = cord[0];
  3236. lon = cord[1];
  3237. } else
  3238. if (pathname.includes('@')) {
  3239. partedPath = pathname.split('/')
  3240. for (let i = 0; i < partedPath.length; i++) {
  3241. if (partedPath[i].startsWith('@')) {
  3242. cord = partedPath[i].split(',');
  3243. }
  3244. }
  3245. lat = cord[0].slice(1);
  3246. lon = cord[1];
  3247. zoom = cord[2];
  3248. //newPath = `/#map=${cord[2].slice(0, 2)}/${cord[0].slice(1)}/${cord[1]}`;
  3249. //newPath = `/#map=${cord[2]}/${cord[0].slice(1)}/${cord[1]}`;
  3250. //newPath = `/#${cord[2]}/${cord[0].slice(1)}/${cord[1]}/`;
  3251. }
  3252.  
  3253. if (lat && lon && zoom) {
  3254. newPath = `/#${zoom}/${lat}/${lon}/`;
  3255. } else
  3256. if (lat && lon && !zoom) {
  3257. newPath = `/#10/${lat}/${lon}/`;
  3258. }
  3259.  
  3260. if (!newPath && sourceURL.searchParams.get('q')) {
  3261. para = ['q'];
  3262. para = pickParameters(para, sourceURL);
  3263. newPath = `/search?query=${para}`;
  3264. instanceUrl = 'https://www.openstreetmap.org'; // TODO Check why this line exist
  3265. }
  3266. break;
  3267.  
  3268. case 'lieu':
  3269. case 'searx':
  3270. case 'whoogle':
  3271. // extract search parameter
  3272. para = ['q', 'text', 'p'];
  3273. para = pickParameters(para, sourceURL);
  3274. newPath = `/search?q=${para}`;
  3275. break;
  3276.  
  3277. case 'metastemwiki':
  3278. // extract language code
  3279. partedHost = hostname.split('.');
  3280. if (partedHost.length === 3 || partedHost.length === 4) {
  3281. lang = partedHost[0];
  3282. }
  3283. newPath = `/#${pathname}/${lang}`;
  3284. break;
  3285.  
  3286. case 'mikuinvidious':
  3287. if (!hostname.startsWith('www.')) {
  3288. partedHost = hostname.split('.');
  3289. if (partedHost.length === 3 || partedHost.length === 4) {
  3290. name = partedHost[0];
  3291. }
  3292. newPath = `/${name}${pathname}`;
  3293. }
  3294. break;
  3295.  
  3296. case 'priviblur':
  3297. if (hostname == '64.media.tumblr.com') {
  3298. newPath = `/tblr/media/64${pathname}`;
  3299. } else {
  3300. partedHost = hostname.split('.');
  3301. if (partedHost.length === 3 || partedHost.length === 4) {
  3302. subname = partedHost[0];
  3303. }
  3304. pathname = pathname.replace('/image/', '/post/');
  3305. if (pathname == '/library') {pathname = '';}
  3306. if (subname == 'www') {subname = '';}
  3307. newPath = `/${subname}${pathname}`;
  3308. }
  3309. break;
  3310.  
  3311. case 'tent':
  3312. partedHost = hostname.split('.');
  3313. if (partedHost.length === 3 || partedHost.length === 4) {
  3314. artist = partedHost[0];
  3315. }
  3316. partedPath = pathname.split('/');
  3317. type = partedPath[1];
  3318. name = partedPath[2];
  3319. if (name) {
  3320. newPath = `/release.php?artist=${artist}&type=${type}&name=${name}`;
  3321. } else {
  3322. newPath = `/release.php?artist=${artist}&type=${type}`;
  3323. }
  3324. break;
  3325.  
  3326. case 'wikiless':
  3327. // extract language code
  3328. partedHost = hostname.split('.');
  3329. if (partedHost.length === 3 || partedHost.length === 4) {
  3330. lang = partedHost[0];
  3331. }
  3332. newPath = `${pathname}?lang=${lang}`;
  3333. break;
  3334.  
  3335. case 'wikiwand':
  3336. // extract language code
  3337. partedHost = hostname.split('.');
  3338. if (partedHost.length === 3 || partedHost.length === 4) {
  3339. lang = partedHost[0];
  3340. }
  3341. partedPath = pathname.split('/');
  3342. pathname = partedPath[2];
  3343. newPath = `/${lang}/${pathname}`;
  3344. break;
  3345.  
  3346. case 'yacy':
  3347. // extract search parameter
  3348. para = ['q', 'text', 'p'];
  3349. //pickParameters(para, sourceURL); // works even when just calling the function?
  3350. para = pickParameters(para, sourceURL);
  3351. newPath = `/yacysearch.html?query=${para}`;
  3352. break;
  3353.  
  3354. }
  3355.  
  3356. if (!newPath || newPath == '/') {
  3357. newPath = pathname + sourceURL.search + sourceURL.hash;
  3358. }
  3359.  
  3360. return newPath;
  3361.  
  3362. }
  3363.  
  3364. (async function registerMenuCommand(){
  3365. try {
  3366. for (let key in proxy) {
  3367. let keyValue = await GM.getValue(key, true);
  3368. let icon, status, value;
  3369. if (keyValue) {
  3370. icon = '🔀'
  3371. status = 'on';
  3372. value = false;
  3373. } else {
  3374. icon = '🔁'
  3375. status = 'off';
  3376. value = true;
  3377. }
  3378. await GM.registerMenuCommand(`${icon} ${key} [${status}]`.toUpperCase(), () => toggleStatus(key, value, status));
  3379. }
  3380. for (let key of ['dhttp', 'i2p', 'loki', 'tor', 'veilid', 'yggdrasil']) {
  3381. let keyValue = await GM.getValue(key, false);
  3382. let icon, status, value;
  3383. if (keyValue) {
  3384. icon = '🔒'
  3385. status = 'on';
  3386. value = false;
  3387. } else {
  3388. icon = '🔓'
  3389. status = 'off';
  3390. value = true;
  3391. }
  3392. await GM.registerMenuCommand(`${icon} ${key} system [${status}]`.toUpperCase(), () => toggleStatus(key, value, status), key[0]);
  3393. }
  3394. } catch (err) {
  3395. console.warn(err);
  3396. console.info('API GM.registerMenuCommand does not seem to be available.');
  3397. }
  3398. })();
  3399.  
  3400. async function toggleStatus(key, value, status) {
  3401. await GM.setValue(key, value);
  3402. //alert(`${key} is now ${status}d`)
  3403. //location.reload();
  3404. }
  3405.  
  3406. (function instanceSwitcher(){
  3407. document.addEventListener("DOMContentLoaded",
  3408. async function() {
  3409. let instanceSelect = isInstance();
  3410. if (instanceSelect) {
  3411. infoBar(instanceSelect);
  3412. //proxyButton(instanceSelect);
  3413. reverseURL(location.href);
  3414. await GM.registerMenuCommand(`🎲️ Switch Instance`,
  3415. () => xhrInstanceSwitcher(instanceSelect), 'S'); // ↻ ↯ ↫
  3416. }
  3417. });
  3418. })();
  3419.  
  3420. // TODO
  3421. function reverseURL() {
  3422.  
  3423. // NOTE Useful for bookmarking original URL
  3424.  
  3425. }
  3426.  
  3427. // Check whether current page is a proxy instance
  3428. // If it is, create a menu command and a top bar to switch with another instance.
  3429. function isInstance(){
  3430. for (i in proxy) {
  3431. for (j in proxy[i]) {
  3432. for (k in proxy[i][j]) {
  3433. let url
  3434. url = proxy[i][j][k];
  3435. url = new URL(url);
  3436. if (location.hostname == url.hostname) {
  3437. instanceName = i;
  3438. return instanceName;
  3439. }
  3440. }
  3441. }
  3442. }
  3443. }
  3444.  
  3445. function proxyButton(instanceSelect) {
  3446. let namespace = 'i2p-schimon-proxy-button';
  3447. let bttn = document.createElement(namespace);
  3448. bttn.id = namespace;
  3449. document.body.append(bttn);
  3450. let icon = document.createElement(namespace);
  3451. bttn.append(icon)
  3452. let text = document.createElement(namespace);
  3453. bttn.append(text)
  3454. text.textContent = `Switch ${instanceSelect} instance`;
  3455. // set color
  3456. //text.style.borderWidth = '5px';
  3457. //text.style.borderRadius = '5px';
  3458. //text.style.borderColor = 'red';
  3459. //text.style.background = 'black';
  3460. //text.style.color = 'whitesmoke';
  3461. // set position
  3462. text.style.display = 'none';
  3463. text.style.position = 'fixed';
  3464. text.style.bottom = 0;
  3465. text.style.right = 0;
  3466. text.style.marginTop = '100px';
  3467. text.style.marginRight = '60px';
  3468. text.style.minHeight = '40px';
  3469. // set font
  3470. text.style.fontFamily = 'system-ui';
  3471. text.style.fontSize = '20px';
  3472. text.style.fontStyle = 'italic';
  3473. text.style.fontWeight = 'bold';
  3474. //icon.title = `🥸 Switch ${instanceSelect} instance`;
  3475. // set content
  3476. icon.textContent = '🥸';
  3477. icon.style.all = 'unset';
  3478. // set font
  3479. icon.style.fontFamily = 'system-ui';
  3480. icon.style.fontSize = '20px';
  3481. icon.style.fontWeight = 'bold';
  3482. // set position
  3483. icon.style.position = 'fixed';
  3484. icon.style.bottom = 0;
  3485. icon.style.right = 0;
  3486. // set appearance
  3487. icon.style.marginTop = '100px';
  3488. icon.style.marginRight = '10px';
  3489. icon.style.minWidth = '50px';
  3490. icon.style.minHeight = '50px';
  3491. icon.style.zIndex = 10000;
  3492. icon.style.opacity = 0.5;
  3493. //icon.style.transition = 'all .5s ease .5s';
  3494. // center character
  3495. icon.style.justifyContent = 'center';
  3496. icon.style.alignItems = 'center';
  3497. icon.style.display = 'flex';
  3498. // disable selection marks
  3499. icon.style.outline = 'none';
  3500. bttn.style.userSelect = 'none';
  3501. bttn.style.cursor = 'default';
  3502. bttn.onmouseover = () => {
  3503. //bttn.textContent = `Switch ${instanceSelect} instance 🥸`;
  3504. icon.style.opacity = 'unset';
  3505. text.style.display = 'unset';
  3506. };
  3507. bttn.onmouseleave = () => {
  3508. icon.textContent = `🥸`;
  3509. icon.style.opacity = 0.8;
  3510. text.style.display = 'none';
  3511. };
  3512. bttn.onclick = async () => {
  3513. await xhrInstanceSwitcher(instanceSelect);
  3514. };
  3515. }
  3516.  
  3517. function getOriginalLink(instanceSelect) {
  3518. let lang, originalLink, originalPath, splitPathname;
  3519. let sourceURL = new URL(location.href);
  3520. let pathname = sourceURL.pathname;
  3521. pathname = pathname.replace('//', '/');
  3522. //let hostname = sourceURL.hostname;
  3523. switch (instanceSelect) {
  3524. case 'alltube':
  3525. originalLink = sourceURL.searchParams.get('url').replace('/www.','/');
  3526. break;
  3527. case 'anonymousoverflow':
  3528. // NOTE Not good due to I2P and onion not having HTTP(S)
  3529. //sourceURL.hostname = 'stackoverflow.com';
  3530. //originalLink = sourceURL;
  3531. originalLink = `https://stackoverflow.com${pathname}`;
  3532. break;
  3533. case 'biblioreads':
  3534. originalLink = `https://goodreads.com${pathname}`;
  3535. break;
  3536. case 'breezewiki':
  3537. splitPathname = pathname.split('/');
  3538. splitPathname.shift();
  3539. let brand = splitPathname.shift();
  3540. originalPath = splitPathname.join('/');
  3541. originalLink = `https://${brand}.fandom.com/${originalPath}`;
  3542. break;
  3543. case 'btdigg':
  3544. if (location.href.includes('/search?')) {
  3545. originalLink = sourceURL;
  3546. } else {
  3547. hash = pathname.split('/')[1];
  3548. originalLink = `magnet:?xt=urn:btih:${hash}`;
  3549. }
  3550. break;
  3551. case 'cloudtube':
  3552. case 'invidious':
  3553. case 'materialious':
  3554. case 'piped':
  3555. case 'pipedmaterial':
  3556. case 'poketube':
  3557. let pageId;
  3558. if (pathname.includes('/embed/') || instanceSelect == 'materialious') {
  3559. pageId = pathname.split('/')[2];
  3560. } else {
  3561. pageId = sourceURL.searchParams.get('v');
  3562. }
  3563. originalLink = `https://youtube.com/watch?v=${pageId}`;
  3564. break;
  3565. case 'destructables':
  3566. case 'indestructables':
  3567. originalLink = `https://instructables.com${pathname}`;
  3568. break;
  3569. case 'gothub':
  3570. originalLink = `https://github.com${pathname}`;
  3571. break;
  3572. case 'laboratory':
  3573. originalLink = `https://${pathname}`;
  3574. break;
  3575. case 'libmedium':
  3576. splitPathname = pathname.split('/');
  3577. //let handler = splitPathname[1].substring(1);
  3578. let handler = splitPathname[1];
  3579. originalPath = splitPathname[2];
  3580. originalLink = `https://${handler}.medium.com/${originalPath}`;
  3581. break;
  3582. case 'libremdb':
  3583. originalLink = `https://imdb.com${pathname}`;
  3584. break;
  3585. case 'librarian':
  3586. originalLink = `https://odysee.com${pathname}`;
  3587. break;
  3588. case 'nitter':
  3589. originalLink = `https://twitter.com${pathname}`;
  3590. break;
  3591. case 'neuters':
  3592. originalLink = `https://reuters.com${pathname}`;
  3593. break;
  3594. case 'proxitok':
  3595. originalLink = `https://tiktok.com${pathname}`;
  3596. break;
  3597. case 'quetre':
  3598. originalLink = `https://quora.com${pathname}`;
  3599. break;
  3600. case 'libreddit':
  3601. case 'redlib':
  3602. case 'teddit':
  3603. if (pathname.includes('/img/')) {
  3604. filename = pathname.split('/')[2];
  3605. originalLink = `https://preview.redd.it/${filename}`;
  3606. } else
  3607. if (pathname.includes('/pics/')) {
  3608. filename = pathname.split('/')[2].replace('w:null_', '');
  3609. originalLink = `https://preview.redd.it/${filename}`;
  3610. } else {
  3611. originalLink = `https://reddit.com${pathname}`;
  3612. }
  3613. break;
  3614. case 'metastemwiki':
  3615. splitHash = sourceURL.hash.split('/')
  3616. lang = splitHash[3];
  3617. pathname = splitHash[2];
  3618. originalLink = `https://${lang}.wikipedia.org/wiki/${pathname}`;
  3619. break;
  3620. case 'imgin':
  3621. case 'rimgo':
  3622. originalLink = `https://imgur.com${pathname}`;
  3623. break;
  3624. case 'scribe':
  3625. originalLink = `https://medium.medium.com${pathname}`;
  3626. break;
  3627. case 'tent':
  3628. let artist = sourceURL.searchParams.get('artist');
  3629. let name = sourceURL.searchParams.get('name');
  3630. let type = sourceURL.searchParams.get('type');
  3631. if (type) {
  3632. originalLink = `https://${artist}.bandcamp.com/${type}/${name}`;
  3633. } else {
  3634. originalLink = `https://${artist}.bandcamp.com/`;
  3635. }
  3636. break;
  3637. case 'wikiless':
  3638. lang = sourceURL.searchParams.get('lang');
  3639. if (!lang) {
  3640. lang = document.querySelector('html').lang;
  3641. }
  3642. originalLink = `https://${lang}.wikipedia.org${pathname}`;
  3643. break;
  3644. case 'wikiwand':
  3645. splitPathname = pathname.split('/')
  3646. lang = splitPathname[1];
  3647. pathname = splitPathname[2];
  3648. originalLink = `https://${lang}.wikipedia.org/wiki/${pathname}`;
  3649. break;
  3650. default:
  3651. originalLink = ``;
  3652. }
  3653. return originalLink;
  3654. }
  3655.  
  3656. function infoBar(instanceSelect) {
  3657. let originalLink = getOriginalLink(instanceSelect);
  3658. let namespace = 'i2p-schimon-proxy-bar';
  3659. let bar = document.createElement(namespace);
  3660. document.body.prepend(bar);
  3661. bar.id = namespace;
  3662. instanceSelectCapitalized = instanceSelect[0].toUpperCase() + instanceSelect.substring(1);
  3663. //bar.textContent = `🥸 ${instanceSelectCapitalized} Proxy`;
  3664. bar.textContent = `${instanceSelectCapitalized} `;
  3665. //bar.title = 'Click to switch to another instance';
  3666. bar.style.all = 'unset';
  3667. bar.style.direction = 'ltr';
  3668. bar.style.backgroundColor = '#f1f1f1';
  3669. bar.style.color = '#000';
  3670. bar.style.borderTop = 'ridge';
  3671. bar.style.fontFamily = 'system-ui';
  3672. //bar.style.fontSize = 'larger';
  3673. bar.style.fontWeight = 'bold';
  3674. bar.style.right = 0;
  3675. bar.style.left = 0;
  3676. bar.style.bottom = 0;
  3677. bar.style.zIndex = 10000000000;
  3678. //bar.style.padding = '6px';
  3679. bar.style.position = 'fixed';
  3680. bar.style.textAlign = 'center';
  3681. bar.style.userSelect = 'none';
  3682. bar.style.opacity = 0.5;
  3683. //bar.onmouseleave = () => { // onmouseout
  3684. // bar.style.opacity = 0.8;
  3685. //};
  3686. bar.onmouseover = () => { // mouseenter
  3687. bar.style.opacity = 'unset';
  3688. };
  3689. // TODO Hide when screen is too narrow to hold all elements in one line
  3690. let text = document.createElement('input');
  3691. text.value = originalLink;
  3692. text.style.all = 'unset';
  3693. text.style.margin = '3px';
  3694. text.style.minWidth = '30%';
  3695. bar.append(text);
  3696. let buttonReturn = document.createElement('button');
  3697. buttonReturn.textContent = 'Return';
  3698. buttonReturn.title = 'Warning of surveillance! (click twice)';
  3699. buttonReturn.style.all = 'unset';
  3700. buttonReturn.style.margin = '3px';
  3701. buttonReturn.style.width = '10%';
  3702. buttonReturn.ondblclick = async () => {location.href = originalLink;};
  3703. bar.append(buttonReturn);
  3704. let select = document.createElement('select');
  3705. select.style.all = 'unset';
  3706. select.style.textAlign = 'left';
  3707. select.style.margin = '3px';
  3708. select.style.maxWidth = '30%';
  3709. select.oninput = async () => {replaceOrigin(select.value);};
  3710. bar.append(select);
  3711. for (i in proxy[instanceSelect]) {
  3712. for (j of proxy[instanceSelect][i]) {
  3713. let option = document.createElement('option');
  3714. option.textContent = j;
  3715. option.value = j;
  3716. select.append(option);
  3717. }
  3718. }
  3719. let buttonSwitch = document.createElement('button');
  3720. buttonSwitch.textContent = 'Random';
  3721. buttonSwitch.title = 'Switch instance randomly';
  3722. buttonSwitch.style.all = 'unset';
  3723. buttonSwitch.style.margin = '3px';
  3724. buttonSwitch.style.width = '10%';
  3725. buttonSwitch.onclick = async () => {await xhrInstanceSwitcher(instanceSelect);};
  3726. bar.append(buttonSwitch);
  3727. let buttonClose = document.createElement('button');
  3728. buttonClose.textContent = 'X';
  3729. buttonClose.style.all = 'unset';
  3730. buttonClose.style.margin = '3px';
  3731. buttonClose.style.width = '4%';
  3732. buttonClose.onclick = async () => {bar.remove();};
  3733. bar.append(buttonClose);
  3734. //let span = document.createElement('span');
  3735. //span.textContent = 'Proxy Redirect';
  3736. ////span.style.fontWeight = 'normal';
  3737. ////span.style.fontStyle = 'italic';
  3738. //span.style.margin = '3px';
  3739. //bar.append(span);
  3740. }
  3741.  
  3742. function replaceOrigin(newUrl) {
  3743. let url = new URL(location.href);
  3744. let pathname = url.pathname + url.search;
  3745. location.href = newUrl + pathname;
  3746. //url.origin = newUrl;
  3747. //location.href = url
  3748. }
  3749.  
  3750. async function pickURL(instanceName) {
  3751. // instance select
  3752. let urlArray, telecomSystem;
  3753. if (instanceName && await GM.getValue(instanceName, true)) {
  3754. for (let key of ['dhttp', 'i2p', 'loki', 'tor', 'veilid', 'yggdrasil']) {
  3755. if (await GM.getValue(key, false) &&
  3756. proxy[instanceName][key].length) {
  3757. urlArray = proxy[instanceName][key];
  3758. telecomSystem = key;
  3759. break;
  3760. }
  3761. }
  3762. if (!urlArray) {
  3763. urlArray = proxy[instanceName].clearnet;
  3764. telecomSystem = 'clearnet';
  3765. }
  3766. let urlSelect = urlArray[Math.floor(Math.random()*urlArray.length)];
  3767. return {name : instanceName, url : urlSelect, type : telecomSystem};
  3768. }
  3769. }
  3770.  
  3771. async function xhrInstanceSwitcher(instanceSelect) {
  3772. let url = location.href;
  3773. let result = await pickURL(instanceSelect);
  3774. if (!result) {return;}
  3775. let instanceName = result.name;
  3776. let instanceType = result.type;
  3777. let instanceUrl = result.url;
  3778. if (!url) {return;}
  3779. let newPath = location.pathname + location.search;
  3780. let newUrl = new URL(instanceUrl + newPath);
  3781. let counter = 0;
  3782.  
  3783. console.log(`
  3784. Setting Proxy to ${instanceName}
  3785. URL: ${newUrl}
  3786. `);
  3787.  
  3788. console.log(`
  3789. URL: ${url}
  3790. Selected: ${instanceUrl}
  3791. Pathname: ${newPath}
  3792. `);
  3793.  
  3794. try {
  3795. gmXmlhttpRequest({
  3796. method: 'GET',
  3797. url: instanceUrl,
  3798. synchronous: true,
  3799. onprogress: pageLoader(newUrl),
  3800. onload: function(response) {
  3801. if (response.finalUrl.startsWith(instanceUrl) && response.status == 200) {
  3802. newUrl = new URL(instanceUrl + newPath);
  3803. location.href = newUrl;
  3804. } else {
  3805. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  3806. instanceUrl = instanceUrl.replace(/\./g,'-');
  3807. console.warn('Instance URL ' + instanceUrl + ' might be out of service. URL has changed. Please report this to the developer.');
  3808. if (maxAttempts(instanceName, instanceType, counter)) {
  3809. noRespond(url);
  3810. return;
  3811. }
  3812. maxAttempts(instanceName, instanceType, counter);
  3813. xhr();
  3814. }
  3815. },
  3816. onerror: function(response) {
  3817. instanceUrl = instanceUrl.slice(instanceUrl.lastIndexOf('/')+1);
  3818. instanceUrl = instanceUrl.replace(/\./g,'-');
  3819. console.warn('Instance URL ' + instanceUrl + ' might be offline. Status error: ' + response.status + '. Please report this to the developer.');
  3820. if (maxAttempts(instanceName, instanceType, counter)) {
  3821. noRespond(url);
  3822. return;
  3823. }
  3824. maxAttempts(instanceName, instanceType, counter);
  3825. xhr();
  3826. }
  3827. });
  3828. } catch (err) {
  3829. console.warn(err);
  3830. 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');
  3831. //pickURL();
  3832. instanceUrl = farSide(instanceName, instanceUrl);
  3833. //if ((proxy[instanceName].clearnet).filter(str => str.includes('farside.link')).length) {
  3834. // instanceUrl = (proxy[instanceName].clearnet).filter(str => str.includes('farside.link'))[0];
  3835. //}
  3836. location.href = new URL(instanceUrl + newPath);
  3837. }
  3838. }