Created
December 20, 2018 20:40
-
-
Save PotcFdk/4c4d75bf843e119147aebfdfa4cb4fa4 to your computer and use it in GitHub Desktop.
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 BackToOldReddit | |
// @namespace https://gist.github.com/PotcFdk | |
// @match *://www.reddit.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
var currentURL = window.document.location.toString(); | |
if(currentURL.includes("//www")) { | |
var newURL = currentURL.replace("//www","//old"); | |
window.document.location.replace(newURL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment