Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tampermonkey Userscript - Website Auto-Refresh Timer
// ==UserScript==
// @name Auto-Refresh
// @include
// ==/UserScript==
setTimeout(function(){ location.reload(); }, 20*1000);
Copy link

smshai74 commented Feb 1, 2021

What is the time for the auto reload in Minutes ?

Copy link

schoettl commented Apr 3, 2021

You wanted to know in minutes?

(20*1000ms) / (60000ms/min) = 0,3333min

20s, the last parameter in setTimeout is in milliseconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment