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
December 11, 2024 08:19
-
-
Save Gustavo-Kuze/32959786ce55b2c3751629e40c75c935 to your computer and use it in GitHub Desktop.
Enable copy and paste in a webpage from the browser console
Does not work in some bank websites
Thanks.
Awesome! Thank you!
Thanks.
Thanks.
Thanks
Thanks
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I finally got a chance to test this with one of the W.W. Norton books, it doesn't seem to work.n When you highlight something it has a popup dialog that tries to hijack your clipboard.