您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
使用useCapture拦截阻止事件
当前为
// ==UserScript== // @name 破解禁止复制+禁止右键菜单 // @version 1.0.0 // @description 使用useCapture拦截阻止事件 // @author TAOTAO1919 // @match *://*/* // @icon https://www.google.com/s2/favicons?sz=64&domain=feishu.cn // @grant none // @license MIT // @namespace https://greasyfork.org/users/1495458 // ==/UserScript== (function () { "use strict"; const block = e => e.stopImmediatePropagation(); ['copy', 'cut', 'keydown', 'contextmenu'].forEach(ev => { document.addEventListener(ev, block, true); document.body.addEventListener(ev, block, true); window.addEventListener(ev, block, true); }); })();