Skip to content

Commit 35a1f89

Browse files
committed
fix
1 parent 1cc6d8e commit 35a1f89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Kill Baidu AD/Kill Baidu AD.user.js

Lines changed: 2 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.8
5+
// @version 0.81
66
// @description Just Kill Baidu AD
77
// @description:zh-CN 彻底清理百度搜索(www.baidu.com)结果首尾的推广广告、二次顽固广告与右侧广告,并防止反复
88
// @author hoothin
@@ -49,7 +49,7 @@
4949
item.remove();
5050
}
5151
[].every.call(item.querySelectorAll("a>span"),function(span){
52-
if(span && span.innerHTML=="广告" && span.getAttribute("data-tuiguang")){
52+
if(span && (span.innerHTML=="广告" || span.getAttribute("data-tuiguang"))){
5353
item.remove();
5454
return false;
5555
}

0 commit comments

Comments
 (0)