prodigy hack {Might Work 50/50 Chance}

prodigy hack idk if it works

< Feedback on prodigy hack {Might Work 50/50 Chance}

Review: Good - script works

§
Posted: 2021-11-08
Edited: 2021-11-08

100%100 if you ad som thing like this to it. it will work
// ==UserScript==
// @name Prodigy hack
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author xXUrBadKIdXx
// @match https://play.prodigygame.com
// @icon none
// @grant none
// ==/UserScript==


function closeit(){
prodigydiv.remove()
}
setTimeout("closeit", 3000);
function FreeMembership(){
PIXI.game.prodigy.player.tt=true
}
function FreeAtSchool(){
PIXI.game.prodigy.classModeController.lockedZones=0
}
function TrialmastersGear() {
PIXI.game.prodigy.player.backpack.data.outfit.push({"N":999999,"ID":24});
PIXI.game.prodigy.player.backpack.data.boots.push({"N":999999,"ID":18});
PIXI.game.prodigy.player.backpack.data.hat.push({"N":999999,"ID":23});
PIXI.game.prodigy.player.backpack.data.weapon.push({"N":1,"ID":47});
}
function TeleportPlayer(e) {

e = e || window.event;

if (e.keyCode == '33') {
PIXI.game.prodigy.user.x=PIXI.game.input.mousePointer.position.x
PIXI.game.prodigy.user.y=PIXI.game.input.mousePointer.position.y
}
}
document.onkeydown = TeleportPlayer;
function setLevel() {
PIXI.game.prodigy.player.data.level = prompt("What level do you want to be?", "100");
}
function levelUpPets() {
for (let PetLoopTest = 0; PetLoopTest < PIXI.game.prodigy.player.kennel.data.length; PetLoopTest++) {
PIXI.game.prodigy.player.kennel.data[PetLoopTest].level=100
};
}
function setLocation() {
PIXI.game.prodigy.player.locationSelectionType = prompt("What will your location string be?", "your kitchen making a sandwich");
}
function setNickname() {
PIXI.game.state.states.Boot._gameData.nickname[PIXI.game.prodigy.player.name.nickname] = prompt("Set your clientside nickname (nobody else can see it but you) here.", "{first} {last}, but you can call me Einstein");
}
function getallItem() {
PIXI.game.prodigy.player.backpack.data.item=[]
x = PIXI.game.state.states.Boot._gameData.item
for (i in x) {
PIXI.game.prodigy.player.backpack.data.item[i] = {"ID": x[i].ID, "N": Infinity}
}
}
function getallCurrency() {
PIXI.game.prodigy.player.backpack.data.currency=[]
x = PIXI.game.state.states.Boot._gameData.currency
for (i in x) {
PIXI.game.prodigy.player.backpack.data.currency[i] = {"ID": x[i].ID, "N": Infinity}
}
}
function getallFollow() {
PIXI.game.prodigy.player.backpack.data.follow=[]
x = PIXI.game.state.states.Boot._gameData.follow
for (i in x) {
PIXI.game.prodigy.player.backpack.data.follow[i] = {"ID": x[i].ID, "N": Infinity}
}
}
var prodigydiv = document.createElement("prodigydiv");
prodigydiv.style.width = "100px";
prodigydiv.style.height = "100px";
prodigydiv.style.background = "red";
prodigydiv.style.color = "white";
prodigydiv.innerHTML = 'Close Free Membership 1,000,000 Coins Get All Pets Infinite Wheel SpinsEasy ModeEnable Mouse Teleport (hold down a key) Disable Mouse Teleport Unlock Zones at School Trialmaster GearLevel Up PetsSet LocationSet NicknameW12-4RD NicknameGet All BuddiesGet All Items

made by craftersshaft and EEvan at https://gist.github.com/craftersshaft/28c0cd66e6bdfde13ca9a5f3440559c9/

';

document.body.insertBefore(prodigydiv, document.body.firstChild);

§
Posted: 2022-05-10

how to make it work

