// ==UserScript==
// @name          Autocomplete++
// @description   Enables browser autocompletion for all forms (quickly!)
// @version       2007-03-29
// @namespace     http://diveintomark.org/projects/greasemonkey/
// @include       *
// ==/UserScript==

/* BEGIN LICENSE BLOCK
Copyright (C) 2007 Mark Pilgrim

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You can download a copy of the GNU General Public License at
http://diveintomark.org/projects/greasemonkey/COPYING
or get a free printed copy by writing to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
END LICENSE BLOCK */

var snapAutocomplete = document.evaluate("//*[@autocomplete]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = snapAutocomplete.snapshotLength - 1; i >= 0; i--) {
  snapAutocomplete.snapshotItem(i).removeAttribute("autocomplete");
}
