snake-mods/custom.js
2023-04-20 16:18:25 +02:00

562 lines
25 KiB
JavaScript

window.snake.more_menu = function(e) {
e = e || 25;
// micro
let img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Micro.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
// tiny
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Tiny.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
// super big
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Super%20Big.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
// ultra big
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Too%20Big.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
// humongous
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Humongous.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
// too big
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Too%20Big.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
// too big
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Way%20Too%20Big.png';
img.width = 47;
img.height = 47;
document.querySelector('#size').appendChild(img);
/*--SPEEDS--*/
// blursed
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/blursed.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// lightning
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/lightning.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// snail
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Snail.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// fast-slow 2: faster and slower
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Faster%20And%20Slower.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// desert bus
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Desert%20Bus.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// bullet
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Bullet.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// hyperbullet (red)
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Red%20bullet.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// ultrabullet (purple)
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Purple%20bullet.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// yeetbullet (blue)
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Blue%20Bullet.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// eternity
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/eternal.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
// ultradeath
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/ultradeath.png';
img.width = 47;
img.height = 47;
img.class = 'DqMRee SsAred';
document.querySelector('#speed').appendChild(img);
/*--COUNTS--*/
// 13
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/13.png';
img.width = 47;
img.height = 47;
document.querySelector('#count').appendChild(img);
// 25
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/25.png';
img.width = 47;
img.height = 47;
document.querySelector('#count').appendChild(img);
// 40 :rolling_eyes:
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/40.png';
img.width = 47;
img.height = 47;
document.querySelector('#count').appendChild(img);
// 87
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/87.png';
img.width = 47;
img.height = 47;
document.querySelector('#count').appendChild(img);
// apple bomb
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/Apple%20Bomb.png';
img.width = 47;
img.height = 47;
document.querySelector('#count').appendChild(img);
// apple nuke
img = new Image;
img.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/nuke.png';
img.width = 47;
img.height = 47;
document.querySelector('#count').appendChild(img);
/* making do things */
const scripts = document.getElementsByTagName('script');
for (let script of scripts) {
if(script.src === '' || script.src.includes('apis.google.com'))continue;
const req = new XMLHttpRequest();
req.open('GET', script.src);
req.onload = function () {
const code = this.responseText;
if (code.indexOf('trophy') === -1)
return;
const functio = code.match(
/[a-zA-Z0-9_$]{1,6}\.prototype\.resetState=function\(a\){a=void 0===a\?!0:a;[^]*?this,!1\)}/
)[0];
const thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj = functio.match(
/0!==this\.[a-zA-Z0-9_$]{1,6}/
)[0].replace('0!==', '');
const pafihwotyhopyplacetheiopafsjafijplesllllllll = functio.match(
/this\.[a-zA-Z0-9_$]{1,6}\.push\([a-zA-Z0-9_$]{1,6}\(this,/
)[0];
const inevilmodes = functio.match(
/[a-zA-Z0-9_$]{1,6}\(this,2\)\|\|[a-zA-Z0-9_$]{1,6}\(this,8\)\|\|[a-zA-Z0-9_$]{1,6}\(this,9\)\|\|[a-zA-Z0-9_$]{1,6}\(this,10\)/
)[0];
const dothething = functio.match(
/for\(d=[a-zA-Z0-9_$]{1,6}\(this\.[a-zA-Z0-9_$]{1,6}\),[^}]*?this\)/
)[0];
const dothethingportalstyle = functio.match(
/for\(b=Math\.floor\(21\/\(1===this\.[^}]*?type=this\.[a-zA-Z0-9_$]{1,6}\[d\]\.type\)/
)[0];
const modecheck = code.match(
/[a-zA-Z0-9_$]{1,6}=function\(a,b\){return 12===a[^}]*?===b}/
)[0].match(/[a-zA-Z0-9_$]{1,6}/)[0];
eval(
functio.replace(
`if(c=${inevilmodes})`,
`
if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} > 2) {
if(!(${inevilmodes})) {
if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 3) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, -2));
} else if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 4) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, -2));
} else if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 5) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, -3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, -3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, -3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, -3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, -3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 2, -2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 2, -1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 2, 0));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 2, 1));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 2, 2));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 1, 3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -2, 3));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -3, 3));
} else if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 6) {
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, -4));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, -3));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, -2));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, -1));
}
for (i=-3;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, 0));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, 1));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, 2));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, 3));
}
for (i=-7;i<3;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i, 4));
}
} else if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 7) {
for (i=0;i<200;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 0));
}
} else if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 8) {
for (i=0;i<10000;i++) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} -1, 0));
}
} else
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 100000, 1));
${dothething}
} else {
if(${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} < 7)
for(
let i = 0; i < (
${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 3
? 13
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 4
? 25
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 5
? 40
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 6
? 100
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 7
? 0
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 8
? 0
: 0
); i++
) {
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i - ~~((
${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 3
? 13
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 4
? 25
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 5
? 40
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 6
? 100
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 7
? 0
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 8
? 0
: 0
) / 1.25), -4));
${pafihwotyhopyplacetheiopafsjafijplesllllllll} i- ~~((
${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 3
? 13
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 4
? 25
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 5
? 40
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 6
? 100
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 7
? 0
: ${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 8
? 0
: 0
) / 1.25), 4));
}
else {
for(let i = 0; i < (
${thjaselcdtctedaboupplelcountthingffjfjfjfjfjfjfjfjfjfj} === 7
? 200
: 20000
); i++)
${pafihwotyhopyplacetheiopafsjafijplesllllllll} 0, 0));
}
}
if(${modecheck}(this, 2)) {${dothethingportalstyle}}
if(${modecheck}(this, 10)) {${dothething}}
} else if(${inevilmodes})
`
).replace(
'this,!1)}',
`this,!1);
this.gW[-1] = this.gW[0];
}`
)
);
const limesarebetter = code.match(
/[a-zA-Z0-9_$]{1,6}=function\(a\){switch\(a\.[a-zA-Z0-9_$]{1,6}\){case 1:return\.66[^}]*?1}}/
)[0];
const limename = limesarebetter.match(/[a-zA-Z0-9_$]{1,6}/)[0];
const limespeed = limesarebetter.match(/switch\(a\.[a-zA-Z0-9_$]{1,6}\)/)[0].replace('switch(a.', 'this.').replace(')', '');
const a = code.match(new RegExp(
`this\\.[a-zA-Z0-9_$]{1,6}=[a-zA-Z0-9_$]{1,6}\\*${limename}\\(this\\);`
))[0];
eval(
limesarebetter.replace(
'1.33;',
`1.33;case 3:return _soup;case 4:return 0.45;case 5:return 1.85;case 6:return _soep;case 7:return 18.5;case 8:return 0.35;case 9:return 0.25;case 10:return 0.15;case 11:return 0.05;case 12:return 26640;case 13:return 0.00001;`
)
);
const soup = code.match(
/[a-zA-Z0-9_$]{1,6}\.prototype\.update=function\(\){[^]*?this\)}}}}/
)[0];
const f = soup.match(
/:this\.[a-zA-Z0-9_$]{1,6}\+=\n?1,this\.[a-zA-Z0-9_$]{1,6}\+\+,/
)[0];
eval('var _soup = 1.33;');
eval('var _soep = 1.85;');
eval(
soup.replace(
f,
f + `_soup = Math.random() < .5 ? .66 : 1.33, _soep = Math.random() < .5 ? .45 : 1.85, ${limespeed} === 3 && (${a.replace(limename + '(this);', '_soup')}), ${limespeed} === 6 && (${a.replace(limename + '(this);', '_soep')}),`
)
);
const fishes = code.match(
/[a-zA-Z0-9_$]{1,6}=function\(a\){[^}]*?h6Ousc[^]*?\(a\)}/
)[0];
const words = fishes.match(
/0!==a\.[a-zA-Z0-9_$]{1,6}/
)[0].replace('0!==', '');
eval(
fishes.replace(
'(a)}',
`(a)
if(${words} < 3) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
}
if(${words} === 3) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
__c = new Image;
__c.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages@master/13.png';
__c.width = __c.height = 47;
__c.style = 'position:fixed;top: 10px;';
__b.appendChild(__c);
}
if(${words} === 4) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
__c = new Image;
__c.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages/blob/main/25.png';
__c.width = __c.height = 47;
__c.style = 'position:fixed;top: 10px;';
__b.appendChild(__c);
}
if(${words} === 5) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
__c = new Image;
__c.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages/blob/main/40.png';
__c.width = __c.height = 47;
__c.style = 'position:fixed;top: 10px;';
__b.appendChild(__c);
}
if(${words} === 6) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
__c = new Image;
__c.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages/blob/main/87.png';
__c.width = __c.height = 47;
__c.style = 'position:fixed;top: 10px;';
__b.appendChild(__c);
}
if(${words} === 7) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
__c = new Image;
__c.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages/blob/main/Apple%20Bomb.png';
__c.width = __c.height = 47;
__c.style = 'position:fixed;top: 10px;';
__b.appendChild(__c);
}
if(${words} === 8) {
__b = document.body.getElementsByClassName('UJhXPd wSwbef EWyEF')[0];
[...__b.children].forEach((e, i) => i > 1 && (__b.removeChild(__b.children[i])));
__c = new Image;
__c.src = 'https://cdn.jsdelivr.net/gh/carlgustavh/GoogleSnakeCustomMenuStuffImages/blob/main/nuke.png';
__c.width = __c.height = 47;
__c.style = 'position:fixed;top: 10px;';
__b.appendChild(__c);
}
}`
)
);
const meat = code.match(
/[a-zA-Z0-9_$]{1,6}=function\(a\){a\.[a-zA-Z0-9_$]{1,6}\.clearRect\(0,0,[^]*?0\),0,b\)}/
)[0];
const ul = meat.match(
/var b=a\.[a-zA-Z0-9_$]{1,6}\.width/
)[0].replace('var b=', '');
const mDb = meat.match(
/a\.[a-zA-Z0-9_$]{1,6}\.render/g
)[1].replace('.render', '');
const Hw = meat.match(
/1===a\.[a-zA-Z0-9_$]{1,6}/
)[0].replace('1===', '');
eval(
meat.replace(
'&&',
'?'
).replace(
'd));',
`d)) : ${Hw} !== 0 && (${mDb}.context.drawImage(document.querySelector('#speed').children[${Hw}], ${ul} - 80, c.y - 80, 80, 80));`
)
);
eval(
code.match(
/[a-zA-Z0-9_$]{1,6}=function\(a\){switch\(a\.[a-zA-Z0-9_$]{1,6}\){case 2:return 512;[^]*?256}}/
)[0].replace(
'96;',
`96;case 3:return ${e};case 4:return 48;case 5:return 1200;case 6:return 3500;case 7:return 10000;case 8:return 25000;case 9:return 100000;`
)
);
};
req.send();
}
};