Created
November 17, 2021 23:16
-
-
Save Andrewpk/0d4d7debd10715c47c9844e1a2a64b71 to your computer and use it in GitHub Desktop.
Allow paste in Chrome/Safari when websites decide to block it.
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
var allowPaste = function(e) { | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment