Timer that refreshes when a specific web page reloads?

Caporegime
Joined
3 Jan 2006
Posts
25,099
Location
Chadderton, Oldham
Hi.

I'm wondering if this can be done, there may be restrictions it's for my work pc, basically, I want to make sure I'm completing an allocation every 2 minutes, and when I load the next one, the timer resets, is there an add-on for Chrome to do this?

It's just a little way that may help me keep productive.



Cheers!
 
You could do it with the TamperMonkey extension and add the following snippet of code to the page:

setTimeout(function(){window.location.reload(); }, 120000);

That would refresh the current page every 2 minutes (and resets if you reload the page)
 
it depends on how you are submitting the work I suppose.

You could add the code to a button to reset the timer when it's submitted.

Another option would be to just have a timer running and click reset each time you submit.
 
You could change the code to give you a warning after 2 mins:

setTimeout(function(){alert("page has been open for 2 mins"); }, 120000);

This only works if the page reloads when you submit something otherwise it'll be more complicated and you'll need to check for button presses like AHarvey says.
 
Back
Top Bottom