Created
April 7, 2017 18:15
-
-
Save fredericobenevides/84b79a359af6b3206d69ac1ddb117fbe to your computer and use it in GitHub Desktop.
Reload the page to not kill the session using GreaseMonkey
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
var id = reloadPage(); | |
document.body.addEventListener("mouseover", function() { | |
clearInterval(id); | |
id = reloadPage(); | |
}) | |
function reloadPage() { | |
var id = setInterval(function() { | |
location.reload(); | |
},1000*60*10); | |
return id; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment