// ==UserScript== // @name:en No Search Boxes // @name 禁用搜索框 // @namespace http://tampermonkey.net/ // @version 0.3 // @description:en Eradicate *ALL* search boxes! // @description 根除 *所有* 搜索框! // @author PRO // @match https://www.google.com/* // @match https://www.baidu.com/* // @match https://cn.bing.com/* // @match https://www.bing.com/* // @match https://bing.com/* // @match http://www.360doc.com/* // @match https://blog.csdn.net/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @run-at document-start // @license gpl-3.0 // @downloadURL none // ==/UserScript== (function() { 'use strict'; let oldadd = EventTarget.prototype.addEventListener; ["selectionchange", "mouseup"].forEach((type) => { document.addEventListener(type, (e) => { e.stopImmediatePropagation(); }, {capture: true}); console.log(`[No Search Boxes] Blocked "${type}" listeners.`); }); })();