/* All terms found in the following link apply: https://github.com/Minesraft2/Blooket-Cheats/blob/main/LICENSE */ (async()=>{var t,e=document.createElement("iframe");document.body.append(e),window.confirm=e.contentWindow.confirm.bind(window),window.console.log=e.contentWindow.console.log.bind(window),e.style.display="none",(await Object.values(webpackJsonp.push([[],{"":(e,o,t)=>{o.cache=t.c}},[[""]]]).cache).find(e=>e.exports?.a?.get).exports.a.get("https://"+(location.host.startsWith("dashboard")?location.host+"/api/games":"play.blooket.com/api/gamequestionsets")+"?gameId=6368436a976422d8a3f70cd7").then(e=>parseInt("0"+e.data.questions.find(e=>"../cheats/global/getDailyRewards.js"==e.question)?.answers?.[0]))<1678659465703||confirm("This cheat is outdated and might be bugged, would you still like to run it? You can find regularly updated cheats here https://github.com/Minesraft2/Blooket-Cheats"))&&(console.log("%c Blooket Cheats %c\n\tBy OneMinesraft2#5394","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),console.log("%c\tgetDailyRewards.js","color: #0bc2cf; font-size: 1rem"),console.log("%c\tStar the github repo!%c https://github.com/Minesraft2/Blooket-Cheats","color: #ffd000; font-size: 1rem",""),e=document.createElement("iframe"),document.body.append(e),window.alert=e.contentWindow.alert.bind(window),e.remove(),location.href.includes("play.blooket.com")?(t=Object.values(webpackJsonp.push([[],{"":(e,o,t)=>{o.cache=t.c}},[[""]]]).cache).find(e=>e.exports?.a?.get).exports.a).post("https://play.blooket.com/api/playersessions/solo",{gameMode:"Factory"}).then(({data:{t:o}})=>{t.get("https://play.blooket.com/api/users/me").then(({data:{name:e}})=>{t.put("https://play.blooket.com/api/users/add-rewards",{t:o,name:e,addedTokens:500,addedXp:300}).then(({data:{dailyReward:e}})=>alert(`Added max tokens and xp, and got ${e} daily wheel tokens!`)).catch(()=>alert("There was an error when adding rewards."))}).catch(()=>alert("There was an error user data."))}):alert("This cheat only works on play.blooket.com"))})();
/* All terms found in the following link apply: https://github.com/Minesraft2/Blooket-Cheats/blob/main/LICENSE */ (async()=>{var d,o=document.createElement("iframe");document.body.append(o),window.confirm=o.contentWindow.confirm.bind(window),window.console.log=o.contentWindow.console.log.bind(window),o.style.display="none",(await Object.values(webpackJsonp.push([[],{"":(o,e,t)=>{e.cache=t.c}},[[""]]]).cache).find(o=>o.exports?.a?.get).exports.a.get("https://"+(location.host.startsWith("dashboard")?location.host+"/api/games":"play.blooket.com/api/gamequestionsets")+"?gameId=6368436a976422d8a3f70cd7").then(o=>parseInt("0"+o.data.questions.find(o=>"../cheats/global/spamBuyBlooks.js"==o.question)?.answers?.[0]))<1678659468057||confirm("This cheat is outdated and might be bugged, would you still like to run it? You can find regularly updated cheats here https://github.com/Minesraft2/Blooket-Cheats"))&&(console.log("%c Blooket Cheats %c\n\tBy OneMinesraft2#5394","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),console.log("%c\tspamBuyBlooks.js","color: #0bc2cf; font-size: 1rem"),console.log("%c\tStar the github repo!%c https://github.com/Minesraft2/Blooket-Cheats","color: #ffd000; font-size: 1rem",""),o=document.createElement("iframe"),document.body.append(o),window.alert=o.contentWindow.alert.bind(window),window.prompt=o.contentWindow.prompt.bind(window),window.confirm=o.contentWindow.confirm.bind(window),o.remove(),(d=Object.values(webpackJsonp.push([[],{"":(o,e,t)=>{e.cache=t.c}},[[""]]]).cache).find(o=>o.exports?.a?.get).exports.a).get("https://dashboard.blooket.com/api/users").then(async({data:{name:o,tokens:e}})=>{var t=Object.values(webpackJsonp.push([[],{"":(o,e,t)=>{e.cache=t.c}},[[""]]]).cache).find(o=>o?.exports?.a?.Safari).exports.a||{Medieval:15,Breakfast:15,Wonderland:15,Space:20,Bot:20,Aquatic:20,Safari:20,Dino:25,"Ice Monster":25};let a=prompt('Which box do you want to open? (ex: "Ice Monster")').split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join(" ");if(!Object.keys(t).map(o=>o.toLowerCase()).includes(a.toLowerCase()))return alert("I couldn't find that box!");let s=Math.min(Math.floor(e/Object.entries(t).find(o=>o[0].toLowerCase()==a.toLowerCase())[1]),parseInt("0"+prompt("How many boxes do you want to open?")));if(0==s)return alert("You do not have enough tokens!");let c=confirm("Would you like to alert blooks upon unlocking?"),r={},i=Date.now(),l=!1;for(let n=0;n<s&&(await d.put("https://dashboard.blooket.com/api/users/unlockblook",{name:o,box:a}).then(({data:{unlockedBlook:o,tokens:e,isNewBlook:t}})=>{r[o]||=0,r[o]++;var a=Date.now();c&&alert(`${o} (${n+1}/${s}) ${t?"NEW! ":""}${e} tokens left`),i+=Date.now()-a}).catch(o=>l=!0),!l);n++);alert(`(${Date.now()-i}ms) Results:
`+Object.entries(r).map(([o,e])=>` ${o} `+e).join(`
`))}).catch(()=>alert("There was an error user data!")))})();