Last active
August 15, 2016 07:45
-
-
Save zhwei/3c4c595f072d049d416d5b26f5e044f9 to your computer and use it in GitHub Desktop.
Baidu Ad Cleaner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Baidu Ad Cleaner | |
// @version 0.2 | |
// @description Baidu Result Set Ad Cleaner | |
// @author zhwei | |
// @match ://www.baidu.com/* | |
// @updateURL https://gist.github.com/zhwei/3c4c595f072d049d416d5b26f5e044f9/raw/4aadcb34dc44c3abb786b89bf535a3fa96355ac7/BaiduAdCleaner.js | |
// @downloadURL https://gist.github.com/zhwei/3c4c595f072d049d416d5b26f5e044f9/raw/4aadcb34dc44c3abb786b89bf535a3fa96355ac7/BaiduAdCleaner.js | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$(document).ready(function () { | |
setInterval(function () { | |
$('a[href^="http://e.baidu.com"]').parent().fadeOut('fast'); | |
$('a:contains("推广链接")').parent().fadeOut('fast'); | |
$('div#content_left > :not(.result-op):contains(商业推广)').remove(); | |
}, 100); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment