Last active
November 19, 2025 19:52
-
-
Save TitusRobyK/7777cea96cc72620112282f7403d0842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Copy paste this gist in to your browser Console. | |
| (function() { | |
| const style = document.createElement('style'); | |
| style.innerHTML = ` | |
| *, *::before, *::after { | |
| -webkit-user-select: text !important; | |
| -moz-user-select: text !important; | |
| -ms-user-select: text !important; | |
| user-select: text !important; | |
| } | |
| `; | |
| document.head.appendChild(style); | |
| const events = ['copy', 'cut', 'paste', 'selectstart', 'contextmenu', 'mousedown', 'mouseup']; | |
| events.forEach(event => { | |
| window.addEventListener(event, function(e) { | |
| e.stopPropagation(); | |
| }, true); | |
| }); | |
| console.log("Copy/Paste restrictions removed."); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment