Last active
May 25, 2018 06:02
-
-
Save enghqii/f6cc5904f747defacab34688de708b1e to your computer and use it in GitHub Desktop.
Redirect Reddit (grease monkey script)
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 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