Skip to content

Instantly share code, notes, and snippets.

@enghqii
Last active May 25, 2018 06:02
Show Gist options
  • Save enghqii/f6cc5904f747defacab34688de708b1e to your computer and use it in GitHub Desktop.
Save enghqii/f6cc5904f747defacab34688de708b1e to your computer and use it in GitHub Desktop.
Redirect Reddit (grease monkey script)
// ==UserScript==
// @name Redirect Reddit
// @version 1
// @grant none
// @include http://www.reddit.com/*
// @include https://www.reddit.com/*
// ==/UserScript==
console.log("redirecting");
let url = window.location.href;
url = url.replace("www.reddit", "old.reddit");
console.log(url);
window.location.replace(url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment