mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
spoof url
This commit is contained in:
parent
bfa9977a8f
commit
71999367c6
@ -6,6 +6,7 @@
|
|||||||
<script type = text/javascript>
|
<script type = text/javascript>
|
||||||
window.addEventListener("load", function() {
|
window.addEventListener("load", function() {
|
||||||
window.assetsURI = createAssetURI("assets");
|
window.assetsURI = createAssetURI("assets");
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
gameContainer: 'game_frame',
|
gameContainer: 'game_frame',
|
||||||
assetsLocation: '/game/web/main/a1.2.6/resources.mc',
|
assetsLocation: '/game/web/main/a1.2.6/resources.mc',
|
||||||
};
|
};
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
gameContainer: 'game_frame',
|
gameContainer: 'game_frame',
|
||||||
assetsLocation: '/game/web/main/b1.7.3/resources.mc',
|
assetsLocation: '/game/web/main/b1.7.3/resources.mc',
|
||||||
};
|
};
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<script>
|
<script>
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
window.classicConfig = ['game_frame', '/game/web/main/classic/resources.mc'];
|
window.classicConfig = ['game_frame', '/game/web/main/classic/resources.mc'];
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<script>
|
<script>
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
window.classicConfig = ['game_frame', '/game/web/main/indev/resources.mc'];
|
window.classicConfig = ['game_frame', '/game/web/main/indev/resources.mc'];
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<script>
|
<script>
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
window.minecraftOpts = ['game_frame', '/game/web/main/infdev/resources.epk'];
|
window.minecraftOpts = ['game_frame', '/game/web/main/infdev/resources.epk'];
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -3,37 +3,25 @@ window.addEventListener('load', function () {
|
|||||||
const relayId = Math.floor(Math.random() * 3);
|
const relayId = Math.floor(Math.random() * 3);
|
||||||
window.eaglercraftOpts = {
|
window.eaglercraftOpts = {
|
||||||
container: 'game_frame',
|
container: 'game_frame',
|
||||||
assetsURI: 'assets.epk',
|
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||||
serverWorkerURI: 'worker_bootstrap.js',
|
localesURI: `${window.location.pathname}/lang/`,
|
||||||
|
serverWorkerURI: `${window.location.pathname}/worker_bootstrap.js`,
|
||||||
worldsFolder: 'MAIN',
|
worldsFolder: 'MAIN',
|
||||||
servers: [
|
servers: [{ serverName: 'BrickMC', serverAddress: 'wss://play.brickmc.net', hideAddress: false }],
|
||||||
{ serverName: 'BrickMC', serverAddress: 'wss://play.brickmc.net', hideAddress: false },
|
|
||||||
],
|
|
||||||
relays: [
|
relays: [
|
||||||
{ addr: 'wss://relay.deev.is/', name: 'lax1dude relay #1', primary: relayId === 0 },
|
{ addr: 'wss://relay.deev.is/', name: 'lax1dude relay #1', primary: relayId === 0 },
|
||||||
{ addr: 'wss://relay.lax1dude.net/', name: 'lax1dude relay #2', primary: relayId === 1 },
|
{ addr: 'wss://relay.lax1dude.net/', name: 'lax1dude relay #2', primary: relayId === 1 },
|
||||||
{ addr: 'wss://relay.shhnowisnottheti.me/', name: 'ayunami relay #1', primary: relayId === 2 },
|
{ addr: 'wss://relay.shhnowisnottheti.me/', name: 'ayunami relay #1', primary: relayId === 2 },
|
||||||
],
|
],
|
||||||
mainMenu: {
|
mainMenu: {
|
||||||
splashes: [
|
splashes: ['Darviglet!', 'eaglerenophile!', 'You Eagler!', 'Yeeeeeee!', 'yeee', 'EEEEEEEEE!', 'You Darvig!', 'You Vigg!', ':>', '|>', 'You Yumpster!'],
|
||||||
'Darviglet!',
|
eaglerLogo: false,
|
||||||
'eaglerenophile!',
|
|
||||||
'You Eagler!',
|
|
||||||
'Yeeeeeee!',
|
|
||||||
'yeee',
|
|
||||||
'EEEEEEEEE!',
|
|
||||||
'You Darvig!',
|
|
||||||
'You Vigg!',
|
|
||||||
':>',
|
|
||||||
'|>',
|
|
||||||
'You Yumpster!'
|
|
||||||
],
|
|
||||||
eaglerLogo: false
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
window.eaglercraftOpts.joinServer = urlParams.get('server') ?? undefined;
|
window.eaglercraftOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||||
|
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,8 @@ window.addEventListener('load', () => {
|
|||||||
const relayId = Math.floor(Math.random() * 3);
|
const relayId = Math.floor(Math.random() * 3);
|
||||||
window.eaglercraftXOpts = {
|
window.eaglercraftXOpts = {
|
||||||
container: 'game_frame',
|
container: 'game_frame',
|
||||||
assetsURI: 'assets.epk',
|
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||||
|
localesURI: `${window.location.pathname}/lang/`,
|
||||||
servers: [
|
servers: [
|
||||||
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
|
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
|
||||||
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
|
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
|
||||||
@ -38,5 +39,6 @@ window.addEventListener('load', () => {
|
|||||||
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||||
window.eaglercraftXOpts.Mods = storage.local.get('mods') ?? [];
|
window.eaglercraftXOpts.Mods = storage.local.get('mods') ?? [];
|
||||||
|
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,8 @@ window.addEventListener('load', () => {
|
|||||||
const relayId = Math.floor(Math.random() * 3);
|
const relayId = Math.floor(Math.random() * 3);
|
||||||
window.eaglercraftXOpts = {
|
window.eaglercraftXOpts = {
|
||||||
container: 'game_frame',
|
container: 'game_frame',
|
||||||
assetsURI: 'assets.epk',
|
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||||
|
localesURI: `${window.location.pathname}/lang/`,
|
||||||
servers: [
|
servers: [
|
||||||
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
|
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
|
||||||
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
|
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
|
||||||
@ -19,5 +20,6 @@ window.addEventListener('load', () => {
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||||
|
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,8 @@ window.addEventListener('load', () => {
|
|||||||
const relayId = Math.floor(Math.random() * 3);
|
const relayId = Math.floor(Math.random() * 3);
|
||||||
window.eaglercraftXOpts = {
|
window.eaglercraftXOpts = {
|
||||||
container: 'game_frame',
|
container: 'game_frame',
|
||||||
assetsURI: 'assets.epk',
|
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||||
|
localesURI: `${window.location.pathname}/lang/`,
|
||||||
servers: [{ addr: 'wss://eagler.xyz', name: 'TemuzX' }],
|
servers: [{ addr: 'wss://eagler.xyz', name: 'TemuzX' }],
|
||||||
relays: [
|
relays: [
|
||||||
{ addr: 'wss://relay.deev.is/', comment: 'lax1dude relay #1', primary: relayId === 0 },
|
{ addr: 'wss://relay.deev.is/', comment: 'lax1dude relay #1', primary: relayId === 0 },
|
||||||
@ -15,5 +16,6 @@ window.addEventListener('load', () => {
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||||
|
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
window.minecraftOpts = [
|
window.minecraftOpts = ['game_frame', `${window.location.pathname}/assets.epk`];
|
||||||
'game_frame',
|
|
||||||
'assets.epk'
|
|
||||||
];
|
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
window.minecraftOpts.push(urlParams.get('server') ?? undefined);
|
window.minecraftOpts.push(urlParams.get('server') ?? undefined);
|
||||||
|
|
||||||
|
history.replaceState({}, '', '/');
|
||||||
main();
|
main();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user