您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Checks to see if you are looking at the new design, sends you to the old design if you are.
// ==UserScript== // @name Better old.reddit.com redirect. // @namespace https://www.reddit.com/ // @version 1.0 // @description Checks to see if you are looking at the new design, sends you to the old design if you are. // @author clambake 42 // @match https://www.reddit.com/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; var getLocation = function(href) { var l = document.createElement("a"); l.href = href; return l; }; var windowLocation = window.location.href; var parsedLocation = getLocation(windowLocation); var betterLocation = "https://old.reddit.com"+parsedLocation.pathname; window.location.replace(betterLocation); })();