Created
January 11, 2021 09:56
-
-
Save OlliV/4d3668fd4afe92788c98e72018f7cb46 to your computer and use it in GitHub Desktop.
Allow pasting in Chromium when a site blocks 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