§ 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
Categories
Comments
- backlinks on "Adjust iframe height to contents" - Definitely helped me.
- Slashback on "Simpler validate form fields are filled in (no additional class names)" - You are welcome!
- humour on "Simpler validate form fields are filled in (no additional class names)" - thanks for the script !
- Slashback on "Simpler validate form fields are filled in (no additional class names)" - Thank you. I'm glad it helped!
- buy site on "Javascript function to add css" - Well, i have faced this problem a lot of times and now i got how to add CSS to my java script. I bookmarked your page and will come…