UserScript: Back To Old Reddit (Simple Redirect)

Here’s a extremely small but working UserScript to redirect you to “old.reddit.com” if the URL you’re currently are visiting includes “www.reddit.com”.
It doesn’t matter if the URL is to a Sub-Reddit, a post on Reddit or a comment.

I’ve only tested it with “ViolentMonkey” but I think it should work with other UserScript plugins too.

// ==UserScript==
// @name Back To Old Reddit
// @description Redirect you from new Reddit to old.Reddit.com
// @namespace https://www.nordicnode.com/
// @version 0.1
// @match *://www.reddit.com/*
// @author https://www.nordicnode.com/
// @grant none
// @copyright 2019, NordicNode - https://www.nordicnode.com/
// @run-at document-start
// ==/UserScript==

var currentURL = window.document.location.toString();
if(currentURL.includes("://www.reddit.com")) {
var newURL = currentURL.replace("://www","://old");
window.document.location.replace(newURL);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.