Blooket-Cheats/cheats/brawl/invincibility.min.js

1 line
1.4 KiB
JavaScript

/* All terms found in the following link apply: https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE */ (()=>{let i=document.querySelector("iframe");i.contentWindow.console.log.call(window,"%c Blooket Cheats %c\n\tBy 05Konz on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),i.contentWindow.console.log.call(window,"%c\tinvincibility.js","color: #0bc2cf; font-size: 1rem"),i.contentWindow.console.log.call(window,"%c\tStar the github repo!%c https://github.com/05Konz/Blooket-Cheats","color: #ffd000; font-size: 1rem","");const l=async()=>{for(const t of Object.values(document.querySelector('body div[class*="camelCase"]'))[1].children[0]._owner.stateNode.state.game.scene.physics.world.colliders._active.filter(t=>t.callbackContext?.toString().includes("invulnerableTime")))t.collideCallback=()=>{}};let r=new Image;r.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/brawl/invincibility.png?"+Date.now(),r.crossOrigin="Anonymous",r.onload=function(){var t=document.createElement("canvas").getContext("2d");t.drawImage(r,0,0,this.width,this.height);let e=t.getImageData(0,0,this.width,this.height)["data"],o="",n;for(let t=0;t<e.length;t+=4){var c=String.fromCharCode(256*e[t+1]+e[t+2]);if(o+=c,"/"==c&&"*"==n)break;n=c}var[,t,a]=o.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(t)<=1692656146628||i.contentWindow.alert(a))&&l()},r.onerror=r.onabort=()=>(r.src=null,l())})();