Skip to content

Commit c5fdce9

Browse files
committed
fix
1 parent 3ac6147 commit c5fdce9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Kill Baidu AD/Kill Baidu AD.user.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name Kill Baidu AD
33
// @name:zh-CN 百度广告(首尾推广及右侧广告)清理
44
// @namespace hoothin
5-
// @version 0.85
5+
// @version 0.86
66
// @description Just Kill Baidu AD
77
// @description:zh-CN 彻底清理百度搜索(www.baidu.com)结果首尾的推广广告、二次顽固广告与右侧广告,并防止反复
88
// @author hoothin
@@ -29,7 +29,11 @@
2929
'childList': true,
3030
'subtree': true
3131
};
32-
observer.observe(document.body, option);
32+
document.onreadystatechange = function(){
33+
if(document.readyState == "interactive"){
34+
observer.observe(document.body, option);
35+
}
36+
};
3337

3438
function clearAD(){
3539
var mAds=document.querySelectorAll(".ec_wise_ad,.ec_youxuan_card"),i;

0 commit comments

Comments
 (0)