Skip to content

Instantly share code, notes, and snippets.

@echohack
Created December 6, 2021 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echohack/3e66cbce00cb14fd0d6a2c33e672eacb to your computer and use it in GitHub Desktop.
Save echohack/3e66cbce00cb14fd0d6a2c33e672eacb to your computer and use it in GitHub Desktop.
Allow me to paste into any password field
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