diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2024-09-11 09:57:00 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2024-09-11 09:57:00 -0500 |
commit | 6201a9184893ed9b801dd0f4c178d22c88b3f678 (patch) | |
tree | b92f4334ff3401e5233dfc1d93deb6107d22d0f0 /misc/reddit-redirect-to-old-reddit.js | |
parent | 6d7afac03b820cc62c7fc136f4ab0e1c49659049 (diff) | |
download | userscripts-6201a9184893ed9b801dd0f4c178d22c88b3f678.tar.xz userscripts-6201a9184893ed9b801dd0f4c178d22c88b3f678.zip |
add redirect to old reddit script
Diffstat (limited to 'misc/reddit-redirect-to-old-reddit.js')
-rw-r--r-- | misc/reddit-redirect-to-old-reddit.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/reddit-redirect-to-old-reddit.js b/misc/reddit-redirect-to-old-reddit.js new file mode 100644 index 0000000..0b45467 --- /dev/null +++ b/misc/reddit-redirect-to-old-reddit.js @@ -0,0 +1,17 @@ +// ==UserScript== +// @name Redirect to old.reddit.com +// @namespace Violentmonkey Scripts +// @match http*://*.reddit.com/* +// @exclude /^https?://[a-z]{2}\.reddit\.com/* +// @exclude *out.reddit.com/* +// @exclude *://*.reddit.com/gallery/* +// @exclude *://*.reddit.com/media* +// @run-at document-start +// @grant none +// @version 1.0 +// @author tjkeller.xyz +// @description 9/11/2024, 9:40:39 AM +// ==/UserScript== + +if (!location.hostname.startsWith("old")) + location.hostname = "old.reddit.com" |