Skip to content

Instantly share code, notes, and snippets.

@derekprior
Created August 8, 2012 14:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save derekprior/3295484 to your computer and use it in GitHub Desktop.
Save derekprior/3295484 to your computer and use it in GitHub Desktop.
Some websites, such as appleid.apple.com think its a good idea to disallow pasting into password fields. If you use a password manager, this can cause a giant pane. Run the following JavaScript in the inspector to disable this silliness.
var inputs = document.getElementsByTagName('input');
for (var i=0; i < inputs.length; i++) {
if (inputs[i].getAttribute('type').toLowerCase() === 'password') {
inputs[i].setAttribute('onpaste', '');
}
}
@derekprior
Copy link
Author

See my website for a bookmarklet version of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment