Greasy Fork is available in English.
解除普通网页js限制复制,粘贴,右键
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/440859/1023960/%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5js%E9%99%90%E5%88%B6.js
// ==UserScript==
// @name 解除网页js限制
// @namespace zhaocrx
// @version 0.1
// @description 解除普通网页js限制复制,粘贴,右键
// @author 老码
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
// 禁止右键菜单
document.oncontextmenu = function(){ return true; };
// 禁止文字选择
document.onselectstart = function(){ return true; };
// 禁止复制
document.oncopy = function(){ return true; };
// 禁止剪切
document.oncut = function(){ return true; };
// 禁止粘贴
document.onpaste = function(){ return true; };
})();