解除网页限制复制的问题

  • 新建一个网页书签/收藏夹

  • 书签内容:javascript:(function(){function free(el){el.oncontextmenu=el.onselectstart=el.ondragstart=el.oncopy=el.oncut=el.onpaste=null;}free(document);free(document.body);var all=document.getElementsByTagName('');for(var i=0;i<all.length;i++){free(all[i]);}var s=document.createElement('style');s.innerHTML='';document.head.appendChild(s);document.body.style.userSelect='auto';alert('已解除限制,可以右键和复制了');})();

  • 不能复制时 点击一下标签即可

posted @ 2024-03-11 14:10  孙犯困  阅读(211)  评论(0)    收藏  举报