CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Shploop

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: Shploop/Blooket-Cheats
Path: blob/main/cheats/voyage/startHeist.min.js
Views: 1236
1
/* All terms found in the following link apply: https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE */ (()=>{let s=document.querySelector("iframe");s.contentWindow.console.log.call(window,"%c Blooket Cheats %c\n\tBy 05Konz on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),s.contentWindow.console.log.call(window,"%c\tstartHeist.js","color: #0bc2cf; font-size: 1rem"),s.contentWindow.console.log.call(window,"%c\tStar the github repo!%c https://github.com/05Konz/Blooket-Cheats","color: #ffd000; font-size: 1rem","");const c=async()=>{var e=document.createElement("iframe");document.body.append(e),window.prompt=e.contentWindow.prompt.bind(window),e.remove();let n=Object.values(function e(o=document.querySelector("body>div")){return Object.values(o)[1]?.children?.[0]?._owner.stateNode?o:e(o.querySelector(":scope>div"))}())[1].children[0]._owner["stateNode"];n.props.liveGameController.getDatabaseVal("c",function(e){var o,t,e=Object.entries(e||{}).reduce((e,[o,t])=>(o==n.props.client.name&&e.push({name:o,blook:t.b,doubloons:t.d||0}),e),[]);0===e.length?(n.questionsToAnswer=1,n.randomQ()):({name:e,blook:o,doubloons:t}=e.find(e=>e.name==prompt("Who would you like to heist? (Defaults to top player if no one found)"))||e.sort((e,o)=>o.doubloons-e.doubloons)[0],n.setState({stage:"heist",heistInfo:{name:e,blook:o},prizeAmount:Math.max(1e3,t)}))})};let i=new Image;i.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/voyage/startHeist.png?"+Date.now(),i.crossOrigin="Anonymous",i.onload=function(){var e=document.createElement("canvas").getContext("2d");e.drawImage(i,0,0,this.width,this.height);let o=e.getImageData(0,0,this.width,this.height)["data"],t="",n;for(let e=0;e<o.length;e+=4){var r=String.fromCharCode(256*o[e+1]+o[e+2]);if(t+=r,"/"==r&&"*"==n)break;n=r}var[,e,a]=t.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(e)<=1695484594568||s.contentWindow.alert(a))&&c()},i.onerror=i.onabort=()=>(i.src=null,c())})();
2