14 lines
852 B
Plaintext
14 lines
852 B
Plaintext
Paste this block as the FIRST <script> before other scripts in index.html
|
|
(if download fails, edit index.html in Notepad and add at line ~89):
|
|
|
|
<script>
|
|
(function(){var P='https://srv1361159.hstgr.cloud/Game',h=(location.hostname||'').toLowerCase();
|
|
if(h!=='localhost'&&h!=='127.0.0.1')return;
|
|
try{localStorage.setItem('isLoggedIn','true');localStorage.setItem('loginType','guest');
|
|
if(!localStorage.getItem('playerName'))localStorage.setItem('playerName','DevTester');}catch(e){}
|
|
window.GAME_API_FETCH_BASE=P;window.__JD_GAME_API_BASE__=P;
|
|
if(!window.fetch||window.__JD_INLINE__)return;window.__JD_INLINE__=1;
|
|
var f=window.fetch.bind(window);var bad=/^https?:\/\/(?:localhost|127\.0\.0\.1):(3004|3001|3010|13010)\/Game/i;
|
|
window.fetch=function(u,o){if(typeof u==='string'&&bad.test(u))u=P+u.slice(u.indexOf('/Game')+5);return f(u,o);};})();
|
|
</script>
|