Created
February 19, 2018 20:07
-
-
Save solancer/198b6f19bd7d338062d6c6a8e55abeb8 to your computer and use it in GitHub Desktop.
Javascript console code to enable pasting text on sites that 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