§
Posted: 2023-01-25

}
},
{
name: "Send Glitch",
description: "Sends a glitch to everyone else playing",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
i.remove();
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
let glitches = { lb: "Lunch Break", as: "Ad Spam", e37: "Error 37", nt: "Night Time", lo: "#LOL", j: "Jokester", sm: "Slow Mo", dp: "Dance Party", v: "Vortex", r: "Reverse", f: "Flip", m: "Micro" };
let val = Object.keys(glitches)[Math.floor(Math.random() * Object.keys(glitches).length)];
stateNode.safe = true;
stateNode.props.liveGameController.setVal({ path: `c/${stateNode.props.client.name}/tat`, val });
alert(`Sent a ${glitches[val]} glitch`);
}
},
{
name: "Set All MegaBot",
description: "Sets all your blooks to maxed out Mega Bots",
run: function () {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({
blooks: new Array(10).fill({
name: "Mega Bot",
color: "#d71f27",
class: "🤖",
rarity: "Legendary",
cash: [8e4, 43e4, 42e5, 62e6, 1e9],
time: [5, 5, 3, 3, 3],
price: [7e6, 12e7, 19e8, 35e9],
active: false,
level: 4,
bonus: 5.5
})
});
}
},
{
name: "Set Cash",
description: "Sets amount of cash you have",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let cash = Number(parseInt(prompt("How much cash would you like?")));
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ cash });
}
}
],
fishing: [
{
name: "Frenzy",
description: "Sets everyone to frenzy mode",
run: function () {
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.props.liveGameController.setVal({
path: `c/${stateNode.props.client.name}`,
val: {
b: stateNode.props.client.blook,
w: stateNode.state.weight,
f: "Frenzy",
s: true
}
})
}
},
{
name: "Remove Distractions",
description: "Removes distractions",
type: "toggle",
enabled: false,
data: null,
run: function () {
if (!this.enabled) {
this.enabled = true;
this.data = setInterval(() => {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({ party: "" });
}, 50);
} else {
this.enabled = false;
clearInterval(this.data);
this.data = null;
}
}
},
{
name: "Send Distraction",
description: "Sends a distraction to everyone",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
i.remove();
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
const f = ["Crab", "Jellyfish", "Frog", "Pufferfish", "Octopus", "Narwhal", "Megalodon", "Blobfish", "Baby Shark"][Math.floor(Math.random() * 9)];
stateNode.safe = true;
stateNode.props.liveGameController.setVal({
path: `c/${stateNode.props.client.name}`,
val: {
b: stateNode.props.client.blook,
w: stateNode.state.weight, f, s: true
}
});
alert(`Sent a ${f} distraction`);
}
},
{
name: "Set Lure",
description: "Sets fishing lure (range 1 - 5)",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({ lure: Math.max(Math.min(Number(parseInt(prompt("What would you like to set your lure to? (1 - 5)"))) - 1, 4), 0) });
}
},
{
name: "Set Weight",
description: "Sets weight",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let weight = Number(parseInt(prompt("How much weight would you like?")));
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ weight, weight2: weight });
stateNode.props.liveGameController.setVal({
path: `c/${stateNode.props.client.name}`,
val: {
b: stateNode.props.client.blook,
w: weight,
f: ["Crab", "Jellyfish", "Frog", "Pufferfish", "Octopus", "Narwhal", "Megalodon", "Blobfish", "Baby Shark"][Math.floor(Math.random() * 9)]
}
});
}
}
],
flappy: [
{
name: "Toggle Ghost",
description: "Lets you go through the pipes",
type: "toggle",
enabled: false,
run: function () {
this.enabled = !this.enabled;
Object.values(document.querySelector("#phaser-bouncy"))[1].children[0]._owner.stateNode.state.game.scene.physics.world.bodies.entries.forEach(x => x.gameObject.frame.texture.key.startsWith("blook") && (x.checkCollision.none = this.enabled, x.gameObject.setAlpha(this.enabled ? 0.5 : 1)));
}
},
{
name: "Set Score",
description: "Sets flappy blook score",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
Object.values(document.querySelector("#phaser-bouncy"))[1].children[0]._owner.stateNode.setState({ score: parseFloat("0" + prompt("What do you want to set your score to?")) });
}
}
],
gold: [
{
name: "Auto Choose",
description: "Automatically picks the option that would give you the most gold",
type: "toggle",
enabled: false,
data: null,
run: function () {
if (!this.enabled) {
this.enabled = true;
this.data = setInterval(async () => {
try {
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
if (stateNode.state.stage !== "prize") return;
let players = stateNode.state.choices.some(({ type }) => ["swap", "take"].includes(type)) && Object.entries(await new Promise(r => stateNode.props.liveGameController.getDatabaseVal("c", r))).filter(x => x[0] != stateNode.props.client.name).map(x => x[1]);
let choices = stateNode.state.choices.map(({ type, val }) => {
switch (type) {
case "gold": return stateNode.state.gold + val || stateNode.state.gold || 0;
case "multiply":
case "divide": return Math.round(stateNode.state.gold * val) || stateNode.state.gold || 0;
case "swap": return Object.values(players).map(x => x.g).sort((a, b) => b - a)[0] || stateNode.state.gold || 0;
case "take": return stateNode.state.gold + (Object.values(players).map(x => x.g).sort((a, b) => b - a)[0] * val) || stateNode.state.gold || 0;
default: return stateNode.state.gold || 0;
}
});
for (let i = 0; i < choices.length; i++) if (choices[i] == choices.slice().sort((a, b) => b - a)[0]) document.querySelector(`div[class^='styles__choice${i + 1}']`).click();
} catch { }
}, 50)
} else {
this.enabled = false;
clearInterval(this.data);
this.data = null;
}
}
},
{
name: "Chest ESP",
description: "Shows what each chest will give you",
type: "toggle",
enabled: false,
data: null,
run: function () {
if (!this.enabled) {
this.enabled = true;
this.data = setInterval(() => {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.state.choices.forEach(({ text }, index) => {
let chest = document.querySelector(`div[class^='styles__choice${index + 1}']`);
if (!chest || chest.querySelector('div')) return;
let choice = document.createElement('div');
choice.style.color = "white";
choice.style.fontFamily = "Eczar";
choice.style.fontSize = "2em";
choice.style.display = "flex";
choice.style.justifyContent = "center";
choice.style.transform = "translateY(200px)";
choice.innerText = text;
chest.append(choice);
});
}, 50);
} else {
this.enabled = false;
clearInterval(this.data);
this.data = null;
}
}
},
{
name: "Reset Players Gold",
description: "Sets a player's gold to 0",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let player = prompt("Who's gold would you like to reset?");
let { stateNode: { props, state } } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.props.liveGameController.getDatabaseVal("c", (players) => {
if (players && Object.keys(players).map(x => x.toLowerCase()).includes(player.toLowerCase())) props.liveGameController.setVal({
path: "c/".concat(props.client.name),
val: {
b: props.client.blook,
g: state.gold,
tat: `${player}:swap:0`
}
});
})
}
},
{
name: "Set Gold",
description: "Sets amount of gold",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let gold = Number(parseInt(prompt("How much gold would you like?")));
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ gold, gold2: gold });
stateNode.props.liveGameController.setVal({
path: "c/".concat(stateNode.props.client.name),
val: {
b: stateNode.props.client.blook,
g: gold
}
});
}
},
{
name: "Swap Gold",
description: "Swaps gold with someone",
run: function () {
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.props.liveGameController.getDatabaseVal("c", (players) => {
stateNode.setState({
players: (players ? Object.entries(players).map(([name, { b, g }]) => ({
name, blook: b, gold: g || 0
})).filter((e) => e.name != stateNode.props.client.name).sort(({ gold }, { gold: gold2 }) => gold2 - gold) : []),
ready: true,
phaseTwo: true,
stage: "prize",
choiceObj: { type: "swap" }
});
});
}
},
{
name: "Reset All Players' Gold (Testing)",
description: "Set's everyone else's gold to 0",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
i.remove();
let { stateNode: { props, state } } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
let count = 0;
props.liveGameController.getDatabaseVal("c", async (players) => {
if (players) for (const player of Object.keys(players)) {
await props.liveGameController.setVal({
path: "c/".concat(props.client.name),
val: {
b: props.client.blook,
g: state.gold,
tat: `${player}:swap:0`
}
});
count++;
}
alert(`Reset ${count} players' gold!`);
})
}
}
],
kingdom: [
{
name: "Choice ESP",
description: "Shows you what will happen if you say Yes or No",
type: "toggle",
enabled: false,
data: null,
run: function () {
if (!this.enabled) {
this.enabled = true;
let stats = ['materials', 'people', 'happiness', 'gold'];
let elements = Object.fromEntries([...document.querySelectorAll('[class^=styles__statContainer]')].map((container, i) => [stats[i], container]));
this.data = setInterval(() => {
let { guest: data, phase } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.state;
if (phase == "choice") {
Array.from(document.getElementsByClassName('choiceESP')).forEach(x => x.remove());
Object.entries(data.yes || {}).forEach(x => {
if (x[0] == 'msg' || !stats.includes(x[0])) return;
let element = document.createElement('div');
element.className = 'choiceESP';
element.style = 'font-size: 24px; color: rgb(75, 194, 46); font-weight: bolder;';
element.innerText = String(x[1])
elements[x[0]].appendChild(element);
})
Object.entries(data.no || {}).forEach(x => {
if (x[0] == 'msg' || !stats.includes(x[0])) return;
let element = document.createElement('div');
element.className = 'choiceESP';
element.style = 'font-size: 24px; color: darkred; font-weight: bolder;';
element.innerText = String(x[1])
elements[x[0]].appendChild(element);
})
}
}, 50);
} else {
this.enabled = false;
clearInterval(this.data);
Array.from(document.getElementsByClassName('choiceESP')).forEach(x => x.remove());
this.data = null;
}
}
},
{
name: "Disable Tax Toucan",
description: "Tax evasion",
run: function () {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.taxCounter = Number.MAX_VALUE;
}
},
{
name: "Max Stats",
description: "Sets all resources to the max",
run: function () {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({ materials: 100, people: 100, happiness: 100, gold: 100 });
}
},
{
name: "Set Guests",
description: "Sets the amount of guests you've seen",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let guestScore = Number(parseInt(prompt("How many guests do you want?")));
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({ guestScore });
}
},
{
name: "Skip Guest",
description: "Skips the current guest",
run: function () {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.nextGuest();
}
}
],
racing: [{
name: "Instant Win",
description: "Instantly Wins the race",
run: function () {
const { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ progress: stateNode.state.goalAmount }, () => {
const { state: { question } } = stateNode;
try {
[...document.querySelectorAll(`[class*="answerContainer"]`)][question.answers.map((x, i) => question.correctAnswers.includes(x) ? i : null).filter(x => x != null)[0]]?.click?.();
} catch { }
});
}
}],
rush: [
{
name: "Set Blooks",
description: "Sets amount of blooks you or your team has",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let numBlooks = Number(parseInt(prompt("How many blooks do you want?")));
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ numBlooks });
stateNode.isTeam ? stateNode.props.liveGameController.setVal({
path: `a/${stateNode.props.client.name}/bs`,
val: numBlooks
}) : stateNode.props.liveGameController.setVal({
path: `c/${stateNode.props.client.name}/bs`,
val: numDefense
});
}
},
{
name: "Set Defense",
description: "Sets amount of defense you or your team has (Max 4)",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let numDefense = Math.min(Number(parseInt(prompt("How much defense do you want? (Max 4)"))), 4);
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ numDefense });
stateNode.isTeam ? stateNode.props.liveGameController.setVal({
path: `a/${stateNode.props.client.name}/d`,
val: numDefense
}) : stateNode.props.liveGameController.setVal({
path: `c/${stateNode.props.client.name}/d`,
val: numDefense
});
}
}
],
workshop: [
{
name: "Remove Distractions",
description: "Removes all enemy distractions",
run: function () {
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({ fog: !1, dusk: !1, wind: !1, plow: !1, blizzard: !1, force: !1, canada: !1, trees: [!1, !1, !1, !1, !1, !1, !1, !1, !1, !1] });
}
},
{
name: "Send Distraction",
description: "Sends a distraction to everyone else playing",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
i.remove();
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
let distractions = { c: "Oh Canada", b: "Blizzard", f: "Fog Spell", d: "Dark & Dusk", w: "Howling Wind", g: "Gift Time!", t: "TREES", s: "Snow Plow", fr: "Use The Force" };
let val = Object.keys(distractions)[Math.floor(Math.random() * Object.keys(distractions).length)];
stateNode.safe = true;
stateNode.props.liveGameController.setVal({ path: `c/${stateNode.props.client.name}/tat`, val });
alert(`Sent a ${distractions[val]} distraction`);
}
},
{
name: "Set Toys",
description: "Sets amount of toys",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
let toys = parseInt(prompt("How many toys would you like?"));
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.setState({ toys });
stateNode.props.liveGameController.setVal({
path: "c/".concat(stateNode.props.client.name),
val: {
b: stateNode.props.client.blook,
t: toys
}
});
}
},
{
name: "Set Toys Per Question",
description: "Sets amount of toys per question",
run: function () {
let i = document.createElement('iframe');
document.body.append(i);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner.stateNode.setState({ toysPerQ: parseInt(prompt("How many toys per question would you like?")) });
}
},
{
name: "Swap Toys",
description: "Swaps toys with someone",
run: function () {
let { stateNode } = Object.values(document.querySelector('#app > div > div'))[1].children[0]._owner;
stateNode.props.liveGameController.getDatabaseVal("c", (players) => {
stateNode.setState({
choosingPlayer: false,
players: (players ? Object.entries(players).map(([name, { b, t }]) => ({ name, blook: b, toys: t || 0 })).filter((e) => e.name != stateNode.props.client.name).sort(({ toys }, { toys: toys2 }) => toys2 - toys) : []),
phaseTwo: true,
stage: "prize",
choiceObj: { type: "swap" }
}, () => setTimeout(() => stateNode.setState({ choosingPlayer: true }), 300));
});
}
}
]
})// .map(x => [x[0], x[1].reduce((a, b) => (a[b.name] = b.run, a), {})]).reduce((a, [b, c]) => (a[b] = c, a), {});

