aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2024-09-14 11:22:58 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2024-09-14 11:22:58 -0500
commitc61c81d5214a943023404a0daf7d48c7b5c72bde (patch)
tree19b97ce914bc3fb4c6e5cb6da8daa0d51e98a9fb /misc
parent09116283ffee3381187ea1df9335f2d1276843b0 (diff)
parent6201a9184893ed9b801dd0f4c178d22c88b3f678 (diff)
downloaduserscripts-c61c81d5214a943023404a0daf7d48c7b5c72bde.tar.xz
userscripts-c61c81d5214a943023404a0daf7d48c7b5c72bde.zip
Merge branch 'master' of localgit:userscripts
Diffstat (limited to 'misc')
-rw-r--r--misc/reddit-redirect-to-old-reddit.js17
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"