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.4
  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. } else if (window.location.hostname === "m.youtube.com") {
  27. window.location.href = window.location.href.replace("m.youtube.com", "inv.librefront.com");
  28. }
  29.  
  30. // Twitter
  31. 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"]
  32. const rt = t[Math.floor(Math.random() * t.length)];
  33.  
  34. if (window.location.hostname === "twitter.com") {
  35. window.location.href = window.location.href.replace("twitter.com", rt);
  36. } else if(window.location.hostname === "mobile.twitter.com") {
  37. window.location.href = window.location.href.replace("mobile.twitter.com", rt);
  38. }
  39.  
  40. // Reddit
  41. const r = ["libreddit.eu.org", "libreddit.spike.codes", "lr.odyssey346.dev", "rd.funami.tech", "libreddit.dcs0.hu", "lr.vern.cc", "www.troddit.com"]
  42. const rr = r[Math.floor(Math.random() * r.length)];
  43.  
  44. if (window.location.hostname === "www.reddit.com") {
  45. window.location.href = window.location.href.replace("www.reddit.com", rr);
  46. }
  47. // Imgur
  48. const i = ["rimgo.pussthecat.org", "rimgo.totaldarkness.net", "rimgo.vern.cc", "imgur.artemislena.eu", "rimgo.privacydev.net", "rimgo.bus-hit.me"]
  49. const ri = i[Math.floor(Math.random() * i.length)];
  50.  
  51. if (window.location.hostname === "imgur.com") {
  52. window.location.href = window.location.href.replace("imgur.com", ri);
  53. } else if(window.location.hostname === "i.imgur.com") {
  54. window.location.href = window.location.href.replace("i.imgur.com", ri);
  55. }
  56.  
  57. // Instagram
  58. const ins = ["bibliogram.froth.zone", "ig.tokhmi.xyz", "bibliogram.priv.pw"]
  59. const rins = ins[Math.floor(Math.random() * ins.length)];
  60.  
  61. if (window.location.hostname === "www.instagram.com") {
  62. window.location.href = window.location.href.replace("www.instagram.com", rins);
  63. }
  64.  
  65. // TikTok
  66. const ti = ["proxitok.pussthecat.org", "proxitok.esmailelbob.xyz", "tok.habedieeh.re", "tok.artemislena.eu", "proxitok.privacydev.net", "proxitok.manasiwibi.com"]
  67. const rti = ti[Math.floor(Math.random() * ti.length)];
  68.  
  69. if (window.location.hostname === "www.tiktok.com") {
  70. window.location.href = window.location.href.replace("www.tiktok.com", rti);
  71. }
  72.  
  73. // IMDB
  74. const im = ["ld.vern.cc", "libremdb.esmailelbob.xyz", "lmdb.tokhmi.xyz", "libremdb.iket.me", "libremdb.pussthecat.org"]
  75. const rim = im[Math.floor(Math.random() * im.length)];
  76.  
  77. if (window.location.hostname === "www.imdb.com") {
  78. window.location.href = window.location.href.replace("www.imdb.com", rim);
  79. }
  80.  
  81. // Fandom
  82. const fan = ["https://bw.vern.cc", "https://breezewiki.esmailelbob.xyz", "https://bw.artemislena.eu", "https://breezewiki.pussthecat.org"]
  83. const rfan = fan[Math.floor(Math.random() * fan.length)];
  84. var sub = window.location.host.split('.')[0]
  85.  
  86. if (window.location.href.match(/^https:\/\/(.+)?\.fandom\.com\//)) { window.location.replace(rfan + "/" + sub + window.location.pathname) }
  87.  
  88.  
  89. // Google Translate
  90. const tr = ["lingva.ml", "translate.plausibility.cloud", "lingva.lunar.icu", "translate.projectsegfau.lt", "translate.jae.fi"]
  91. const rtr = tr[Math.floor(Math.random() * tr.length)];
  92.  
  93. if (window.location.hostname === "translate.google.com") {
  94. window.location.href = window.location.href.replace("translate.google.com", rtr);
  95. }
  96.  
  97. // Medium
  98. const m = ["scribe.rip", "scribe.nixnet.services", "scribe.citizen4.eu", "scribe.bus-hit.me", "scribe.froth.zone", "scribe.rawbit.ninja"]
  99. const rm = m[Math.floor(Math.random() * m.length)];
  100.  
  101. if (window.location.hostname === "medium.com") {
  102. window.location.href = window.location.href.replace("medium.com", rm);
  103. }