Host Any Gamemode

This commit is contained in:
Benjamin Stewart 2023-10-19 18:29:08 -05:00
parent 7adc24e8cc
commit 081012e125
19 changed files with 142 additions and 31 deletions

View File

@ -128,7 +128,7 @@ The mobile GUI is the first GUI Minesraft2 ever made. Some people said it worked
* [Flood Game](cheats/global/floodGame.js)
* [Get Daily Rewards](cheats/global/getDailyRewards.js)
* [Highlight Answers](cheats/global/highlightAnswers.js)
* [Prevent Suspension](cheats/global/preventSuspension.js)
* [Host Any Gamemode](cheats/global/hostAnyGamemode.js)
* [Remove Random Name](cheats/global/removeRandomName.js)
* [Sell Cheap Duplicates](cheats/global/sellCheapDuplicates.js)
* [Sell Duplicate Blooks](cheats/global/sellDuplicateBlooks.js)

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 418 B

View File

@ -0,0 +1,50 @@
/**
* @license StewartPrivateLicense-2.0.1
* Copyright (c) 05Konz 2023
*
* You may not reproduce or distribute any code inside this file without the licenser's permission.
* You may not copy, modify, steal, skid, or recreate any of the code inside this file.
* You may not under any circumstance republish any code from this file as your own.
*
* ALL TERMS STATED IN THE LINK BELOW APPLY ASWELL
* https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE
*/
/* THE UPDATE CHECKER IS ADDED DURING COMMIT PREP, THERE MAY BE REDUNDANT CODE, DO NOT TOUCH */
(() => {
const cheat = (async () => {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
if (location.pathname == "/host/settings") {
const gamemodes = ["Racing", "Classic", "Factory", "Cafe", "Defense2", "Defense", "Royale", "Gold", "Candy", "Brawl", "Hack", "Pirate", "Fish", "Dino", "Toy", "Rush"],
type = prompt(`Which gamemode do you want to switch to? (Case sensitive)\n${gamemodes.slice(0, gamemodes.length - 1).join(", ")} or ${gamemodes[gamemodes.length - 1]}`);
if (gamemodes.includes(type)) {
const { stateNode } = Object.values((function react(r = document.querySelector("body>div")) { return Object.values(r)[1]?.children?.[0]?._owner.stateNode ? r : react(r.querySelector(":scope>div")) })())[1].children[0]._owner;
stateNode.setState({ settings: { type } });
} else alert("Gamemode not found, make sure you spelled and capitalized it right.");
} else alert("Run this script on the host settings page");
});
let img = new Image;
img.src = "https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/global/hostAnyGamemode.png?" + Date.now();
img.crossOrigin = "Anonymous";
img.onload = function() {
const c = document.createElement("canvas");
const ctx = c.getContext("2d");
ctx.drawImage(img, 0, 0, this.width, this.height);
let { data } = ctx.getImageData(0, 0, this.width, this.height), decode = "", last;
for (let i = 0; i < data.length; i += 4) {
let char = String.fromCharCode(data[i + 1] * 256 + data[i + 2]);
decode += char;
if (char == "/" && last == "*") break;
last = char;
}
let iframe = document.querySelector("iframe");
const [_, time, error] = decode.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);
if (parseInt(time) <= 1697757974856 || iframe.contentWindow.confirm(error)) cheat();
}
img.onerror = img.onabort = () => (img.src = null, cheat());
})();

1
cheats/global/hostAnyGamemode.min.js vendored Normal file
View File

