您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除必应搜索的前几条广告
// ==UserScript== // @name 必应去广告 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 去除必应搜索的前几条广告 // @author Liang // @match *.bing.com/search?q=* // @include *.bing.com/search?q=* // @icon https://cn.bing.com/favicon.ico // @grant none // @license MIT // ==/UserScript== (function() { var a = 1; for(var i = 1;i <= 10; i += 1){ setTimeout(()=>{ removeAd(a++); }, i*1000); } function removeAd(a){ var ad = document.querySelector(".b_ad"); var ad2 = document.querySelectorAll('#b_results li>h2'); ad.style.display = 'none'; ad2[0].parentElement.style.display = 'none'; ad2[1].parentElement.style.display = 'none'; } })();