From anonymous, 6 Years ago, written in JavaScript.
This paste is a reply to password from The Compiler
- view diff
Embed
  1. js (function() { var s = "", F = document.forms, j, f, i; for (j = 0; j < F.length; ++j) { f = F[j]; for (i = 0; i < f.length; ++i) { if (f[i].type.toLowerCase() == "password") f[i].value = "foo"; } } })()
  2.  
  3.  
  4.  
  5.  
  6.  
  7. (function() {
  8.         var s = "",
  9.         F = document.forms,
  10.         j, f, i;
  11.         for (j = 0; j < F.length; ++j) {
  12.                 f = F[j];
  13.                 for (i = 0; i < f.length; ++i) {
  14.                         if (f[i].type.toLowerCase() == "password") f[i].value = "foo";
  15.                 }
  16.         }
  17. })();