Created
September 2, 2022 17:25
-
-
Save chowder/7dd7895c8e65daa21e678c4fdec59108 to your computer and use it in GitHub Desktop.
Privacy Alternatives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name redirector | |
// @namespace Violentmonkey Scripts | |
// @match *://medium.com/* | |
// @match *://reddit.com/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 7/30/2022, 5:34:35 PM | |
// ==/UserScript== | |
let hostname = window.location.hostname; | |
let path = window.location.pathname; | |
let query = window.location.search | |
let redirects = { | |
'reddit.com': 'teddit.sethforprivacy.com', | |
'medium.com': 'scribe.rip', | |
}; | |
let redirect = redirects[hostname]; | |
if (redirect) window.location = `https://${redirect}${path}${query}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment