Lightspeed Autologin

By ghoofy007 Last update Feb 7, 2009 — Installed 87 times.
// ==UserScript==
// @name           Lightspeed Autologin
// @namespace      ghoofy007
// @include        http://*.lightspeedpanel.com/member/index.html
// @include        http://*.lightspeedpanel.com/index.html
// ==/UserScript==

// Milliseconds to wait for form to autofill (necessary in Fx 1.5 - slower computers may need longer wait)
var timer = 1000;

var timo, maySubmit = true;  // Not currently typing (so we can submit it)

// Function doSignIn
function doSignIn(){
	if((document.getElementById('loginEmailAddress').value.length > 0)&&(document.getElementById('loginPassword').value.length > 0)&&(maySubmit==true)) {
		document.getElementsByName('submit')[0].type = 'hidden';
		document.getElementById('submit').value=true;
		document.forms[0].submit();
	}
	else{
		window.setTimeout(doSignIn, timer);
	}
}

// Attempt to sign in
if(document.getElementById('submit')!=null){
	doSignIn();
}