// ==UserScript== // @name WeiboCleaner // @description 去掉微博广告 // @namespace http://weibo.com/qiangtoutou // @include http://*weibo.com/* // @grant unsafeWindow // @version 2015-12-06 17:04:00 // @downloadURL https://update.greasyfork.icu/scripts/6759/WeiboCleaner.user.js // @updateURL https://update.greasyfork.icu/scripts/6759/WeiboCleaner.meta.js // ==/UserScript== (function(){ var $=function(selector){ if(!(this instanceof $))return new $(selector); var list=document.querySelectorAll(selector); this.data= Array.prototype.slice.call(list); return this; } $.prototype={ each:function(fn){ for(var i=0,len=this.data.length;idiv').each(function(module){ var title=module.querySelector('.main_title a'); if(title){ var title=title.innerHTML; '可能感兴趣的人,电影预售榜'.split(',').forEach(function(t){ if(title.indexOf(t)>-1){ console.log(module,'被移除') module.remove(); } }); } }); },400); })();