Skip to content

Commit bf2f356

Browse files
committed
fix
1 parent f047e5d commit bf2f356

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Kill Baidu AD/Kill Baidu AD.user.js

Lines changed: 8 additions & 1 deletion
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.7
5+
// @version 0.8
66
// @description Just Kill Baidu AD
77
// @description:zh-CN 彻底清理百度搜索(www.baidu.com)结果首尾的推广广告、二次顽固广告与右侧广告,并防止反复
88
// @author hoothin
@@ -48,6 +48,13 @@
4848
if(span && span.innerHTML=="广告"){
4949
item.remove();
5050
}
51+
[].every.call(item.querySelectorAll("a>span"),function(span){
52+
if(span && span.innerHTML=="广告" && span.getAttribute("data-tuiguang")){
53+
item.remove();
54+
return false;
55+
}
56+
return true;
57+
});
5158
}
5259
}
5360

0 commit comments

Comments
 (0)