Greasy Fork镜像 支持简体中文。

Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

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

  1. // ==UserScript==
  2. // @name Open-Source Alternative Redirector
  3. // @namespace -
  4. // @version 0.3
  5. // @description Redirects you from proprietary web-services to ethical alternatives.
  6. // @author NotYou
  7. // @include *youtube.com/*
  8. // @include *google.com/*
  9. // @include *reddit.com/*
  10. // @include *twitter.com/*
  11. // @include *instagram.com/*
  12. // @include *facebook.com/*
  13. // @include *live.com/*
  14. // @include *mail.ru/*
  15. // @include *wikipedia.com/*
  16. // @include *pastebin.com/*
  17. // @include *mediafire.com/*
  18. // @include *speedtest.net/*
  19. // @include *mega.nz/*
  20. // @include *play.google.com/*
  21. // @include *zoom.us/*
  22. // @include *microsoft.com/*
  23. // @include *redhat.com/*
  24. // @include *debian.org/*
  25. // @include *archlinux.org/*
  26. // @run-at document-start
  27. // @license GPLv3
  28. // @license-link https://www.gnu.org/licenses/gpl-3.0.txt
  29. // @icon https://icons.iconarchive.com/icons/itweek/knob-toolbar/32/Knob-Shuffle-Off-icon.png
  30. // @grant none
  31. // ==/UserScript==
  32.  
  33. /*
  34.  
  35. ﹀ Change Log ﹀
  36.  
  37. 0.3 Version:
  38. - Fixed Live/Proton and Mail/Tatunota includes
  39.  
  40. 0.2 Version:
  41. - Added Email Web-sites
  42. - Added Linux Distributive
  43. - Added Icon
  44.  
  45. */
  46.  
  47. const invidious = "https://yewtu.be"
  48. const searx = "https://searx.org"
  49. const libreddit = "https://reddit.invak.id"
  50. const nitter = "https://nitter.snopyta.org"
  51. const bibliogram = "https://bibliogram.art"
  52. const mastodon = "https://hostux.social"
  53. const protonemail = "https://protonmail.com"
  54. const tatunotaemail = "https://tutanota.com"
  55. const wikiless = "https://wikiless.org"
  56. const privatebin = "https://privatebin.info"
  57. const hedgedoc = "https://pad.snopyta.org"
  58. const lingvatrns = "https://lingva.ml"
  59. const libretrns = "https://libretranslate.de"
  60. const filebin = "https://filebin.net"
  61. const librepseed = "https://librespeed.org"
  62. const crypt = "https://crypt.ee"
  63. const fdroid = "https://f-droid.org"
  64. const jisti = "https://meet.jit.si/"
  65. const fsf = "https://fsf.org"
  66. const nosystemd = "https://nosystemd.org"
  67. const devuan = "https://devuan.org"
  68. const artix = "https://artixlinux.org/"
  69.  
  70. // YouTube | Invidious
  71. if(window.location.host.indexOf("youtube.com") != -1){
  72. window.location.replace(invidious + window.location.pathname + window.location.search)
  73. }
  74.  
  75. // Google | Searx
  76. if(window.location.host.indexOf("google.com") != -1){
  77. window.location.replace(searx + window.location.pathname + window.location.search)
  78. }
  79.  
  80. // Reddit | Libreddit
  81. if(window.location.host.indexOf("reddit.com") != -1){
  82. window.location.replace(libreddit + window.location.pathname + window.location.search)
  83. }
  84.  
  85. // Office | HedgeDoc
  86. if(window.location.host.indexOf("office.com") != 1){
  87. window.location.replace(hedgedoc)
  88. }
  89.  
  90. // Twitter | Nitter
  91. if(window.location.host.indexOf("twitter.com") != -1){
  92. window.location.replace(nitter + window.location.pathname + window.location.search)
  93. }
  94.  
  95. // Instagram | Bibliogram
  96. if(window.location.host.indexOf("instagram.com") != -1){
  97. window.location.replace(bibliogram + window.location.pathname + window.location.search)
  98. }
  99.  
  100. // Facebook | Mastodon
  101. if(window.location.host.indexOf("facebook.com") != 1){
  102. window.location.replace(mastodon)
  103. }
  104.  
  105. // Live | Proton Mail
  106. if(window.location.host.indexOf("live.com") != 1){
  107. window.location.replace(protonmail)
  108. }
  109.  
  110. // Mail | Tatunota
  111. if(window.location.host.indexOf("mail.ru") != 1){
  112. window.location.replace(tatunotamail)
  113. }
  114.  
  115. // Wikipedia | Wikiless
  116. if(window.location.host.indexOf("wikipedia.org") != -1){
  117. window.location.replace(wikiless + window.location.pathname + window.location.search)
  118. }
  119.  
  120. // PasteBin | PrivateBin
  121. if(window.location.host.indexOf("pastebin.com") != 1){
  122. window.location.replace(privatebin)
  123. }
  124.  
  125. // MediaFire | FileBin
  126. if(window.location.host.indexOf("mediafire.com") != 1){
  127. window.location.replace(filebin)
  128. }
  129.  
  130. // Google Translate | Lingva Translate
  131. if(window.location.host.indexOf("translate.google.com") != 1){
  132. window.location.replace(lingvatrns)
  133. }
  134.  
  135. // DeepL Translate | Libre Translate
  136. if(window.location.host.indexOf("www.deepl.com") != 1){
  137. window.location.replace(libretrns)
  138. }
  139.  
  140. // SpeedTest | LibreSpeed
  141. if(window.location.host.indexOf("www.speedtest.net") != 1){
  142. window.location.replace(librepseed)
  143. }
  144.  
  145. // Mega | Crypt
  146. if(window.location.host.indexOf("mega.nz") != 1){
  147. window.location.replace(crypt)
  148. }
  149.  
  150. // Play Market | F-Droid
  151. if(window.location.host.indexOf("play.google.com") != 1){
  152. window.location.replace(fdroid)
  153. }
  154.  
  155. // Zoom | Jisti
  156. if(window.location.host.indexOf("zoom.us") != 1){
  157. window.location.replace(jisti)
  158. }
  159.  
  160. // Microsoft | FSF
  161. if(window.location.host.indexOf("microsoft.com") != 1){
  162. window.location.replace(fsf)
  163. }
  164.  
  165. // Redhat | NOsystemd
  166. if(window.location.host.indexOf("redhat.com") != 1){
  167. window.location.replace(nosystemd)
  168. }
  169.  
  170. // Debian | Devuan
  171. if(window.location.host.indexOf("debian.org") != 1){
  172. window.location.replace(devuan)
  173. }
  174.  
  175. // Arch Linux | Artix Linux
  176. if(window.location.host.indexOf("archlinux.org") != 1){
  177. window.location.replace(artix)
  178. }
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  

QingJ © 2025

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