« Blog Home

§ setInterval to stay logged in

Just a setInterval example to refresh a page.

I use this with Greasemonkey to stay logged to a site that times me out after 60 minutes of inactivity.

If you don't know Greasemonkey, it's a FF extension that lets you assign arbitrary javascript to run on urls you specify.

 


setInterval(function(){location.href=location.href;},59*60*1000);


 

last edited on January 29th, 2009 at 9:59 PM

Comments

No Comments Here. Add yours below!

Add your comment

Name:
Email: (Will not be displayed - Privacy policy)
Website:
Comments:
  random image I can't read it!
Give me a different one!
Verify Post: Input the text from the image above to verify this post (helps prevent spam)
 

« Blog Home


The abbot shook his head.  “Michael and the others went too far when they went to the Kaiser.  It is not for us to order the affairs of kings, but to care for the poor and lowly.”
“That,” said Dietrich, “may require you to order the affairs of kings.”
an abbot & Dietrich, Eifelheim, Michael Flynn