Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement