user23364380
user23364380

Reputation: 1

Userscript to redirect when site is down

I have script that redirects a website to an alternate website.

//==UserScript==
// @name Redirect Unreliable Site
// @description Redirect Unreliable Site
// @include http://*.[unreliablesite]
// @run-at document-start
//==/UserScript==
window.location.replace ("http://alternativesite")

Redirect faster with Greasemonkey (or similar userscript engine)?

It doesn't work if the original site is down. Is there a way to go to the alternate site without going to the original first?

Upvotes: 0

Views: 32

Answers (0)

Related Questions