您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically redirects www.reddit.com links to reditr.com
// ==UserScript== // @name Reddit to Reditr Redirector // @namespace https://violentmonkey.github.io/ // @version 0.1 // @description Automatically redirects www.reddit.com links to reditr.com // @author Luvcie // @match *://www.reddit.com/* // @run-at document-start // @license MIT // ==/UserScript== (function() { 'use strict'; const currentUrl = window.location.href; if (window.location.hostname === 'www.reddit.com') { const newUrl = currentUrl.replace('://www.reddit.com/', '://reditr.com/'); window.location.replace(newUrl); } })();