Skip to content

Instantly share code, notes, and snippets.

@relthyg
Created August 14, 2023 07:36
Show Gist options
  • Save relthyg/e2bc0b2ef698ba42399bfff541543418 to your computer and use it in GitHub Desktop.
Save relthyg/e2bc0b2ef698ba42399bfff541543418 to your computer and use it in GitHub Desktop.
Redirect to old.reddit.com
// ==UserScript==
// @name Good o'l Reddit
// @description Makes sure you're using Good o'l Reddit. (C) TheNH813 2018. License WTFPLV2
// @version 1.0
// @match *://www.reddit.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
if (window.location.href.indexOf("www.reddit.com/media") > -1) {
exit();
}
var oldReddit = window.location.protocol + "//" + "old.reddit.com" + window.location.pathname + window.location.search + window.location.hash;
window.location.replace (oldReddit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment