Created
March 9, 2024 22:01
-
-
Save LukeberryPi/9fd1ce508f5f2edf962ff73afc643a5f to your computer and use it in GitHub Desktop.
enable copy and past on any website
This file contains 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
javascript:(function(){ | |
allowCopyAndPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('copy', allowCopyAndPaste, true); | |
document.addEventListener('paste', allowCopyAndPaste, true); | |
document.addEventListener('onpaste', allowCopyAndPaste, true); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment