Reddit De-tiktokified

Redirects you to new.reddit.com, avoiding the new beta UI.

目前为 2023-11-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         Reddit De-tiktokified
// @version      0.0.1
// @description  Redirects you to new.reddit.com, avoiding the new beta UI.
// @license      MIT
// @namespace    https://github.com/tadghh
// @author       https://github.com/tadghh
// @source	 https://github.com/tadghh/reddit-redirect
// @match        *://www.reddit.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

    if (!/new\.reddit\.com/.test(location.pathname)) {
        var newURL = location.protocol + "//new.reddit.com" +
            location.pathname +
            location.search +
            location.hash;

        location.replace(newURL);
    }
})();