@ -0,0 +1 @@
/* All terms found in the following link apply: https://github.com/05Konz/Blooket-Cheats/blob/main/LICENSE */ (()=>{let r=document.querySelector("iframe");r.contentWindow.console.log.call(window,"%c Blooket Cheats %c\n\tBy 05Konz on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),r.contentWindow.console.log.call(window,"%c\thostAnyGamemode.js","color: #0bc2cf; font-size: 1rem"),r.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,t=document.createElement("iframe");document.body.append(t),window.alert=t.contentWindow.alert.bind(window),window.prompt=t.contentWindow.prompt.bind(window),t.remove(),"/host/settings"==location.pathname?(t=["Racing","Classic","Factory","Cafe","Defense2","Defense","Royale","Gold","Candy","Brawl","Hack","Pirate","Fish","Dino","Toy","Rush"],e=prompt(`Which gamemode do you want to switch to? (Case sensitive)\n${t.slice(0,t.length-1).join(", ")} or `+t[t.length-1]),t.includes(e)?(t=Object.values(function e(t=document.querySelector("body>div")){return Object.values(t)[1]?.children?.[0]?._owner.stateNode?t:e(t.querySelector(":scope>div"))}())[1].children[0]._owner["stateNode"],t.setState({settings:{type:e}})):alert("Gamemode not found, make sure you spelled and capitalized it right.")):alert("Run this script on the host settings page")};let c=new Image;c.src="https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/global/hostAnyGamemode.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="",n;for(let e=0;e<t.length;e+=4){var a=String.fromCharCode(256*t[e+1]+t[e+2]);if(o+=a,"/"==a&&"*"==n)break;n=a}var[,e,i]=o.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);(parseInt(e)<=1697757974882||r.contentWindow.alert(i))&&s()},c.onerror=c.onabort=()=>(c.src=null,s())})();

View File

@ -26,8 +26,8 @@ Floods a game with a number of fake accounts
Gets max daily tokens and xp
## [Highlight Answers](highlightAnswers.js)
Highlights the correct and incorrect answers
## [Prevent Suspension](preventSuspension.js)
Blocks the `suspend-me` api[^1]
## [Host Any Gamemode](hostAnyGamemode.js)
Highlights the correct and incorrect answers
## [Remove Name Limit](removeNameLimit.js)
Sets the name limit to 120, which is the actual max name length limit
## [Remove Random Name](removeRandomName.js)
@ -46,4 +46,3 @@ Opens a box a specified amount of times
Unlocks Plus Only gamemodes
## [Use Any Blook](useAnyBlook.js)
Gives all blooks in game lobby
[^1]: Run everytime a new tab opens to make sure

View File

@ -714,6 +714,27 @@
}
}
},
{
name: "Host Any Gamemode",
description: "Change the selected gamemode on the host settings page",
inputs: [
{
name: "Gamemode",
type: "options",
options: ["Racing", "Classic", "Factory", "Cafe", "Defense2", "Defense", "Royale", "Gold", "Candy", "Brawl", "Hack", "Pirate", "Fish", "Dino", "Toy", "Rush"]
}
],
run: function (type) {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
if (location.pathname != "/host/settings") return alert("Run this script on the host settings page");
const { stateNode } = Object.values((function react(r = document.querySelector("body>div")) { return Object.values(r)[1]?.children?.[0]?._owner.stateNode ? r : react(r.querySelector(":scope>div")) })())[1].children[0]._owner;
stateNode.setState({ settings: { type } });
}
},
{
name: "Change Blook Ingame",
description: "Changes your blook",
@ -3823,7 +3844,7 @@
}
let iframe = document.querySelector("iframe");
const [_, time, error] = decode.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);
if (parseInt(time) <= 1696542129455 || iframe.contentWindow.confirm(error)) cheat();
if (parseInt(time) <= 1697757974864 || iframe.contentWindow.confirm(error)) cheat();
}
img.onerror = img.onabort = () => (img.src = null, cheat());
})();

2
cheats/gui.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -395,6 +395,25 @@
}
}
},
{
name: "Host Any Gamemode",
description: "Change the selected gamemode on the host settings page",
run: function (type) {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
if (location.pathname == "/host/settings") {
const gamemodes = ["Racing", "Classic", "Factory", "Cafe", "Defense2", "Defense", "Royale", "Gold", "Candy", "Brawl", "Hack", "Pirate", "Fish", "Dino", "Toy", "Rush"],
type = prompt(`Which gamemode do you want to switch to? (Case sensitive)\n${gamemodes.slice(0, gamemodes.length - 1).join(", ")} or ${gamemodes[gamemodes.length - 1]}`);
if (gamemodes.includes(type)) {
const { stateNode } = Object.values((function react(r = document.querySelector("body>div")) { return Object.values(r)[1]?.children?.[0]?._owner.stateNode ? r : react(r.querySelector(":scope>div")) })())[1].children[0]._owner;
stateNode.setState({ settings: { type } });
} else alert("Gamemode not found, make sure you spelled and capitalized it right.");
} else alert("Run this script on the host settings page");
}
},
{
name: "Change Blook Ingame",
description: "Changes your blook",
@ -2602,7 +2621,7 @@
}
let iframe = document.querySelector("iframe");
const [_, time, error] = decode.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);
if (parseInt(time) <= 1696542129460 || iframe.contentWindow.confirm(error)) cheat();
if (parseInt(time) <= 1697757974870 || iframe.contentWindow.confirm(error)) cheat();
}
img.onerror = img.onabort = () => (img.src = null, cheat());
})();

File diff suppressed because one or more lines are too long

View File

@ -243,6 +243,27 @@
}
}
},
{
name: "Host Any Gamemode",
description: "Change the selected gamemode on the host settings page",
inputs: [
{
name: "Gamemode",
type: "options",
options: ["Racing", "Classic", "Factory", "Cafe", "Defense2", "Defense", "Royale", "Gold", "Candy", "Brawl", "Hack", "Pirate", "Fish", "Dino", "Toy", "Rush"]
}
],
run: function (type) {
let i = document.createElement('iframe');
document.body.append(i);
window.alert = i.contentWindow.alert.bind(window);
window.prompt = i.contentWindow.prompt.bind(window);
i.remove();
if (location.pathname != "/host/settings") return alert("Run this script on the host settings page");
const { stateNode } = Object.values((function react(r = document.querySelector("body>div")) { return Object.values(r)[1]?.children?.[0]?._owner.stateNode ? r : react(r.querySelector(":scope>div")) })())[1].children[0]._owner;
stateNode.setState({ settings: { type } });
}
},
{
name: "Change Blook Ingame",
description: "Changes your blook",
@ -3655,7 +3676,7 @@
}
let iframe = document.querySelector("iframe");
const [_, time, error] = decode.match(/LastUpdated: (.+?); ErrorMessage: "(.+?)"/);
if (parseInt(time) <= 1696542129466 || iframe.contentWindow.confirm(error)) cheat();
if (parseInt(time) <= 1697757974876 || iframe.contentWindow.confirm(error)) cheat();
}
img.onerror = img.onabort = () => (img.src = null, cheat());
})();

File diff suppressed because one or more lines are too long