Last active
December 24, 2023 10:55
-
-
Save Gkjsdll/9c93042b0e9b7a5217e1a4c87535aab2 to your computer and use it in GitHub Desktop.
Automatically reditrect www.reddit.com to old.reddit.com
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 No New Reddit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description Reditrect www.reddit.com to old.reddit.com | |
// @author Gkjsdll (zackwinchell@gmail.com) | |
// @match *://www.reddit.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
location.replace(location.href.replace("www.reddit.com", "old.reddit.com")); | |
})(); |
Can you edit this to check if the link is already old.reddit.com? If I open reddit with the old design, the script will still run and cause the page to refresh again.
Can you edit this to check if the link is already old.reddit.com? If I open reddit with the old design, the script will still run and cause the page to refresh again.
I've not seen this behavior. What extension are you using to manage userscripts?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!