Greasy Fork

来自缓存

Greasy Fork is available in English.

必应搜索广告去除

去除必应所有搜索结果形式的广告。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         必应搜索广告去除
// @version      1.1
// @description  去除必应所有搜索结果形式的广告。
// @author       喝杯82年的Java压压惊
// @match        *://cn.bing.com/search*
// @match        *://www.bing.com/search*
// @grant        none
// @require      http://code.jquery.com/jquery-1.11.1.min.js
// @namespace 
// ==/UserScript==

(function () {
    'use strict';
    $(document).ready(function(){
        $("nav.b_scopebar").append(
            "<td class=\"BingAdRemover_InfoPanel\">\r\n" +
            "    <div style=\"width:240px; height=30px; float:left;\" class=\"BingAdRemover_AdsCount\"></div>\r\n" +
            "    <div style=\"width:240px; height=30px; float:left;\" class=\"ButtonContainer\"><button class=\"BingAdRemover_AboutBtn\" title=\"关于必应搜索广告去除器\">关于必应搜索广告去除器</button></div>\r\n" +
            "</td>"
        );
        var AdsDOMCount = $("li.b_ad").children("ul").children("li").length.toString();
        if(AdsDOMCount == "0")
        {
            $("div.BingAdRemover_AdsCount").append("必应搜索广告去除器未检测到广告。");
        }
        else
        {
            $("div.BingAdRemover_AdsCount").append("必应搜索广告去除器已为您移除大约" + AdsDOMCount + "条搜索广告。");
        }
        $("li.b_ad").remove();
        $("button.BingAdRemover_AboutBtn").click(function()
           {
            alert(
            "【必应搜索广告去除器】\n" +
            "版权所有©2016-2018 喝杯82年的Java压压惊\n" +
            "此脚本仅用于非商业用途。"
            );
        });
    });
})();