您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
网页特定文本屏蔽器 ,被屏蔽的文本会被划上黑线
// ==UserScript== // @name 网页特定文本屏蔽器 // @version 1.0.0 // @description 网页特定文本屏蔽器 ,被屏蔽的文本会被划上黑线 // @author WildXBird // @match https://www.tampermonkey.net/scripts.php // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // @license MIT // @match *://*/* // @namespace http://greasyfork.icu/users/1066035 // ==/UserScript== (function () { 'use strict'; const blockedList = new Set() const operation = () => { //修改这里为你要屏蔽的文本 const blockTexts = ["deepseek"] let walker = document.createTreeWalker( document.body, NodeFilter.SHOW_TEXT, null, false ); let node; while ((node = walker.nextNode())) { if (blockedList.has(node)) { continue } const text = node.textContent.trim().toLowerCase(); for (let target of blockTexts) { if (text.includes(target.toLowerCase())) { blockedList.add(node) console.log("blocked=>", node) const element = node.parentElement element.style.backgroundColor = "black" element.style.color = "black" element.style.pointerEvents = "none" element.style.userSelect = "none" element.style.filter = `brightness(0)` } } } } operation() setInterval(operation, 2500) })();