Open-Source Alternative Redirector

Redirects you from proprietary web-services to ethical alternatives.

目前為 2022-03-07 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Open-Source Alternative Redirector
  3. // @namespace -
  4. // @version 0.4
  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 *wikipedia.com/*
  13. // @run-at document-start
  14. // @license GPLv3
  15. // @license-link https://www.gnu.org/licenses/gpl-3.0.txt
  16. // @icon https://icons.iconarchive.com/icons/itweek/knob-toolbar/32/Knob-Shuffle-Off-icon.png
  17. // @grant none
  18. // ==/UserScript==
  19.  
  20. /*
  21.  
  22. ﹀ Change Log ﹀
  23.  
  24. 0.4 Version:
  25. - Priority for Google Translate and DeepL redirect
  26.  
  27. 0.3 Version:
  28. - Fixed Live/Proton and Mail/Tatunota includes
  29.  
  30. 0.2 Version:
  31. - Added Email Web-sites
  32. - Added Linux Distributive
  33. - Added Icon
  34.  
  35. */
  36.  
  37. // ALTERNATIVE FRONT-END //
  38. const invidious = "https://yewtu.be"
  39. const searx = "https://searx.org"
  40. const libreddit = "https://reddit.invak.id"
  41. const nitter = "https://nitter.snopyta.org"
  42. const bibliogram = "https://bibliogram.art"
  43. const wikiless = "https://wikiless.org"
  44.  
  45. // YouTube | Invidious
  46. if(window.location.host.indexOf("youtube.com") != -1){
  47. window.location.replace(invidious + window.location.pathname + window.location.search)
  48. }
  49.  
  50. // Google | Searx
  51. if(window.location.host.indexOf("google.com") != -1){
  52. window.location.replace(searx + window.location.pathname + window.location.search)
  53. }
  54.  
  55. // Reddit | Libreddit
  56. if(window.location.host.indexOf("reddit.com") != -1){
  57. window.location.replace(libreddit + window.location.pathname + window.location.search)
  58. }
  59.  
  60. // Twitter | Nitter
  61. if(window.location.host.indexOf("twitter.com") != -1){
  62. window.location.replace(nitter + window.location.pathname + window.location.search)
  63. }
  64.  
  65. // Instagram | Bibliogram
  66. if(window.location.host.indexOf("instagram.com") != -1){
  67. window.location.replace(bibliogram + window.location.pathname + window.location.search)
  68. }
  69.  
  70. // Wikipedia | Wikiless
  71. if(window.location.host.indexOf("wikipedia.org") != -1){
  72. window.location.replace(wikiless + window.location.pathname + window.location.search)
  73. }
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.