您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除贴吧掺夹在【帖子列表】【回复列表】里的广告
当前为
// ==UserScript== // @name 去除贴吧列表里面的广告 // @author burningall // @description 去除贴吧掺夹在【帖子列表】【回复列表】里的广告 // @version 2015.5.21-1.3 // @include http://tieba.baidu.com/* // @supportURL http://www.burningall.com // @contributionURL [email protected]|alipay.com // @namespace https://greasyfork.org/zh-CN/users/3400-axetroy // ==/UserScript== (function() { function $(id) { return document.getElementById(id); }; console.log("去广告日志:"); if ($('thread_list')) { adlist = $('thread_list').children; console.log("进入XXX吧首页"); } else if ($('j_p_postlist')) { adlist = $('j_p_postlist').children console.log("进入XXX帖子内"); } else { adlist = null; console.log("noAds"); }; if (adlist != null) { for (var i = 0; i < adlist.length; i++) { if (adlist[i].getAttribute("data-daid")) { console.log(adlist[i]); adlist[i].style.cssText = "display: none !important;"; adlist[i].parentNode.removeChild(adlist[i]); console.log("广告已去除"); }; }; }; })()