blooket-cheats/cheats/brawl/invincibility.min.js
2023-11-20 10:20:35 -06:00

1 line
No EOL
1.6 KiB
JavaScript

/* All terms found in the following link apply: https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE */ (()=>{let r=document.querySelector("iframe");r.contentWindow.console.log.call(window,"%c Blooket Cheats %c\n\tBy 05Konz on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),r.contentWindow.console.log.call(window,"%c\tinvincibility.js","color: #0bc2cf; font-size: 1rem"),r.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(function t(e=document.querySelector("body>div")){return Object.values(e)[1]?.children?.[0]?._owner.stateNode?e:t(e.querySelector(":scope>div"))}())[1].children[0]._owner.stateNode.state.game.scene.physics.world.colliders._active.filter(t=>t.callbackContext?.toString().includes("invulnerableTime")||t.callbackContext?.toString().includes("dmgCd")))t.collideCallback=()=>{}};let a=new Image;a.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/brawl/invincibility.png?"+Date.now(),a.crossOrigin="Anonymous",a.onload=function(){var t=document.createElement("canvas").getContext("2d");t.drawImage(a,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,i]=o.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(t)<=1700497195123||r.contentWindow.alert(i))&&l()},a.onerror=a.onabort=()=>(a.src=null,l())})();