您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
1/22/2025, 10:37:06 PM
// ==UserScript== // @name Reddit un-cancel X // @namespace Violentmonkey Scripts // @match https://www.reddit.com/* // @grant none // @version 1.0.1 // @author - // @description 1/22/2025, 10:37:06 PM // @run-at document-end // @license MIT // ==/UserScript== // let cancelUrls = ['xcancel.com', 'nitter.com']; for(let url of cancelUrls) { let links = document.querySelectorAll(`a[href*='https://${url}']`); for(let link of links) { let originalhref = link.href; let newhref = originalhref.replace(`https://${url}`,"https://x.com"); link.href = newhref; console.info(`Replaced ${originalhref} with ${newhref}`); } }