Proxy Redirect

Redirect to privacy respecting proxy frontends

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

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