去除bing搜索广告
新建一个脚本,然后填入如下内容即可
// ==UserScript==
// @name 必应广告去除
// @version 1.1
// @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" +
"</td>"
);
var AdsDOMCount = $("li.b_ad").children("ul").children("li").length.toString();
if(AdsDOMCount == "0")
{
$("div.BingAdRemover_AdsCount").append(" ");
}
else
{
$("div.BingAdRemover_AdsCount").append(" ");
}
$("li.b_ad").remove();
$("button.BingAdRemover_AboutBtn").click(function()
{;
});
});
})();
你说的这个脚本是什么语言的脚本
JavaScript