您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
enter something useful
当前为
// ==UserScript== // @name 百度去搜索推广 // @namespace http://your.homepage/ // @version 0.2 // @description enter something useful // @author You // @match http://*/* // @include *baidu.com/* // @grant none // ==/UserScript== (function() { function $(id) { return document.getElementById(id); }; function addEvent(obj, event, fn) { return obj.addEventListener ? obj.addEventListener(event, fn, false) : obj.attachEventListener('on' + event, fn); }; function remove(){ adlist = $('content_left').children; for (var i=0;i<adlist.length;i++) { if(adlist[i].getAttribute("id")>1000){ adlist[i].style.cssText="display: none !important;" }; if(adlist[i].getAttribute("id")==null){ adlist[i].style.cssText="display: none !important;" }; }; }; remove() addEvent($("su"),'click',function(){ remove() }) })()