Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

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

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