您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript== // @name 百度搜索去除n+ // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author MT-戒酒的李白染 // @match https://www.baidu.com/from=*/s?word=* // @grant GM_addStyle // @run-at document-start // @require http://cdn.staticfile.org/jquery/2.1.4/jquery.min.js // ==/UserScript== (function() { 'use strict'; function main_start(){ var tpl_len = $(".c-result.result").length; try{ for(var i=0;i<tpl_len;i++){ var tpl_text = $(".c-result.result")[i].attributes.tpl.textContent; if(tpl_text=="recommend_list"){ $(".c-result.result")[i].remove(); } } }catch(err){} //try{$(".c-container.na-ec-item")[0].remove()}catch(err){} //try{$(".c-recomm-wrap.new-ux-recom-wrapper.animation")[0].remove()}catch(err){} } GM_addStyle(".c-container.na-ec-item,.c-recomm-wrap.new-ux-recom-wrapper.animation{display:none}") $(function(){main_start();}) })();