更新 'baidu/clearAd.user.js'

This commit is contained in:
502647092 2019-01-08 15:29:03 +08:00
parent de0393ecca
commit 6da550d7ee

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name 百度广告去除 // @name 百度广告去除
// @namespace http://ide.yumc.pw/ // @namespace http://ide.yumc.pw/
// @version 0.0.6 // @version 0.0.7
// @description 去除百度上下推广广告 // @description 去除百度上下推广广告
// @author MiaoWoo // @author MiaoWoo
// @include http*://*.baidu.* // @include http*://*.baidu.*
@ -42,7 +42,7 @@ margin-bottom:30px;
} }
} }
function clear() { function clear() {
tempCount = 0 var tempCount = 0
selectors.forEach(function(selector) { selectors.forEach(function(selector) {
var doms = document.querySelectorAll(selector); var doms = document.querySelectorAll(selector);
if(doms.length){ if(doms.length){