Last active
August 18, 2021 15:06
-
-
Save nomomon/f5dc1b018ac739b000b313a99693bd48 to your computer and use it in GitHub Desktop.
Bookmarklet to reload a page in a give time
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
(() => { | |
let t = prompt("exit in what time? (min)"); | |
if(t !== null){ | |
setTimeout(() => { | |
location.href = location.origin; | |
}, t * 60 * 1000) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this a bookmarklet follow this tutorial.