One of my coworkers needs a piece of data from a 3rd party website. That data gets posted to a site each morning at an arbitrary time. He has to sit there and click refresh in his browser every 10 seconds until it shows up. He asked me if I could write something to make that page auto refresh every X seconds so he can leave it open on one monitor and do some other work on the other.
Normally, I would write a little screen scraper in perl and email him the number he wants when it comes out... But I thought it might be fun to write a bookmarklet.
I got as far as this:
javascript:(function(){setInterval("location.reload(true);",10000);})()
But cannot figure out how to make the effect persist after the page reloads. Is it possible? If so... how?
This would be easy in Firefox/Greasemonkey... but this guy is stuck running a locked-down version of IE6. He can install a bookmarklet, but cannot install the IE equivalent of GM (if that even exists)
Please point me in the right direction here... is it possible to have Javascript persist after reloading a page?