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