Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. javascript: (function () {
  2. var % 20ca, cea, cs, df, dfe, i, j, x, y;
  3.  
  4. function % 20n(i, what) {
  5. return %20i + "%20" + what + ((i == 1) ? "" : "s")
  6. }
  7. ca = cea = cs = 0;
  8. df = document.forms;
  9. for (i = 0; i < df.length; ++i) {
  10. x = df[i];
  11. dfe = x.elements;
  12. if (x.onsubmit) {
  13. x.onsubmit = "";
  14. ++cs;
  15. }
  16. if (x.attributes["autocomplete"]) {
  17. x.attributes["autocomplete"].value = "on";
  18. ++ca;
  19. }
  20. for (j = 0; j < dfe.length; ++j) {
  21. y = dfe[j];
  22. if (y.attributes["autocomplete"]) {
  23. y.attributes["autocomplete"].value = "on";
  24. ++cea;
  25. }
  26. }
  27. }
  28. alert("Removed%20autocomplete=off%20from%20" + n(ca, "form") + "%20and%20from%20" + n(cea, "form%20element") + ",%20and%20removed%20onsubmit%20from%20" + n(cs, "form") + ".%20After%20you%20type%20your%20password%20and%20submit%20the%20form,%20the%20browser%20will%20offer%20to%20remember%20your%20password.")
  29. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement