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/takeDoubloons.min.js
Views: 1236
1
/* All terms found in the following link apply: https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE */ (()=>{let l=document.querySelector("iframe");l.contentWindow.console.log.call(window,"%c Blooket Cheats %c\n\tBy 05Konz on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),l.contentWindow.console.log.call(window,"%c\ttakeDoubloons.js","color: #0bc2cf; font-size: 1rem"),l.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 o=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"];e=Object.entries(await new Promise(e=>o.props.liveGameController.getDatabaseVal("c",e))).sort((e,o)=>o[1].d-e[1].d).filter(e=>e[0]!=o.props.client.name),e=e.find(e=>e[0]==prompt("Who would you like to take from? (Defaults to top player if no one found)"))||e[0];o.setState({doubloons:o.state.doubloons+e[1].d}),o.props.liveGameController.setVal({path:"c/"+o.props.client.name,val:{b:o.props.client.blook,d:e[1].d,tat:e[0]+":"+e[1].d}})};let s=new Image;s.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/voyage/takeDoubloons.png?"+Date.now(),s.crossOrigin="Anonymous",s.onload=function(){var e=document.createElement("canvas").getContext("2d");e.drawImage(s,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)<=1695484594702||l.contentWindow.alert(a))&&c()},s.onerror=s.onabort=()=>(s.src=null,c())})();
2