解除网页复制粘贴右键限制

解除普通网页js限制复制,粘贴,右键

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/440859/1024177/%E8%A7%A3%E9%99%A4%E7%BD%91%E9%A1%B5%E5%A4%8D%E5%88%B6%E7%B2%98%E8%B4%B4%E5%8F%B3%E9%94%AE%E9%99%90%E5%88%B6.js

// ==UserScript==
// @name         解除网页复制粘贴右键限制
// @namespace    zhaocrx
// @version      1.0
// @description  解除普通网页js限制复制,粘贴,右键
// @author       老码
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

   function done(){
 // 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; };
}done();
})();