8
1
I am new to Greasemonkey and javascript but have found the script below to reload a page every 5 minutes.
// ==UserScript==
// @name Auto Reload Protopage
// @namespace http://blog.monstuff.com/archives/cat_greasemonkey.html
// @description Reload pages every 5 minutes
// @include http://ww.bbc.co.uk
// @grant none
// ==/UserScript==
// based on code by Julien Couvreur
// and included here with his gracious permission
var numMinutes = 5;
window.setTimeout("document.location.reload();", numMinutes*60*1000);
This works but it reloads all the open tabs every 5 minutes and not just the one specified in the @include statement.
Is there any way of doing this?
http://ww.bbc.co.uk doesn't exist? – Laoujin – 2012-10-25T22:33:22.020
Sorry - that was just a typo – Neil Spencer – 2012-10-27T18:36:05.330