So I am getting really frustrated with GM and it's inability for me to grasp what is happening LOL.
Here is the script in it's entirety:
js code:
(function () {
for (var i in document.forms) {
if (document.forms[i].name === 'lf') {
getId('ttAuthUID').value = '';
getId('ttAuthPWD').value = '';
getId('submitButton').click();
}
}
setInterval("isTimedOut()", 10000);
function getId(id) { return document.getElementById(id); }
function isTimedOut() {
if (getId('overlaymessage').style.display == 'block')
window.location.reload(false);
}
})();
Basically the script auto logs me in to my works issue tracking software (works fine), now after a bit of time the software will auto log you out. The isTimedOut function simply checks to see if the popup message is displayed and should reload the page. However using setInterval I get isTimedOut() is not defined... I cannot seem to figure out why!
Ultimately it would be nice to gain access to the variable that deals with the timeouts but I cannot seem to figure out how. Still new to GM.
Thanks
Firefox 3.6.16
GM 0.9.2