Created
November 10, 2020 14:47
-
-
Save Esteban-Rocha/9db748f4172e2cfe43c748219d697b0b to your computer and use it in GitHub Desktop.
Unlock paste on websites
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); | |
// Run the code in the devtools console. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment