-
-
Save thefloodshark/b24636d8129dd28ef7a2cb7d5a8a1dce to your computer and use it in GitHub Desktop.
Tampermonkey Userscript - Website Auto-Refresh Timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Auto-Refresh | |
// @include https://www.example.com | |
// ==/UserScript== | |
//--- https://stackoverflow.com/questions/25484978/i-want-a-simple-greasemonkey-script-to-reload-the-page-every-minute | |
setTimeout(function(){ location.reload(); }, 20*1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You wanted to know in minutes?
(20*1000ms) / (60000ms/min) = 0,3333min
20s, the last parameter in
setTimeout
is in milliseconds.