您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
remove X ads
当前为
// ==UserScript== // @name X Ad remover // @name:en X Ad remover // @name:ja X 広告 ブロッカー // @namespace https://x.com/ // @version 2024-03-31 // @description remove X ads // @description:en remove X ads // @description:ja 広告 ブロック // @author ぐらんぴ // @match https://twitter.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com // @grant none // @license MIT // ==/UserScript== window.addEventListener('scroll', ()=>{ var ads = document.querySelectorAll(".css-175oi2r.r-1awozwy.r-18u37iz > div > span"); for(const ad of ads){ if(ad.textContent == "Ad" || ad.textContent.match("プロモーション")){ ad.closest("article").innerHTML = ''; } } });