Created
August 8, 2012 14:31
-
-
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.
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 inputs = document.getElementsByTagName('input'); | |
for (var i=0; i < inputs.length; i++) { | |
if (inputs[i].getAttribute('type').toLowerCase() === 'password') { | |
inputs[i].setAttribute('onpaste', ''); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See my website for a bookmarklet version of this.