Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fritz!Box Passwort ausfüllen Bookmarklet
javascript: var auto = {
password: 'DEINPASSWORT',
fillerup: function() {
var all_inputs = document.getElementsByTagName('input');
for (var i = 0, max = all_inputs.length; i < max; i++) {
var inp = all_inputs[i];
var type = inp.getAttribute('type');
if (!type) {
type = 'text';
}
if (type == 'password') {
if (!inp.value) {
inp.value = this.getPassword();
}
}
}
},
getPassword: function() {
if (!this.password) {
this.password = 'DEINPASSWORT';
}
return this.password;
}
};
auto.fillerup()
/* Basiert auf dem Form auto-fill bookmarklet von https://twitter.com/stoyanstefanov */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.