aboutsummaryrefslogtreecommitdiff
path: root/misc/reddit-redirect-to-old-reddit.js
blob: 3f645dc18e122b5e7ba738e3d7c30e25c0d98988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"