Retour au sujet

Avatar de MarilynManson MarilynManson
>>SirSeigneur
c'est safe j'ai verifié le code d'ailleur le voici

// ==UserScript==
// @name ISSOU YATANGAKI 502 GATEWAY FIXER
// @description Refresh on failed page loading & Gateway problems, '502 Bad Gateway','504 Gateway Time-out', 'Problem loading page', '503 Service Temporarily Unavailable', '500 Internal Server Error', 'Error 503 Service Unavailable', '404 Not Found', '504 Gateway Time-out'
// @author MARILYNMANSON
// @namespace
// @version 1
// @updateURL
// @include *
// @grant none
// ==/UserScript==
var time = 1;
(function ()
{
if (document.title == '502 Bad Gateway' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == '504 Gateway Time-out' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'Problem loading page' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == '503 Service Temporarily Unavailable' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'Service Unavailable' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == '500 Internal Server Error' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'Database error' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'FastCGI Error' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'The connection has timed out' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'Problemas al cargar la página' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.title == 'Error 502 (Server Error)!!1' )
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.getElementsByTagName('h1')[0].innerHTML == '502 Bad Gateway')
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.getElementsByTagName('h1')[0].innerHTML == 'Service Unavailable')
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.getElementsByTagName('h1')[0].innerHTML == 'Error 503 Service Unavailable')
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.getElementsByTagName('h1')[0].innerHTML == '404 Not Found')
{setTimeout(function() {window.location.reload(true);}, time);}
else if (document.getElementsByTagName('h1')[0].innerHTML == '504 Gateway Time-out')
{setTimeout(function() {window.location.reload(true);}, time);}
})();


D'ailleurs khey tu peux changer le ": var time = 1" à 0.1 ou même 0.001 si tu trouves que c'est trop long

T'as toujours des mecs qui pensent qu'en 2k17 on peut faire passer un truc louche à travers chrome https://image.noelshack.com/minis/2016/24/1466366209-risitas24.png