添加 'baidu/clearAd.user.js'

This commit is contained in:
502647092 2019-01-08 14:33:58 +08:00
parent c255deb7dc
commit 9dbef3e603

22
baidu/clearAd.user.js Normal file
View 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)
}
}
})();