网页解除限制 解除右键禁用 进阶版

解除右键禁用
解除选取和复制禁用
开启/关闭整个页面的编辑功能
快速一键开启所有功能
自由开关这个小工具面板

使用方法:添加为书签即可:

javascript:(function(){if(document.getElementById('unlockerMenu')){document.getElementById('unlockerMenu').remove();return}const e=document.createElement('style');e.innerHTML='#unlockerMenu{position:fixed;top:20px;right:20px;background:rgba(0,0,0,0.8);color:white;padding:15px;border-radius:12px;z-index:999999;font-family:Arial,sans-serif;text-align:center;box-shadow:0%200%2010px%20rgba(0,0,0,0.5)}#unlockerMenu%20button{display:block;margin:10px%200;width:160px;padding:8px;border:none;border-radius:8px;background:#4CAF50;color:white;font-size:14px;cursor:pointer}#unlockerMenu%20button:hover{background:#45a049}#unlockerMenu%20.close-btn{background:#f44336}#unlockerMenu%20.close-btn:hover{background:#e53935}',document.head.appendChild(e);const%20t=document.createElement('div');t.id='unlockerMenu',t.innerHTML='%3Cdiv%3E%3Cstrong%3E%F0%9F%94%93%20%E8%A7%A3%E9%99%A4%E5%B7%A5%E5%85%B7%E9%81%B8%E5%96%AE%3C/strong%3E%3C/div%3E%3Cbutton%20id=%22unlock-basic%22%3E%E8%A7%A3%E9%99%A4%E9%98%B2%E5%8F%B3%E9%8D%B5/%E8%A4%87%E8%A3%BD%3C/button%3E%3Cbutton%20id=%22toggle-edit%22%3E%E5%88%87%E6%8F%9B%E5%8F%AF%E7%B7%A8%E8%BC%AF%E6%A8%A1%E5%BC%8F%3C/button%3E%3Cbutton%20id=%22unlock-all%22%3E%E5%85%A8%E9%83%A8%E8%A7%A3%E9%99%A4%3C/button%3E%3Cbutton%20class=%22close-btn%22%20id=%22unlock-close%22%3E%E9%97%9C%E9%96%89%E9%81%B8%E5%96%AE%3C/button%3E',document.body.appendChild(t);const%20o=()=%3E{document.querySelectorAll('*').forEach(e=%3E{e.oncontextmenu=null,e.onselectstart=null,e.oncopy=null,e.addEventListener('copy',e=%3E{e.stopImmediatePropagation();const%20t=window.getSelection(),o=t?t.toString():%22%22;e.clipboardData&&(e.clipboardData.setData('text/plain',o),e.preventDefault())},!0)});const%20e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t){['copy','contextmenu','selectstart'].includes(t.toLowerCase())||e.apply(this,arguments)},alert('%E2%9C%85%20%E5%B7%B2%E8%A7%A3%E9%99%A4%E9%98%B2%E5%8F%B3%E9%8D%B5%E3%80%81%E9%98%B2%E9%81%B8%E5%8F%96%E3%80%81%E9%98%B2%E8%A4%87%E8%A3%BD%EF%BC%81')},n=()=%3E{const%20e='true'===document.body.contentEditable;document.body.contentEditable=e?'false':'true',alert('%E2%9C%8F%EF%B8%8F%20%E5%8F%AF%E7%B7%A8%E8%BC%AF%E6%A8%A1%E5%BC%8F%EF%BC%9A'+(e?'%E5%B7%B2%E9%97%9C%E9%96%89':'%E5%B7%B2%E9%96%8B%E5%95%9F'))};document.getElementById('unlock-basic').onclick=()=%3E{o()},document.getElementById('toggle-edit').onclick=()=%3E{n()},document.getElementById('unlock-all').onclick=()=%3E{o(),n(),alert('%E2%9C%A8%20%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%95%9F%E7%94%A8%EF%BC%81%E5%8F%AF%E4%BB%A5%E8%87%AA%E7%94%B1%E6%93%8D%E4%BD%9C%EF%BC%81')},document.getElementById('unlock-close').onclick=()=%3E{t.remove(),e.remove()}})();

By 行政