Skip to content

Instantly share code, notes, and snippets.

@olive42
Created February 2, 2022 07:22
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 olive42/54b2eafebfc28df2e51a4824c893374b to your computer and use it in GitHub Desktop.
Save olive42/54b2eafebfc28df2e51a4824c893374b to your computer and use it in GitHub Desktop.
Allow paste in websites that disable it (useful when creating passwords with your password manager)
// From https://www.cyberciti.biz/linux-news/google-chrome-extension-to-removes-password-paste-blocking-on-website/
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