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/global/sellDuplicateBlooks.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\tsellDuplicateBlooks.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 o=document.createElement("iframe");document.body.append(o),window.alert=o.contentWindow.alert.bind(window),window.confirm=o.contentWindow.confirm.bind(window),o.remove();let e=webpackJsonp.push([[],{[1234]:(o,e,t)=>{e.webpack=t}},[["1234"]]])["webpack"],t=Object.values(e.c).find(o=>o.exports?.a?.get).exports.a,a=Object.values(e.c).find(o=>o.exports.a?.sellBlook).exports.a["sellBlook"];t.get("https://dashboard.blooket.com/api/users").then(async({data:{unlocks:o}})=>{o=Object.entries(o).filter(o=>1<o[1]);if(confirm("Are you sure you want to sell your dupes?")){var e,t,n=Date.now();for([e,t]of o)await a({blook:e,numToSell:t-1});alert(`(${Date.now()-n}ms) Results:\n`+o.map(([o,e])=>` ${o} `+(e-1)).join(`\n`))}}).catch(o=>(alert("There was an error user data!"),console.info(o)))};let s=new Image;s.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/global/sellDuplicateBlooks.png?"+Date.now(),s.crossOrigin="Anonymous",s.onload=function(){var o=document.createElement("canvas").getContext("2d");o.drawImage(s,0,0,this.width,this.height);let e=o.getImageData(0,0,this.width,this.height)["data"],t="",n;for(let o=0;o<e.length;o+=4){var a=String.fromCharCode(256*e[o+1]+e[o+2]);if(t+=a,"/"==a&&"*"==n)break;n=a}var[,o,r]=t.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(o)<=1693429951412||l.contentWindow.alert(r))&&c()},s.onerror=s.onabort=()=>(s.src=null,c())})();
2