您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Completely hide all replies, including self-replies and threads, on X.com
当前为
// ==UserScript== // @name Hide All Replies and Threads on X.com // @namespace http://tampermonkey.net/ // @version 1.8 // @description Completely hide all replies, including self-replies and threads, on X.com // @author // @match https://x.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const tweetSelector = '[data-testid="cellInnerDiv"]'; const replySelector = '[aria-label^="Replying to"]'; // Targets replies, self-replies, and threads function hideRepliesAndThreads() { const tweets = document.querySelectorAll(tweetSelector); tweets.forEach((tweet) => { const isReply = tweet.querySelector(replySelector); if (isReply) { tweet.style.display = 'none'; console.debug('Hid a reply, self-reply, or thread.'); } }); } // Observes DOM changes and applies the hiding function dynamically const observer = new MutationObserver(hideRepliesAndThreads); observer.observe(document.body, { childList: true, subtree: true }); // Initial run to hide existing replies/threads hideRepliesAndThreads(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址