Greasy Fork镜像 支持简体中文。

Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

目前為 2021-12-19 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Open-Source Alternative Redirector
  3. // @namespace -
  4. // @version 0.1
  5. // @description Redirects you from proprietary web-services to ethical alternatives.
  6. // @author NotYou
  7. // @match *youtube.com/*
  8. // @match *google.com/*
  9. // @match *reddit.com/*
  10. // @match *twitter.com/*
  11. // @match *instagram.com/*
  12. // @match *facebook.com/*
  13. // @match *wikipedia.com/*
  14. // @match *pastebin.com/*
  15. // @match *mediafire.com/*
  16. // @match *speedtest.net/*
  17. // @match *mega.nz/*
  18. // @match *play.google.com/*
  19. // @match *zoom.us/*
  20. // @match *microsoft.com/*
  21. // @run-at document-start
  22. // @license GPLv3
  23. // @license-link https://www.gnu.org/licenses/gpl-3.0.txt
  24. // @grant none
  25. // ==/UserScript==
  26.  
  27. const invidious = "https://yewtu.be"
  28. const searx = "https://searx.org"
  29. const libreddit = "https://reddit.invak.id"
  30. const nitter = "https://nitter.snopyta.org"
  31. const bibliogram = "https://bibliogram.art"
  32. const mastodon = "https://hostux.social"
  33. const wikiless = "https://wikiless.org"
  34. const privatebin = "https://privatebin.info"
  35. const lingvatrns = "https://lingva.ml"
  36. const libretrns = "https://libretranslate.de"
  37. const filebin = "https://filebin.net"
  38. const librepseed = "https://librespeed.org"
  39. const crypt = "https://crypt.ee"
  40. const fdroid = "https://f-droid.org"
  41. const jisti = "https://meet.jit.si/"
  42. const fsf = "https://fsf.org"
  43.  
  44. // YouTube | Invidious
  45. if(window.location.host.indexOf("youtube.com") != -1){
  46. window.location.replace(invidious + window.location.pathname + window.location.search)
  47. }
  48.  
  49. // Google | Searx
  50. if(window.location.host.indexOf("google.com") != -1){
  51. window.location.replace(searx + window.location.pathname + window.location.search)
  52. }
  53.  
  54. // Reddit | Libreddit
  55. if(window.location.host.indexOf("reddit.com") != -1){
  56. window.location.replace(libreddit + window.location.pathname + window.location.search)
  57. }
  58.  
  59. // Twitter | Nitter
  60. if(window.location.host.indexOf("twitter.com") != -1){
  61. window.location.replace(nitter + window.location.pathname + window.location.search)
  62. }
  63.  
  64. // Instagram | Bibliogram
  65. if(window.location.host.indexOf("instagram.com") != -1){
  66. window.location.replace(bibliogram + window.location.pathname + window.location.search)
  67. }
  68.  
  69. // Facebook | Mastodon
  70. if(window.location.host.indexOf("facebook.com") != 1){
  71. window.location.replace(mastodon)
  72. }
  73.  
  74. // Wikipedia | Wikiless
  75. if(window.location.host.indexOf("wikipedia.org") != -1){
  76. window.location.replace(wikiless + window.location.pathname + window.location.search)
  77. }
  78.  
  79. // PasteBin | PrivateBin
  80. if(window.location.host.indexOf("pastebin.com") != 1){
  81. window.location.replace(privatebin)
  82. }
  83.  
  84. // MediaFire | FileBin
  85. if(window.location.host.indexOf("mediafire.com") != 1){
  86. window.location.replace(filebin)
  87. }
  88.  
  89. // Google Translate | Lingva Translate
  90. if(window.location.host.indexOf("translate.google.com") != 1){
  91. window.location.replace(lingvatrns)
  92. }
  93.  
  94. // DeepL Translate | Libre Translate
  95. if(window.location.host.indexOf("www.deepl.com") != 1){
  96. window.location.replace(libretrns)
  97. }
  98.  
  99. // SpeedTest | LibreSpeed
  100. if(window.location.host.indexOf("www.speedtest.net") != 1){
  101. window.location.replace(librepseed)
  102. }
  103.  
  104. // Mega | Crypt
  105. if(window.location.host.indexOf("mega.nz") != 1){
  106. window.location.replace(crypt)
  107. }
  108.  
  109. // Play Market | F-Droid
  110. if(window.location.host.indexOf("play.google.com") != 1){
  111. window.location.replace(fdroid)
  112. }
  113.  
  114. // Zoom | Jisti
  115. if(window.location.host.indexOf("zoom.us") != 1){
  116. window.location.replace(jisti)
  117. }
  118.  
  119. // Microsoft | FSF
  120. if(window.location.host.indexOf("microsoft.com") != 1){
  121. window.location.replace(fsf)
  122. }
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址