DinoDevs / GladiatusCrazyAddon

This was "A browser addon for the Gladiatus browser game."
https://gladiatus.dinodevs.com
GNU General Public License v3.0
41 stars 30 forks source link

Disable GCA on blank/error page #420

Closed FrutyX closed 1 year ago

FrutyX commented 2 years ago

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.

FrutyX commented 1 year ago

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.

FrutyX commented 1 year ago

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 -->
FrutyX commented 1 year ago

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.