Reload Every

By Glendon Last update Feb 15, 2008 — Installed 2,997 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
XaviEsteve Scriptwright

Hi Glendon,

I really like your script. It has a pretty nice and simple code and it works great.

Having a look at it, I have had the need to allow me to type minutes too.
So I have included this code which prompts you for minutes, then seconds and then shows the total:

var timeoutm = GM_getValue('timeoutm'+thepage, 5);

if (!timeoutset) {
timeoutm = prompt('How often would you like your page to reload?  Type in minutes.', timeoutm);
timeout = prompt('How often would you like your page to reload?  Type in seconds.', timeout);
alert('Page will reload in ' + (parseInt(timeout)+parseInt(timeoutm)*60) + ' seconds (' + (timeoutm) + ' minutes and ' + (timeout) + ' seconds).');
	timeout = parseInt(timeout)+parseInt(timeoutm)*60;

	GM_setValue('timeout'+thepage, timeout);
	GM_setValue('timeoutset'+thepage,1);
	GM_setValue('timeoutm'+thepage, timeoutm);
}

If you consider this being a good idea, please include it or take it in mind for future updates :P
Also, window.status doesn't work for me. How about adding a little text into the page?

Very thanks and regards! :-)

 
Glendon Script's Author

berto -

When it prompts you for the time, the current time is listed. By default, it's 300 seconds (5 minutes).

 
berto User

How to know when you hit Shift S what is the reload time? I do it once install the script but do not know if it is performed. Thank you.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel