DinoDevs / GladiatusCrazyAddon

This was "A browser addon for the Gladiatus browser game."

Home Page:https://gladiatus.dinodevs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable GCA on blank/error page

FrutyX opened this issue · comments

white

This is now the "new" backup page, and you get it time to time when the server is overloaded, the problem with this is, that GCA is still running in the background, and naturally throws errors, it would be probably wise, to disable GCA scripts, when the page isn't working.

GramThanos commented on 4 Oct 2017

To do that, we can check if this is the back up page on "fireLoadEvent" function

However, I am not sure about the implementation of the detection, it's basically a blank page, so it's probably best, to check if core elements exists, and if not, it's a blank page, id "wrapper_game" could be a good element for it.

Source code example:

<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body bgcolor="white">
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Well, this was addressed by Gameforge in the last update, and it seems, that the blank error page does not occur during maintenance times, at least not the way I showed here.

I will close this one.