您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
話題を検索タブで表示される「Grokによる要約」を削除します
// ==UserScript== // @name 検索結果からGrokの要約を消す // @namespace https://armedpatriot.blog.fc2.com/ // @version 2025-01-23 // @description 話題を検索タブで表示される「Grokによる要約」を削除します // @author Patriot // @match https://x.com/search* // @icon https://www.google.com/s2/favicons?sz=64&domain=x.com // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; const observer = new MutationObserver((mutationList, observer) =>{ mutationList.forEach((mutation)=>{ if (mutation.type === 'childList'){ const descriptionText = "Grokによる要約"; let descriptionElement; Array.from(document.getElementsByTagName("span")).forEach( e => { if(e.textContent === descriptionText){ descriptionElement = e; } } ); if(descriptionElement === undefined){ return; } const containerElement = descriptionElement?.parentElement?.parentElement?.parentElement?.parentElement; if(containerElement === undefined){ console.log(`cannot find containerElement: descriptionElement=${descriptionElement}`); return; } containerElement.remove(); console.log("removed Grok summary"); } }); }); observer.observe( document.body, { attributes: false, childList: true, subtree: true } ); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址