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