更新 'baidu/clearAd.user.js'
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
// ==UserScript==
 | 
			
		||||
// @name         百度广告去除
 | 
			
		||||
// @namespace    http://ide.yumc.pw/
 | 
			
		||||
// @version      0.0.1
 | 
			
		||||
// @version      0.0.2
 | 
			
		||||
// @description  去除百度上下推广广告
 | 
			
		||||
// @author       MiaoWoo
 | 
			
		||||
// @include      http*://*.baidu.*
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
// ==/UserScript==
 | 
			
		||||
 | 
			
		||||
(function() {
 | 
			
		||||
    'use strict';
 | 
			
		||||
  'use strict';
 | 
			
		||||
  function clear(){
 | 
			
		||||
    var content = document.getElementById('content_left')
 | 
			
		||||
    var result = content.childNodes;
 | 
			
		||||
    for (var i = 0; i<result.length;i++){
 | 
			
		||||
@@ -19,4 +20,6 @@
 | 
			
		||||
        content.removeChild(c)
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  setTimeout(clear, 300)
 | 
			
		||||
})();
 | 
			
		||||
		Reference in New Issue
	
	Block a user