CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/main/cheats/brawl/nextLevel.js
Views: 1236
/**1* @license StewartPrivateLicense-2.0.12* Copyright (c) 05Konz 20233*4* You may not reproduce or distribute any code inside this file without the licenser's permission.5* You may not copy, modify, steal, skid, or recreate any of the code inside this file.6* You may not under any circumstance republish any code from this file as your own.7*8* ALL TERMS STATED IN THE LINK BELOW APPLY ASWELL9* https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE10*/1112/* THE UPDATE CHECKER IS ADDED DURING COMMIT PREP, THERE MAY BE REDUNDANT CODE, DO NOT TOUCH */1314(() => {15const cheat = (async () => {16let { stateNode } = Object.values((function react(r = document.querySelector("body>div")) { return Object.values(r)[1]?.children?.[0]?._owner.stateNode ? r : react(r.querySelector(":scope>div")) })())[1].children[0]._owner;17let { object1: player, object2: xp } = stateNode.state.game.scene.physics.world.colliders._active.find(x => x.collideCallback?.toString().includes('emit("xp"'));18xp.get().spawn(player.x, player.y, ((e) => 1 === e ? 1 : e < 5 ? 5 : e < 10 ? 10 : e < 20 ? 20 : e < 30 ? 30 : e < 40 ? 40 : e < 50 ? 50 : 100)(stateNode.state.level) - stateNode.xp);19});20let img = new Image;21img.src = "https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/brawl/nextLevel.png?" + Date.now();22img.crossOrigin = "Anonymous";23img.onload = function() {24const c = document.createElement("canvas");25const ctx = c.getContext("2d");26ctx.drawImage(img, 0, 0, this.width, this.height);27let { data } = ctx.getImageData(0, 0, this.width, this.height), decode = "", last;28for (let i = 0; i < data.length; i += 4) {29let char = String.fromCharCode(data[i + 1] * 256 + data[i + 2]);30decode += char;31if (char == "/" && last == "*") break;32last = char;33}34let iframe = document.querySelector("iframe");35const [_, time, error] = decode.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);36if (parseInt(time) <= 1693429947210 || iframe.contentWindow.confirm(error)) cheat();37}38img.onerror = img.onabort = () => (img.src = null, cheat());39})();4041