Created
June 4, 2013 18:52
-
-
Save danbeam/5708457 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Refresher and scroller | |
// @namespace refresh-and-scroll | |
// @description Refreshes page after 5s and scrolls to 1000px. | |
// @match https?://yourdomain.com/* | |
// @version 0.1 | |
// ==/UserScript== | |
window.addEventListener('load', function() { | |
window.scrollTop = 1000 /* px from the top */; | |
}); | |
window.setTimeout(function() { | |
window.location.reload(); | |
}, 5 * 1000 /* 5s */); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment