javascript:(function(){
allowCopyAndPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowCopyAndPaste, true);
document.addEventListener('paste', allowCopyAndPaste, true);
document.addEventListener('onpaste', allowCopyAndPaste, true);
})();
Last active
March 14, 2026 19:15
-
Star
(178)
You must be signed in to star a gist -
Fork
(28)
You must be signed in to fork a gist
-
-
Save Gustavo-Kuze/32959786ce55b2c3751629e40c75c935 to your computer and use it in GitHub Desktop.
Enable copy and paste in a webpage from the browser console
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test this: