From 6bb49cc16cbf03d4e0980c2343372ff20d0a4b55 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 17 Nov 2024 22:36:53 -0600 Subject: rename all scripts to have .user.js ext --- misc/reddit-redirect-to-old-reddit.user.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 misc/reddit-redirect-to-old-reddit.user.js (limited to 'misc/reddit-redirect-to-old-reddit.user.js') diff --git a/misc/reddit-redirect-to-old-reddit.user.js b/misc/reddit-redirect-to-old-reddit.user.js new file mode 100644 index 0000000..3f645dc --- /dev/null +++ b/misc/reddit-redirect-to-old-reddit.user.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" -- cgit v1.2.3