Skip to content

Instantly share code, notes, and snippets.

@ahutchings
Created July 19, 2010 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahutchings/481963 to your computer and use it in GitHub Desktop.
Save ahutchings/481963 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Autocomplete On
// @namespace http://gist.github.com/481963
// @include https://us.battle.net/login/*
// @include https://wwws.mint.com/*
// @include http://www.verizonwireless.com/b2c/*
// @include https://login.vzw.com/cdsso/public/*
// @include https://login.verizonwireless.com/*
// ==/UserScript==
function enableAutocomplete()
{
var uNodeSnapshot = document.evaluate('//@autocomplete', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = uNodeSnapshot.snapshotLength - 1; i >= 0; i--) {
uNodeSnapshot.snapshotItem(i).nodeValue = 'on';
}
}
window.addEventListener('load', enableAutocomplete, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment