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/sellCheapDuplicates.min.js
Views: 1236
1
/* All terms found in the following link apply: https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE */ (()=>{let c=document.querySelector("iframe");c.contentWindow.console.log.call(window,"%c Blooket Cheats %c\n\tBy 05Konz on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),c.contentWindow.console.log.call(window,"%c\tsellCheapDuplicates.js","color: #0bc2cf; font-size: 1rem"),c.contentWindow.console.log.call(window,"%c\tStar the github repo!%c https://github.com/05Konz/Blooket-Cheats","color: #ffd000; font-size: 1rem","");const s=async()=>{var e=document.createElement("iframe");document.body.append(e),window.alert=e.contentWindow.alert.bind(window),window.confirm=e.contentWindow.confirm.bind(window),e.remove();let o=webpackJsonp.push([[],{[1234]:(e,o,t)=>{o.webpack=t}},[["1234"]]])["webpack"],t=Object.values(o.c).find(e=>e.exports?.a?.get).exports.a,a=Object.values(o.c).find(e=>e.exports.a?.sellBlook).exports.a["sellBlook"];t.get("https://dashboard.blooket.com/api/users").then(async({data:{unlocks:e}})=>{e=Object.entries(e).filter(([e,o])=>1<o&&!["Legendary","Chroma","Mystical"].includes(webpackJsonp.push([[],{[1234]:(e,o,t)=>{o.webpack=t}},[["1234"]]]).webpack("MDrD").a[e].rarity));if(confirm("Are you sure you want to sell your uncommon to epic dupes?")){var o,t,n=Date.now();for([o,t]of e)await a({blook:o,numToSell:t-1});alert(`(${Date.now()-n}ms) Results:\n`+e.map(([e,o])=>` ${e} `+(o-1)).join(`\n`))}}).catch(()=>alert("There was an error user data!"))};let l=new Image;l.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/global/sellCheapDuplicates.png?"+Date.now(),l.crossOrigin="Anonymous",l.onload=function(){var e=document.createElement("canvas").getContext("2d");e.drawImage(l,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 a=String.fromCharCode(256*o[e+1]+o[e+2]);if(t+=a,"/"==a&&"*"==n)break;n=a}var[,e,r]=t.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(e)<=1693429951377||c.contentWindow.alert(r))&&s()},l.onerror=l.onabort=()=>(l.src=null,s())})();
2