您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide any tweets or comments mentioning @grok
// ==UserScript== // @name Hide @grok Mentions on Twitter // @namespace http://tampermonkey.net/ // @version 1.0 // @description Hide any tweets or comments mentioning @grok // @author Xenon // @match https://twitter.com/* // @match https://x.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function hideGrokTweets(node) { if (!node) return; const tweets = node.querySelectorAll('article'); tweets.forEach(tweet => { const text = tweet.innerText.toLowerCase(); if (text.includes('@grok')) { tweet.style.display = 'none'; } }); } // Initial scan hideGrokTweets(document.body); // Watch for dynamically loaded tweets const observer = new MutationObserver(mutations => { mutations.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === 1) { hideGrokTweets(node); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })();