var allowEvent = function(e) {
e.stopImmediatePropagation();
return true;
};
document.addEventListener('paste', allowEvent, true);
document.addEventListener('copy', allowEvent, true);
Created
November 28, 2020 17:48
-
-
Save swinton/c6c8ef9a53be1e7efc4746a6a0cb6693 to your computer and use it in GitHub Desktop.
How to Enable Pasting Text on Sites That Block It
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment