添加 'baidu/clearAd.user.js'
This commit is contained in:
parent
c255deb7dc
commit
9dbef3e603
22
baidu/clearAd.user.js
Normal file
22
baidu/clearAd.user.js
Normal file
@ -0,0 +1,22 @@
|
||||
// ==UserScript==
|
||||
// @name 百度广告去除
|
||||
// @namespace http://ide.yumc.pw/
|
||||
// @version 0.0.1
|
||||
// @description 去除百度上下推广广告
|
||||
// @author MiaoWoo
|
||||
// @include http*://*.baidu.*
|
||||
// @grant none
|
||||
// @namespace yumc
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
var content = document.getElementById('content_left')
|
||||
var result = content.childNodes;
|
||||
for (var i = 0; i<result.length;i++){
|
||||
var c = result[i]
|
||||
if (c.className != "result c-container "){
|
||||
content.removeChild(c)
|
||||
}
|
||||
}
|
||||
})();
|
Loading…
Reference in New Issue
Block a user