您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
清理ADB与ADP未能清理掉的贴吧列表伪装广告、帖内伪装广告与推荐应用广告
当前为
// ==UserScript== // @name 贴吧广告清理 // @namespace hoothin // @version 0.1 // @description 清理ADB与ADP未能清理掉的贴吧列表伪装广告、帖内伪装广告与推荐应用广告 // @author hoothin // @match http*://tieba.baidu.com/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; var tcss="div.l_post.l_post_bright.j_l_post.clearfix{display: none !important;} .j_encourage_entry{display: none !important;} .encourage_entry{display: none !important;}"; var snod=document.createElement('style'); snod.innerHTML=tcss; document.getElementsByTagName("head")[0].appendChild(snod); var content=document.querySelector("#content"); if(content){ var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; var observer = new MutationObserver(function(records){ delAD(); }); var option = { 'childList': true, 'subtree': true }; observer.observe(content, option); } function delAD(){ var threadList=document.querySelector("#thread_list"); if(!threadList)return; var delList=[]; for(let thread of threadList.childNodes ){ if(thread.tagName == "STYLE"){ delList.push(thread); } } for(let del of delList){ var previousSibling=del.previousSibling; previousSibling=previousSibling.tagName=="LI"?previousSibling:previousSibling.previousSibling; threadList.removeChild(previousSibling); threadList.removeChild(del); } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址