let global = document.createElement('details');
global.innerHTML = (`

Global`);
for (let script of cheats.global) {
let cheat = createButton(script.name);
cheat.style.backgroundColor = script.type == "toggle" ? script.enabled ? "#47A547" : "#A02626" : "hsl(0, 0%, 20%)";
cheat.onclick = () => {
try {
script.run();
} finally {
cheat.style.backgroundColor = script.type == "toggle" ? script.enabled ? "#47A547" : "#A02626" : "hsl(0, 0%, 20%)";
/* // console.log(script); */
}
};
global.appendChild(cheat);
}
global.open = false;
global.style.paddingBottom = '10px';
body.appendChild(global);

let cheatDiv = document.createElement('div');
body.appendChild(cheatDiv);

console.log(cheats);
const setCheats = (curPage) => {
if (!curPage || !cheats[curPage]) return;
for (let cheat of cheats[curPage]) {
let button = createButton(cheat.name);
button.style.backgroundColor = cheat.type == "toggle" ? cheat.enabled ? "#47A547" : "#A02626" : "hsl(0, 0%, 20%)";
button.onclick = () => {
try {
cheat.run();
} finally {
button.style.backgroundColor = cheat.type == "toggle" ? cheat.enabled ? "#47A547" : "#A02626" : "hsl(0, 0%, 20%)";
/* // console.log(cheat); */
}
};
cheatDiv.appendChild(button);
cheatDiv.appendChild(document.createElement('br'));
}
}
setTimeout(() => setCheats(getSite()), 50);
var offLocationChange = onLocationChange(pathname => {
let curPage = getSite();
curPageEl.innerText = getSite(true) ? `Current gamemode: ${getSite(true)}` : 'No game detected';
cheatDiv.innerHTML = "";
setCheats(curPage);
});

