Commit 31b7d6cd7b
Unregistered key
Layout: unified · split
user.js +10 −6
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | // ==UserScript== |
| 2 | 2 | // @name Redirect to Privacy-Friendly Frontends |
| 3 | // @version 1.0 | |
| 3 | // @version 1.1 | |
| 4 | 4 | // @description Redirect supported websites to alternative frontend instances |
| 5 | 5 | // @match *://*.reddit.com/* |
| 6 | 6 | // @match *://*.youtube.com/* |
| @@ -9,6 +9,8 @@ | ||
| 9 | 9 | // @match *://*.instagram.com/* |
| 10 | 10 | // @match *://*.wikipedia.org/* |
| 11 | 11 | // @match *://*.medium.com/* |
| 12 | // @match *://*.gelbooru.com/* | |
| 13 | // @match *://*.github.com/* | |
| 12 | 14 | // @run-at document-start |
| 13 | 15 | // @grant none |
| 14 | 16 | // ==/UserScript== |
| @@ -17,13 +19,15 @@ | ||
| 17 | 19 | 'use strict'; |
| 18 | 20 | |
| 19 | 21 | const redirects = { |
| 20 | 'reddit.com': 'redlib.catsarch.com', | |
| 21 | 'youtube.com': 'inv.nadeko.net', | |
| 22 | 'reddit.com': 'reddit.arcicat.eu', | |
| 23 | 'youtube.com': 'invidious.nerdvpn.de', | |
| 22 | 24 | 'imgur.com': 'rimgo.nadeko.net', |
| 23 | 'pinterest.com': 'binternet.privacyredirect.com', | |
| 25 | 'pinterest.com': 'binternet.nadeko.net', | |
| 24 | 26 | 'instagram.com': 'kittygram.nadeko.net', |
| 25 | 'wikipedia.org': 'wikiless.privacyredirect.com', | |
| 26 | 'medium.com': 'scribe.privacyredirect.com' | |
| 27 | 'wikipedia.org': 'wikiless.miningtcup.me', | |
| 28 | 'medium.com': 'scribe.privacyredirect.com', | |
| 29 | 'gelbooru.com': 'gel.nadeko.net' | |
| 30 | 'github.com': 'gothub.libre.tw' | |
| 27 | 31 | }; |
| 28 | 32 | |
| 29 | 33 | const hostname = location.hostname.toLowerCase(); |