您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除贴吧掺夹在【帖子列表】【回复列表】里的广告
当前为
// ==UserScript== // @name 去除贴吧列表里面的广告 // @author burningall // @description 去除贴吧掺夹在【帖子列表】【回复列表】里的广告 // @version 2015.8.1 // @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(document){ var adlist=document.querySelectorAll('[data-daid],#thread_list>li:not([class~=j_thread_list]),#j_p_postlist>div:not([data-field])'); var adlistLength = adlist.length; for(var i=0;i<adlistLength;i++){ if(adlist[i].className=="thread_top_list_folder") continue; adlist[i].style.cssText = "display: none !important;"; adlist[i].parentNode.removeChild(adlist[i]); } var keyword = document.querySelectorAll('a[data-swapword]'); var keywordLength = keyword.length; for(var j=0;j<keywordLength;j++){ keyword[j].removeAttribute('data-swapword'); keyword[j].removeAttribute('class'); keyword[j].style.color = '#333'; } })(document);