您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
百度作为业界毒瘤,其搜索热点大多是低俗内容。该脚本会屏蔽这些内容,彰显格调,品味。
// ==UserScript== // @name 屏蔽百度搜索热点 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 百度作为业界毒瘤,其搜索热点大多是低俗内容。该脚本会屏蔽这些内容,彰显格调,品味。 // @author c4r // @match *://www.baidu.com/s?* // @grant GM_addStyle // @run-at document-start // ==/UserScript== (function() { GM_addStyle(` #content_right { display: none; } `) 'use strict'; (function(open) { XMLHttpRequest.prototype.open = function(method, url, async, user, pass) { this.addEventListener("readystatechange", function() { //console.warn('UI', this.readyState) if(this.readyState == 1){ document.getElementById('content_right').style.display = 'none' } }, false); open.call(this, method, url, async, user, pass); }; })(XMLHttpRequest.prototype.open); })();