PDA

View Full Version : Greasemonkey/Tampermonkey Refresh Script



jrdizzle
06-06-2018, 09:32 AM
Is anyone able to make a script to make a certain tab refresh every few seconds? I have no idea what I'm doing. I've tried to modify other refreshers on here, but I think I just mess them up.

If there's an easier way to go about this and I'm just overthinking, then feel free to call me stupid and please tell me how!

domedyne
06-06-2018, 07:53 PM
If you're using Tampermonkey and a modern browser it should really be quite easy.


// ==UserScript==
// name Refresh
// namespace MyScripts
[Only registered and activated users can see links]
// Description Refresh the page
[Only registered and activated users can see links]
// Match !!Put the page URL here!!
[Only registered and activated users can see links]
// ==/UserScript==

(function() {
'use strict';
setTimeout(() => window.location.reload(), 5000);
})();

You can change the time from 5000 milliseconds to whatever. Remember to put the right URL.

jrdizzle
06-06-2018, 10:16 PM
Thanks a bunch! I'm not good at any of this, but I'm slowly learning