Skip to content

Instantly share code, notes, and snippets.

@renehesse
Last active July 29, 2020 15:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save renehesse/1993c43a5354a3617d0a642b6f39f518 to your computer and use it in GitHub Desktop.
Save renehesse/1993c43a5354a3617d0a642b6f39f518 to your computer and use it in GitHub Desktop.
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