Greasy Fork 支持简体中文。

必应去广告

去除必应搜索的前几条广告

// ==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';
    }
    
})();