Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. javascript: var auto = {
  2. password: 'DEINPASSWORT',
  3. fillerup: function() {
  4. var all_inputs = document.getElementsByTagName('input');
  5. for (var i = 0, max = all_inputs.length; i < max; i++) {
  6. var inp = all_inputs[i];
  7. var type = inp.getAttribute('type');
  8. if (!type) {
  9. type = 'text';
  10. }
  11. if (type == 'password') {
  12. if (!inp.value) {
  13. inp.value = this.getPassword();
  14. }
  15. }
  16. }
  17. },
  18. getPassword: function() {
  19. if (!this.password) {
  20. this.password = 'DEINPASSWORT';
  21. }
  22. return this.password;
  23. }
  24. };
  25. auto.fillerup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement