Skip to content

Instantly share code, notes, and snippets.

@chowder
Created September 2, 2022 17:25
Show Gist options
  • Save chowder/7dd7895c8e65daa21e678c4fdec59108 to your computer and use it in GitHub Desktop.
Save chowder/7dd7895c8e65daa21e678c4fdec59108 to your computer and use it in GitHub Desktop.
Privacy Alternatives
// ==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