Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want my browser (Google Chrome) to periodically open a web page in new tab. The period must be configurable at a wide range.

A browser extension or userscript is acceptable.

Please do not suggest automatic update checkers and page scanners. I just want it to open the page, I will check it manually.

share|improve this question

1 Answer 1

Open a new tab or periodically refresh a tab you have open? The latter would be less problematic. Here's a userscript for that:

// ==UserScript==
// @name    Periodically refresh page(s)
// @match   http://YOUR_SERVER.COM/YOUR_PATH/*
// ==/UserScript==

var days    = 0;
var hours   = 1;
var minutes = 44;
var seconds = 17;

setTimeout ( function () {
        location.reload ();
    },
    ( ( (days * 24 + hours) * 60 + minutes) * 60 + seconds) * 1000
);

If you really want to open new tab(s), that would be:

// ==UserScript==
// @name    Periodically open new tabs or windows
// @match   http://YOUR_SERVER.COM/YOUR_PATH/*
// ==/UserScript==

var days    = 0;
var hours   = 1;
var minutes = 44;
var seconds = 17;
var url     = "Some URL";

//--- WARNING: will not work without changing Chrome settings and extensions.
setTimeout ( function () {
        window.open (url, '_blank');
    },
    ( ( (days * 24 + hours) * 60 + minutes) * 60 + seconds) * 1000
);


BUT,

You will also need to set the browser's pop-up blocker settings to allow it.

You will also probably have to install an extension like One Window.

share|improve this answer
    
There are always 5+ tabs are open in my browser. I want to reload a specific tab which is almost always in the background. I think the script you gave will only reload the foreground tab. –  hkBattousai Oct 15 '12 at 8:36
    
It reloads the tab based on the @match directive(s). It should not matter if it's foreground or background. –  Brock Adams Oct 15 '12 at 8:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.