您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple script that automatically redirects Reddit links to a more privacy-focused alternative. libreddit.freedit.eu
// ==UserScript== // @name Reddit Redirector // @namespace https://gf.qytechs.cn/ // @version 1.1 // @description A simple script that automatically redirects Reddit links to a more privacy-focused alternative. libreddit.freedit.eu // @author Takomine // @license MIT // @icon https://www.iconpacks.net/icons/2/free-reddit-logo-icon-2436-thumb.png // @match *://*.reddit.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Redirect Reddit links to Teddit function redirectRedditToTeddit() { var currentHost = window.location.hostname; // If current host is "old.reddit.com", or "www.reddit.com", or "reddit.com", then redirect. if (currentHost.match(/^(old|www|)\.?reddit\.com$/)) { var newURL = location.protocol + '//libreddit.freedit.eu' + location.pathname + location.search; if (location.replace) { location.replace(newURL); } else { window.location.href = newURL; } } } // Call the redirect function redirectRedditToTeddit(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址