百度过滤广告

过滤百度搜索结果中包含的广告项

// ==UserScript==
// @name         百度过滤广告
// @namespace    http://cqx1.com/
// @version      1.0
// @description  过滤百度搜索结果中包含的广告项
// @author       cqx1
// @include      /www\.baidu\.com\/((s|baidu)\?|#wd|(index.*)?$)/
// @icon         http://cqx1.com/public/static/img/favicon.ico
// @grant        none
// ==/UserScript==
(function() {
	var clearAD = function(){
        $("#content_left div").each(function(){
	        if($(this).find("span:contains('广告')").length !=0){
	            $(this).hide();
	        }
	        if($(this).find("a:contains('广告')").length !=0){
	            $(this).hide();
	        }
        });
    }
    clearAD();
    setInterval(clearAD,500);
})();