I created a userscript to redirect to one out of the specified multiple sites:
// ==UserScript==
// @id fvhfy464
// @name [udit]redirector to yahoo or google
// @version 1.0
// @namespace
// @author
// @description
// @include http://yahoo.com
// @include http://google.com
// @include http://bing.com
// @run-at document-end
// ==/UserScript==
setTimeout(function() {
window.location.href("http://yahoo.com","http://google.com","http://bing.com")
}, 4000);
But it doesn't work.
(From comments:)
I want to open multiple sites in a single tab, one after another, in a random way with a time interval of 4 seconds. It's like a screensaver of sites.
It can go forever. To stop, I just have to close the tab. And, I'll only set those sites in the @include
which I want this script to work on. It's like a screensaver of photos etc.