Force AutoComplete

By LouCypher Last update Jul 17, 2005 — Installed 5,864 times. Daily Installs: 7, 3, 8, 10, 3, 13, 4, 14, 5, 3, 6, 8, 5, 10, 6, 9, 8, 6, 9, 10, 12, 4, 18, 9, 4, 4, 1, 14, 9, 5, 11, 3
// ==UserScript==
// @name          Force AutoComplete
// @namespace     http://loucypher.cjb.net/
// @include       *
// @exclude       http://greasemonkeyed.com/*
// @exclude       http://userscript*.com/*
// @description	  Makes autocomplete always on
// ==/UserScript==
// Changelog:
// - Conditions added

(function() {
  var form, input;
  form = document.getElementsByTagName('form');
  if(form) {
    for(i = 0; i < form.length; i++) {
      form[i].setAttribute('autocomplete', 'on');
    }
    input = document.getElementsByTagName('input');
    for(i = 0; i < input.length; i++) {
      if(input[i].type=='text') {
        input[i].setAttribute('autocomplete', 'on');
      }
    }
  }
})();