Last active
July 29, 2020 15:08
-
-
Save renehesse/1993c43a5354a3617d0a642b6f39f518 to your computer and use it in GitHub Desktop.
Fritz!Box Passwort ausfüllen Bookmarklet
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
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