Greasy Fork is available in English.
根除 *所有* 搜索框!
当前为
// ==UserScript==
// @name:en No Search Boxes
// @name 禁用搜索框
// @namespace http://tampermonkey.net/
// @version 0.2
// @description:en Eradicate *ALL* search boxes!
// @description 根除 *所有* 搜索框!
// @author PRO
// @match *://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @run-at document-start
// @license gpl-3.0
// ==/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.`);
});
})();