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>
|
||||
window.addEventListener("load", function() {
|
||||
window.assetsURI = createAssetURI("assets");
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
</script>
|
||||
|
@ -14,6 +14,7 @@
|
||||
gameContainer: 'game_frame',
|
||||
assetsLocation: '/game/web/main/a1.2.6/resources.mc',
|
||||
};
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
gameContainer: 'game_frame',
|
||||
assetsLocation: '/game/web/main/b1.7.3/resources.mc',
|
||||
};
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
</script>
|
||||
|
@ -11,6 +11,7 @@
|
||||
<script>
|
||||
window.addEventListener('load', function () {
|
||||
window.classicConfig = ['game_frame', '/game/web/main/classic/resources.mc'];
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
</script>
|
||||
|
@ -11,6 +11,7 @@
|
||||
<script>
|
||||
window.addEventListener('load', function () {
|
||||
window.classicConfig = ['game_frame', '/game/web/main/indev/resources.mc'];
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
</script>
|
||||
|
@ -11,6 +11,7 @@
|
||||
<script>
|
||||
window.addEventListener('load', function () {
|
||||
window.minecraftOpts = ['game_frame', '/game/web/main/infdev/resources.epk'];
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
</script>
|
||||
|
@ -3,37 +3,25 @@ window.addEventListener('load', function () {
|
||||
const relayId = Math.floor(Math.random() * 3);
|
||||
window.eaglercraftOpts = {
|
||||
container: 'game_frame',
|
||||
assetsURI: 'assets.epk',
|
||||
serverWorkerURI: 'worker_bootstrap.js',
|
||||
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||
localesURI: `${window.location.pathname}/lang/`,
|
||||
serverWorkerURI: `${window.location.pathname}/worker_bootstrap.js`,
|
||||
worldsFolder: 'MAIN',
|
||||
servers: [
|
||||
{ serverName: 'BrickMC', serverAddress: 'wss://play.brickmc.net', hideAddress: false },
|
||||
],
|
||||
servers: [{ serverName: 'BrickMC', serverAddress: 'wss://play.brickmc.net', hideAddress: false }],
|
||||
relays: [
|
||||
{ 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.shhnowisnottheti.me/', name: 'ayunami relay #1', primary: relayId === 2 },
|
||||
],
|
||||
mainMenu: {
|
||||
splashes: [
|
||||
'Darviglet!',
|
||||
'eaglerenophile!',
|
||||
'You Eagler!',
|
||||
'Yeeeeeee!',
|
||||
'yeee',
|
||||
'EEEEEEEEE!',
|
||||
'You Darvig!',
|
||||
'You Vigg!',
|
||||
':>',
|
||||
'|>',
|
||||
'You Yumpster!'
|
||||
],
|
||||
eaglerLogo: false
|
||||
splashes: ['Darviglet!', 'eaglerenophile!', 'You Eagler!', 'Yeeeeeee!', 'yeee', 'EEEEEEEEE!', 'You Darvig!', 'You Vigg!', ':>', '|>', 'You Yumpster!'],
|
||||
eaglerLogo: false,
|
||||
},
|
||||
};
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
window.eaglercraftOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
|
@ -3,7 +3,8 @@ window.addEventListener('load', () => {
|
||||
const relayId = Math.floor(Math.random() * 3);
|
||||
window.eaglercraftXOpts = {
|
||||
container: 'game_frame',
|
||||
assetsURI: 'assets.epk',
|
||||
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||
localesURI: `${window.location.pathname}/lang/`,
|
||||
servers: [
|
||||
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
|
||||
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
|
||||
@ -38,5 +39,6 @@ window.addEventListener('load', () => {
|
||||
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||
window.eaglercraftXOpts.Mods = storage.local.get('mods') ?? [];
|
||||
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
|
@ -3,7 +3,8 @@ window.addEventListener('load', () => {
|
||||
const relayId = Math.floor(Math.random() * 3);
|
||||
window.eaglercraftXOpts = {
|
||||
container: 'game_frame',
|
||||
assetsURI: 'assets.epk',
|
||||
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||
localesURI: `${window.location.pathname}/lang/`,
|
||||
servers: [
|
||||
{ addr: 'wss://electronmc.club', name: 'Electron Network' },
|
||||
{ addr: 'wss://play.brickmc.net', name: 'BrickMC' },
|
||||
@ -19,5 +20,6 @@ window.addEventListener('load', () => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
|
@ -3,7 +3,8 @@ window.addEventListener('load', () => {
|
||||
const relayId = Math.floor(Math.random() * 3);
|
||||
window.eaglercraftXOpts = {
|
||||
container: 'game_frame',
|
||||
assetsURI: 'assets.epk',
|
||||
assetsURI: `${window.location.pathname}/assets.epk`,
|
||||
localesURI: `${window.location.pathname}/lang/`,
|
||||
servers: [{ addr: 'wss://eagler.xyz', name: 'TemuzX' }],
|
||||
relays: [
|
||||
{ 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);
|
||||
window.eaglercraftXOpts.joinServer = urlParams.get('server') ?? undefined;
|
||||
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
|
@ -1,12 +1,10 @@
|
||||
// @ts-nocheck
|
||||
window.addEventListener('load', function () {
|
||||
window.minecraftOpts = [
|
||||
'game_frame',
|
||||
'assets.epk'
|
||||
];
|
||||
window.minecraftOpts = ['game_frame', `${window.location.pathname}/assets.epk`];
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
window.minecraftOpts.push(urlParams.get('server') ?? undefined);
|
||||
|
||||
history.replaceState({}, '', '/');
|
||||
main();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user