更新 'baidu/clearAd.user.js'
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
// ==UserScript==
 | 
					// ==UserScript==
 | 
				
			||||||
// @name         百度广告去除
 | 
					// @name         百度广告去除
 | 
				
			||||||
// @namespace    http://ide.yumc.pw/
 | 
					// @namespace    http://ide.yumc.pw/
 | 
				
			||||||
// @version      0.0.3
 | 
					// @version      0.0.5
 | 
				
			||||||
// @description  去除百度上下推广广告
 | 
					// @description  去除百度上下推广广告
 | 
				
			||||||
// @author       MiaoWoo
 | 
					// @author       MiaoWoo
 | 
				
			||||||
// @include      http*://*.baidu.*
 | 
					// @include      http*://*.baidu.*
 | 
				
			||||||
@@ -52,8 +52,21 @@ margin-bottom:30px;
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					    ['.m', 'a span'].forEach(function (c) {
 | 
				
			||||||
 | 
					      var result = $(c)
 | 
				
			||||||
 | 
					      var tempCount = 0
 | 
				
			||||||
 | 
					      result.each(function (index,element) {
 | 
				
			||||||
 | 
					        if($(element).html() == "广告" && $(element).parent().parent().css('display')!='none'){
 | 
				
			||||||
 | 
					          $(element).parent().parent().remove();
 | 
				
			||||||
 | 
					          tempCount++
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
  setInterval(function () {
 | 
					        if($(element).html() == "评价" && $(element).parent().parent().parent().css('display')!='none'){
 | 
				
			||||||
    clear();
 | 
					          $(element).parent().parent().remove();
 | 
				
			||||||
  },500);
 | 
					          tempCount++
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      showCount(tempCount);
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					  setInterval(clear, 500);
 | 
				
			||||||
})();
 | 
					})();
 | 
				
			||||||
		Reference in New Issue
	
	Block a user