Greasy Fork is available in English.

bing搜索去广告

bing搜索去广告,优化bing搜索

// ==UserScript==
// @name         bing搜索去广告
// @namespace    gstsgy
// @version      0.0.3
// @description  bing搜索去广告,优化bing搜索
// @author       You
// @match        https://*.bing.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
        setTimeout(()=>{
     console.log(111)
        let ads = document.querySelectorAll(".sb_adTA")
        for(let ad of ads){
            ad.remove()
        }
        ads = document.querySelectorAll(".b_ad")
        for(let ad of ads){
            ad.remove()
        }
        ads = document.querySelectorAll(".sb_add")
        for(let ad of ads){
            ad.parentNode.remove()
        }
    },500);
})();