Auto Page Reload on Error & Gateway Problem Fixer

By aireca Last update Mar 24, 2013 — Installed 11,583 times.

Script Summary: Refresh on failed page loading & Gateway problems, 'FastCGI Error', '502 Bad Gateway','504 Gateway Time-out', '503 Service Temporarily Unavailable', '500 Internal Server Error', 'Error 503 Service Unavailable', '404 Not Found' paheal 'Problem loading page'



Version: 1303241

GET HELP HERE: http://userscripts.org/scripts/discuss/112519

This Script Refresh on failed page loading & Gateway problems

Per example when you are on any page with High Load on the server
Like Rule34.Paheal, Gelbooru, 4chan or any booru images Page or any other normal page
then you get a message like:

'502 Bad Gateway'
'504 Gateway Time-out'
'Problem loading page'
'503 Service Temporarily Unavailable'
'FastCGI Error'
'500 Internal Server Error'
'Error 503 Service Unavailable'
'Service Unavailable'
'404 Not Found'
'504 Gateway Time-out' (text inside page)
& more

You can add more, just copy any message & change the text that are on the page title or the page internal text (It is Case Sensitive so please add exactly the text displayed),

Example:

For page title:

else if (document.title == 'MY PAGE TITLE HERE' )
{window.location.reload(true);}

For page text:

else if (document.getElementsByTagName('h1')[0].innerHTML == 'MY PAGE TEXT HERE')
{window.location.reload(true);}

That easy ;)

If you find more error messages please post it to add them to the list

Trouble with a page?, add an exception to the page list:

// @exclude http://www.yourpage.com/*

That way the page will be ignored totally

Any questions Here: http://userscripts.org/scripts/discuss/112519