您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects you to new.reddit.com, avoiding the new beta UI.
当前为
// ==UserScript== // @name Reddit De-tiktokified // @version 0.0.2 // @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/* // @exclude *://www.reddit.com/media* // @run-at document-body // ==/UserScript== (() => { 'use strict'; if (location.pathname.indexOf('new.') === -1) { var newURL = location.protocol; newURL += "//new.reddit.com"; newURL += location.pathname; newURL += location.search; newURL += location.hash; document.open(); document.close(); document.body.style.transition = 'background-color 470ms ease-in-out'; setTimeout(() => { document.body.style.backgroundColor = 'black'; document.body.addEventListener('transitionend', () => { document.body.style.backgroundColor = 'white'; setTimeout(location = newURL, 221); }, { once: true }); }, 250); } })();