Greasy Fork is available in English.
贴吧广告过滤不用登录
当前为
// ==UserScript==
// @name 贴吧广告过滤登录去除
// @namespace http://your.homepage/
// @version 0.4
// @description 贴吧广告过滤不用登录
// @author You
// @match https://*/*
// @grant none
// ==/UserScript==
(function() {
debugger;
var matching = "tieba.baidu.com";
var host = window.location.host;
if (host.indexOf(matching) == -1) return;
var clearLogin = function () {
var login = document.getElementById("tiebaCustomPassLogin");
if (login == null) return;
login.remove();
}
var clearAdvertisement = function () {
var classAdv = document.getElementsByClassName('fengchao-wrap-feed');
if (classAdv.length <= 0) return;
for (var i = 0; i < classAdv.length; i++) {
classAdv[i].remove();
}
}
setInterval(function(){
clearLogin();
clearAdvertisement();
}, 3000);
})();