// ==UserScript==

// @name            Unibanco Preenchimento Automático C/C
// @author          Bruno Torres <http://www.brunotorres.net/>
// @namespace       http://www.brunotorres.net/greasemonkey/
// @description     Preenche os dados da conta corrente automaticamente no site do unibanco
// @include         http://*unibanco.com*/geral/ibanking.asp*

// ==/UserScript==

(function() {
	var inputs = document.getElementsByTagName('input');
	for (i=0; i<inputs.length; i++)
	{
		if (inputs[i].name == 'AGENCIA')
		{
			var ag = inputs[i];
		}
		if (inputs[i].name == 'CONTA')
		{
			var conta = inputs[i];
		}
		if (inputs[i].name == 'DIGCONTA')
		{
			var dig = inputs[i];
		}
	}
	ag.value = '';
	conta.value = '';
	dig.value = '';
	check();
})();

