方法:先是按F12打开控制台点击console输入以下代码!!!!
解决网页禁止鼠标右键,无法被选中的
第一种:
javascript:(function() { function R(a){ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()
第二种:
javascript:(function(){var doc=document;var bd=doc.body;bd.onselectstart=bd.oncopy=bd.onpaste=bd.onkeydown=bd.oncontextmenu=bd.onmousemove=bd.onselectstart=bd.ondragstart=doc.onselectstart=doc.oncopy=doc.onpaste=doc.onkeydown=doc.oncontextmenu=null;doc.onselectstart=doc.oncontextmenu=doc.onmousedown=doc.onkeydown=function(){return true};with(document.wrappedJSObject||document){onmouseup=null;onmousedown=null;oncontextmenu=null}var arAllElements=document.getElementsByTagName(\'*\');for(var i=arAllElements.length-1;i>=0;i--){var elmOne=arAllElements;with(elmOne.wrappedJSObject||elmOne){onmouseup=null;onmousedown=null}}alert(unescape(\'%u5DF2%u4E3A%u4F60%u89E3%u9669%u7F51%u9875%u53F3%u952E%u9650%u5236\'));bd.style.webkitUserSelect=\'auto!important\';bd.style.MozUserSelect=\'text!important\';})()
解决网页无法粘贴
document.querySelectorAll(\'[onpaste]\').forEach(i=>i.attributes.onpaste.value=\'\')