您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect to old Reddit except /gallery, /media, /poll paths. Fixes the "nice hat" bug where clicking image links opens an unrelated "nice hat" post on old Reddit.
// ==UserScript== // @name Old Reddit Redirect (Nice Hat Fix) // @namespace https://greasyfork.org/en/users/1500856-titouan // @description Redirect to old Reddit except /gallery, /media, /poll paths. Fixes the "nice hat" bug where clicking image links opens an unrelated "nice hat" post on old Reddit. // @include *://www.reddit.com/* // @version 1.0 // @run-at document-start // @author Titouan // @license MIT // @grant none // @icon https://www.redditstatic.com/desktop2x/img/favicon/apple-icon-76x76.png // ==/UserScript== (() => { const exclude = ['/gallery', '/media', '/poll']; const path = location.pathname.toLowerCase(); if (!exclude.some(p => path.startsWith(p))) { location.replace(`https://old.reddit.com${location.pathname}${location.search}${location.hash}`); } })();