blooket-cheats/cheats/global/floodGame.min.js
2023-11-24 16:00:22 -06:00

1 line
No EOL
2.6 KiB
JavaScript

/* 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\tfloodGame.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 i=async()=>{var e=document.createElement("iframe"),e=(document.body.append(e),window.prompt=e.contentWindow.prompt.bind(window),window.alert=e.contentWindow.alert.bind(window),e.remove(),Object.values(webpackJsonp.push([[],{"":(e,t,o)=>{t.cache=o.c}},[[""]]]).cache));const s=e.find(e=>e.exports?.a?.get).exports.a,i=e.find(e=>e.exports?.a?.initializeApp).exports.a,c=Object.keys(e.find(e=>e.exports.a?.Black).exports.a);e.find(e=>e.exports?.a?.me).exports.a.me({}).then(async e=>{if(e.name)return alert("You are logged in, and using this script will suspend your account. Please log out if you wish to use this.");const n=prompt("Game ID:"),r=prompt("Name:"),t=parseInt(prompt("Amount:"));for(let e=1;e<=t;e++)(async()=>{var e=""+r+(Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)),{success:t,fbToken:o,fbShardURL:a}=(await s.put("https://fb.blooket.com/c/firebase/join",{id:n,name:e}))["data"];t&&(t=i.initializeApp({apiKey:"AIzaSyCA-cTOnX19f6LFnDVVsHXya3k6ByP_MnU",authDomain:"blooket-2020.firebaseapp.com",projectId:"blooket-2020",storageBucket:"blooket-2020.appspot.com",messagingSenderId:"741533559105",appId:"1:741533559105:web:b8cbb10e6123f2913519c0",measurementId:"G-S3H5NGN10Z",databaseURL:a},e),await(a=i.auth(t)).setPersistence(i.auth.Auth.Persistence.NONE).catch(console.error),await a.signInWithCustomToken(o).catch(console.error),await t.database().ref(n+"/c/"+e).set({b:c[Math.floor(Math.random()*c.length)]}),t.delete())})(),await new Promise(e=>setTimeout(e,100))})};let c=new Image;c.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/global/floodGame.png?"+Date.now(),c.crossOrigin="Anonymous",c.onload=function(){var e=document.createElement("canvas").getContext("2d");e.drawImage(c,0,0,this.width,this.height);let t=e.getImageData(0,0,this.width,this.height)["data"],o="",a;for(let e=0;e<t.length;e+=4){var n=String.fromCharCode(256*t[e+1]+t[e+2]);if(o+=n,"/"==n&&"*"==a)break;a=n}var[,e,r]=o.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(e)<=1700863175915||s.contentWindow.alert(r))&&i()},c.onerror=c.onabort=()=>(c.src=null,i())})();