function onLocationChange(handler) {
let current = window.location.pathname;
const interval = setInterval(() => {
if (window.location.pathname == current) return;
current = window.location.pathname;
handler(current);
}, 50);
return () => clearInterval(interval);
}

function createButton(cheat) {
let button = document.createElement('button');
button.classList.add('cheat');
button.innerText = cheat;
return button
}
function getSite(capitalize) {
switch (window.location.pathname) {
case "/play/racing":
return capitalize ? "Racing" : "racing";
case "/play/factory":
return capitalize ? "Factory" : "factory";
case "/play/classic/get-ready":
case "/play/classic/question":
case "/play/classic/answer/sent":
case "/play/classic/answer/result":
case "/play/classic/standings":
return capitalize ? "Classic" : "classic";
case "/play/battle-royale/match/preview":
case "/play/battle-royale/question":
case "/play/battle-royale/answer/sent":
case "/play/battle-royale/answer/result":
case "/play/battle-royale/match/result":
return capitalize ? "Battle Royale" : "royale";
case "/play/toy":
return capitalize ? "Santa's Workshop" : "workshop";
case "/play/gold":
return capitalize ? "Gold Quest" : "gold";
case "/play/brawl":
return capitalize ? "Monster Brawl" : "brawl";
case "/play/hack":
return capitalize ? "Crypto Hack" : "hack";
case "/play/fishing":
return capitalize ? "Fishing Frenzy" : "fishing";
case "/play/rush":
return capitalize ? "Blook Rush" : "rush";
case "/play/dino":
return capitalize ? "Deceptive Dinos" : "dino";
case "/tower/map":
case "/tower/battle":
case "/tower/rest":
case "/tower/risk":
case "/tower/shop":
case "/tower/victory":
return capitalize ? "Tower of Doom" : "doom";
case "/cafe":
case "/cafe/shop":
return capitalize ? "Cafe" : "cafe";
case "/defense":
return capitalize ? "Tower Defense" : "defense";
case "/kingdom":
return capitalize ? "Crazy Kingdom" : "kingdom";
default:
return false;
}
};
function toggleHidden(e) {
e.code == 'KeyE' && (GUI.hidden = !GUI.hidden)
};
addEventListener('keypress', toggleHidden);
})()
}
});
})();

Post reply

Sign in to post a reply.