Privacy Frontend Redirect

Redirect to privacy friendly front-ends of popular services.

当前为 2023-01-31 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Privacy Frontend Redirect
  3. // @namespace https://greasyfork.org/en/scripts/458875-privacy-frontend-redirect
  4. // @match *://*youtube.com/*
  5. // @match *://*youtu.be/*
  6. // @match *://*twitter.com/*
  7. // @match *://*reddit.com/*
  8. // @match *://*imgur.com/*
  9. // @match *://*instagram.com/*
  10. // @match *://*tiktok.com/*
  11. // @match *://*imdb.com/*
  12. // @match *://*fandom.com/*
  13. // @match *://*translate.google.com/*
  14. // @match *://*medium.com/*
  15. // @grant none
  16. // @version 2.1.3
  17. // @author NoUser
  18. // @description Redirect to privacy friendly front-ends of popular services.
  19. // @run-at document-start
  20. // @license MIT
  21. // ==/UserScript==
  22.  
  23. // YouTube
  24. if (window.location.hostname === "www.youtube.com") {
  25. window.location.href = window.location.href.replace("www.youtube.com", "inv.librefront.com");
  26. }
  27.  
  28. // Twitter
  29. const t = ["nitter.sneed.network", "canada.unofficialbird.com", "nitter.privacytools.io", "nitter.foss.wtf", "nitter.privacy.com.de", "nitter.1d4.us", "nitter.pussthecat.org", "nitter.poast.org", "twitter.censors.us"]
  30. const rt = t[Math.floor(Math.random() * t.length)];
  31.  
  32. if (window.location.hostname === "twitter.com") {
  33. window.location.href = window.location.href.replace("twitter.com", rt);
  34. } else if(window.location.hostname === "mobile.twitter.com") {
  35. window.location.href = window.location.href.replace("mobile.twitter.com", rt);
  36. }
  37.  
  38. // Reddit
  39. const r = ["libreddit.eu.org", "libreddit.spike.codes", "lr.odyssey346.dev", "rd.funami.tech", "libreddit.dcs0.hu", "lr.vern.cc", "www.troddit.com"]
  40. const rr = r[Math.floor(Math.random() * r.length)];
  41.  
  42. if (window.location.hostname === "www.reddit.com") {
  43. window.location.href = window.location.href.replace("www.reddit.com", rr);
  44. }
  45. // Imgur
  46. const i = ["rimgo.pussthecat.org", "rimgo.totaldarkness.net", "rimgo.vern.cc", "imgur.artemislena.eu", "rimgo.privacydev.net", "rimgo.bus-hit.me"]
  47. const ri = i[Math.floor(Math.random() * i.length)];
  48.  
  49. if (window.location.hostname === "imgur.com") {
  50. window.location.href = window.location.href.replace("imgur.com", ri);
  51. } else if(window.location.hostname === "i.imgur.com") {
  52. window.location.href = window.location.href.replace("i.imgur.com", ri);
  53. }
  54.  
  55. // Instagram
  56. const ins = ["bibliogram.froth.zone", "ig.tokhmi.xyz", "bibliogram.priv.pw"]
  57. const rins = ins[Math.floor(Math.random() * ins.length)];
  58.  
  59. if (window.location.hostname === "www.instagram.com") {
  60. window.location.href = window.location.href.replace("www.instagram.com", rins);
  61. }
  62.  
  63. // TikTok
  64. const ti = ["proxitok.pussthecat.org", "proxitok.esmailelbob.xyz", "tok.habedieeh.re", "tok.artemislena.eu", "proxitok.privacydev.net", "proxitok.manasiwibi.com"]
  65. const rti = ti[Math.floor(Math.random() * ti.length)];
  66.  
  67. if (window.location.hostname === "www.tiktok.com") {
  68. window.location.href = window.location.href.replace("www.tiktok.com", rti);
  69. }
  70.  
  71. // IMDB
  72. const im = ["ld.vern.cc", "libremdb.esmailelbob.xyz", "lmdb.tokhmi.xyz", "libremdb.iket.me", "libremdb.pussthecat.org"]
  73. const rim = im[Math.floor(Math.random() * im.length)];
  74.  
  75. if (window.location.hostname === "www.imdb.com") {
  76. window.location.href = window.location.href.replace("www.imdb.com", rim);
  77. }
  78.  
  79. // Fandom
  80. const fan = ["https://bw.vern.cc", "https://breezewiki.esmailelbob.xyz", "https://bw.artemislena.eu", "https://breezewiki.pussthecat.org"]
  81. const rfan = fan[Math.floor(Math.random() * fan.length)];
  82. var sub = window.location.host.split('.')[0]
  83.  
  84. if (window.location.href.match(/^https:\/\/(.+)?\.fandom\.com\//)) { window.location.replace(rfan + "/" + sub + window.location.pathname) }
  85.  
  86.  
  87. // Google Translate
  88. const tr = ["lingva.ml", "translate.plausibility.cloud", "lingva.lunar.icu", "translate.projectsegfau.lt", "translate.jae.fi"]
  89. const rtr = tr[Math.floor(Math.random() * tr.length)];
  90.  
  91. if (window.location.hostname === "translate.google.com") {
  92. window.location.href = window.location.href.replace("translate.google.com", rtr);
  93. }
  94.  
  95. // Medium
  96. const m = ["scribe.rip", "scribe.nixnet.services", "scribe.citizen4.eu", "scribe.bus-hit.me", "scribe.froth.zone", "scribe.rawbit.ninja"]
  97. const rm = m[Math.floor(Math.random() * m.length)];
  98.  
  99. if (window.location.hostname === "medium.com") {
  100. window.location.href = window.location.href.replace("medium.com", rm);
  101. }