From a5d54dea2f80030581eeb14aa715a8c2cf04073a Mon Sep 17 00:00:00 2001 From: Cat73 <1901803382@qq.com> Date: Sun, 29 Nov 2015 22:46:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=A4=E4=B8=AAevent;=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9B=B4=E5=A4=9A=E8=AF=AD=E8=A8=80=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E4=B8=8E=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- remove_web_limits.user.js | 60 +++++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/remove_web_limits.user.js b/remove_web_limits.user.js index 1a21a51..893e2ea 100644 --- a/remove_web_limits.user.js +++ b/remove_web_limits.user.js @@ -1,36 +1,42 @@ // ==UserScript== -// @namespace https://www.github.com/Cat7373/ - -// @name 网页限制解除 -// @name:en Remove web limits -// @name:zh 网页限制解除 - -// @description 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。 -// @description:en Pass to kill most of the site, you can lift the restrictions prohibited to copy, cut, select the text, right-click menu. -// @description:zh 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。 - -// @homepageURL https://cat7373.github.io/remove-web-limits/ -// @supportURL https://github.com/Cat7373/remove-web-limits/issues/ -// @updateURL https://cat7373.github.io/remove-web-limits/remove_web_limits.user.js - -// @author Cat73 -// @version 1.2.1 -// @license LGPLv3 - -// @compatible chrome Chrome_46.0.2490.86 + TamperMonkey + 脚本_1.2.1 测试通过 -// @compatible firefox Firefox_42.0 + GreaseMonkey + 脚本_1.2.1 测试通过 -// @compatible opera Opera_33.0.1990.115 + TamperMonkey + 脚本_1.1.3 测试通过 -// @compatible safari 未测试 - -// @match *://*/* -// @grant none -// @run-at document-start +// @namespace https://www.github.com/Cat7373/ + +// @name 网页限制解除 +// @name:en Remove web limits +// @name:zh 网页限制解除 +// @name:zh-CN 网页限制解除 +// @name:zh-TW 網頁限制解除 +// @name:ja ウェブの規制緩和 + +// @description 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。 +// @description:en Pass to kill most of the site, you can lift the restrictions prohibited to copy, cut, select the text, right-click menu. +// @description:zh 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。 +// @description:zh-CN 通杀大部分网站,可以解除禁止复制、剪切、选择文本、右键菜单的限制。 +// @description:zh-TW 通殺大部分網站,可以解除禁止復制、剪切、選擇文本、右鍵菜單的限制。 +// @description:ja サイトのほとんどを殺すために渡し、あなたは、コピー切り取り、テキスト、右クリックメニューを選択することは禁止の制限を解除することができます。 + +// @homepageURL https://cat7373.github.io/remove-web-limits/ +// @supportURL https://github.com/Cat7373/remove-web-limits/issues/ +// @updateURL https://cat7373.github.io/remove-web-limits/remove_web_limits.user.js + +// @author Cat73 +// @version 1.2.2 +// @license LGPLv3 + +// @compatible chrome Chrome_46.0.2490.86 + TamperMonkey + 脚本_1.2.2 测试通过 +// @compatible firefox Firefox_42.0 + GreaseMonkey + 脚本_1.2.1 测试通过 +// @compatible opera Opera_33.0.1990.115 + TamperMonkey + 脚本_1.1.3 测试通过 +// @compatible safari 未测试 + +// @match *://*/* +// @grant none +// @run-at document-start // ==/UserScript== // 要处理的event var hook_eventNames = "contextmenu|select|selectstart|copy|cut|dragstart".split("|"); -var unhook_eventNames = "mousedown|keydown".split("|"); +var unhook_eventNames = "mousedown|mouseup|keydown|keyup".split("|"); var eventNames = hook_eventNames.concat(unhook_eventNames); var eventNames_on = []; // 储存名称