Blooket Hacks

hack blooket

当前为 2024-05-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Blooket Hacks
  3. // @namespace http://tampermonkey.net/
  4. // @license licenced by the owner of the script on github
  5. // @version 1.0
  6. // @description hack blooket
  7. // @author BANANA CAT
  8. // @match *://*.blooket.com/*
  9. // @match *://blooket.com/*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17.  
  18. (() => {
  19. const cheat = (async () => {
  20. if (String(Function.prototype.call).includes('native')) {
  21. let call = Function.prototype.call;
  22. let iframe = document.createElement("iframe");
  23. document.body.append(iframe);
  24. iframe.style.display = "none";
  25. let funcs = {
  26. querySelectorAll: function () {
  27. if (["#JODGUI", "#JODMOBILE", "#currPageEl", "#YTRkNmM2MWEtOTg3Zi00YmE1LWI1NzUtNTgyOTUzMWI4ZDYx", "#ODJkMThlMDEtYmEwNi00MzE4LTg4ZGMtM2Y2ZDI0MzY4ZjU2", ".cheatList", ".cheatName", "bG1mYW8=", "#aXQncyBjYXQgYW5kIG1vdXNlIGF0IHRoaXMgcG9pbnQ"].includes(arguments[0]))
  28. return [];
  29. return iframe.contentDocument.querySelectorAll.apply(document, arguments);
  30. },
  31. querySelector: iframe.contentDocument.querySelector.bind(document),
  32. includes: function () {
  33. if (["Cheats", "Global", "Global Cheats", "Discord - oneminesraft2", "Auto Answer (Toggle)", "Auto Sell Dupes On Open", "Spam Buy Blooks", "Food Game", "Change Blook Ingame", "Get Daily Rewards", "Remove Name Limit", "Simulate Unlock", "Cheat ESP", "Gold Quest Cheats", "Cafe Cheats", "Crypto Hack Cheats", "Deceptive Dinos Cheats", "Tower Defense Cheats", "Tower Defense2 Cheats", "Factory Cheats", "Fishing Frenzy Cheats", "Flappy Blook Cheats", "Tower of Doom Cheats", "Crazy Kingdom Cheats", "Racing Cheats", "Battle Royale Cheats", "Blook Rush Cheats", "Monster Brawl Cheats", "Santa's Workshop Cheats"].includes(arguments[0]))
  34. return false;
  35. return iframe.contentWindow.String.prototype.call(this, arguments);
  36. },
  37. fetch: iframe.contentWindow.fetch.bind(window),
  38. btoa: iframe.contentWindow.btoa.bind(window),
  39. getItem: iframe.contentWindow.localStorage.getItem.bind(window.localStorage)
  40. }, funcNames = Object.keys(funcs);
  41. Function.prototype.call = function () {
  42. if (funcNames.includes(this.name)) return call.apply(funcs[this.name], arguments);
  43. return call.apply(this, arguments)
  44. }
  45. ; (new Image).src = "https://gui-logger.onrender.com/gui/1?" + Date.now();
  46. }
  47. function createElement(node, props = {}, ...children) {
  48. const element = document.createElement(node);
  49. if (typeof props.style == "object") {
  50. let result = "";
  51. for (const style in props.style) result += `${style.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`)}: ${props.style[style]}; `;
  52. props.style = result;
  53. }
  54. for (const prop in props) element[prop] = props[prop];
  55. for (const child of children) element.append(child);
  56. return element;
  57. }
  58. let settings, settingsKey = "05konzWasHere";
  59. const Settings = {
  60. data: null,
  61. setItem(k, v) {
  62. k.split('.').reduce((obj, k, i, a) => (++i == a.length && (obj[k] = v), obj[k]), this.data);
  63. localStorage.setItem(settingsKey, JSON.stringify(this.data));
  64. return this.data;
  65. },
  66. deleteItem(k) {
  67. k.split('.').reduce((obj, k, i, a) => (++i == a.length && (delete obj[k]), obj[k]), this.data);
  68. localStorage.setItem(settingsKey, JSON.stringify(this.data));
  69. return this.data;
  70. },
  71. setData(v) {
  72. this.data = v;
  73. localStorage.setItem(settingsKey, JSON.stringify(this.data));
  74. }
  75. }
  76. try {
  77. Settings.data = JSON.parse(localStorage.getItem(settingsKey) || "{}");
  78. for (const setting of ["backgroundColor", "cheatList", "contentBackground", "defaultButton", "disabledButton", "enabledButton", "infoColor", "inputColor", "textColor"]) if (Settings.data[setting]) {
  79. Settings.setItem(`theme.${setting}`, Settings.data[setting]);
  80. Settings.deleteItem(setting);
  81. }
  82. } catch {
  83. Settings.setData({});
  84. }
  85. let variables, gui, cheatContainer, controls, controlButtons, dragButton, content, tooltip, cheats, headerText;
  86. const guiWrapper = createElement("div", {
  87. style: {
  88. top: `${(Math.max(10, window.innerHeight - 600) / 2)}px`,
  89. left: `${(Math.max(10, window.innerWidth - 1000) / 2)}px`,
  90. transform: `scale(${Settings.data.scale})`,
  91. position: "fixed", height: "80%", width: "80%", maxHeight: "600px", maxWidth: "1000px", zIndex: "999", display: "block",
  92. }
  93. },
  94. (variables = createElement("style", {
  95. id: "variables",
  96. innerHTML: `:root {--backgroundColor: ${Settings.data?.theme?.backgroundColor || "rgb(11, 194, 207)"};--infoColor: ${Settings.data?.theme?.infoColor || "#9a49aa"};--cheatList: ${Settings.data?.theme?.cheatList || "#9a49aa"};--defaultButton: ${Settings.data?.theme?.defaultButton || "#9a49aa"};--disabledButton: ${Settings.data?.theme?.disabledButton || "#A02626"};--enabledButton: ${Settings.data?.theme?.enabledButton || "#47A547"};--textColor: ${Settings.data?.theme?.textColor || "white"};--inputColor: ${Settings.data?.theme?.inputColor || "#7a039d"};--contentBackground: ${Settings.data?.theme?.contentBackground || "rgb(64, 17, 95)"};}`
  97. })),
  98. createElement("style", {
  99. innerHTML: `.alertList::-webkit-scrollbar{display:none;}.alertList{-ms-overflow-style: none;scrollbar-width: none;}.contentWrapper::-webkit-scrollbar{display:none;}.contentWrapper{-ms-overflow-style: none;scrollbar-width: none;}.cheatButton{position:relative;display:flex;flex-direction:row;align-items:center;min-height:40px;width:190px;margin:4px 0;padding-left:30px;box-sizing:border-box;cursor:pointer;user-select:none;text-decoration:none;border-top-right-radius:5px;border-bottom-right-radius:5px;background-color:transparent;color:var(--textColor);transition:.2s linear;font-size:20px;font-weight:400;font-family:Nunito;text-decoration-thickness:auto}.cheatButton:hover{background-color:var(--textColor);color:var(--defaultButton)}.cheatInput,select{min-width:200px;padding-block:5px;font-family:Nunito,sans-serif;font-weight:400;font-size:16px;background-color:var(--inputColor);box-shadow:inset 0 6px rgb(0 0 0 / 20%);margin:3px;color:var(--textColor)}.bigButton:hover{filter:brightness(110%);transform:translateY(-2px)}.bigButton:active{transform:translateY(2px)}.cheatList::-webkit-scrollbar{width:10px}.cheatList::-webkit-scrollbar-track{background:var(--cheatList)}.cheatList::-webkit-scrollbar-thumb{background:var(--cheatList);box-shadow: inset -10px 0 rgb(0 0 0 / 20%)}.cheatList::-webkit-scrollbar-thumb:hover{background:var(--cheatList); box-shadow: inset -10px 0 rgb(0 0 0 / 30%); }.scriptButton:hover{filter:brightness(120%)}.cheatInput{max-width:200px;border:none;border-radius:7px;caret-color:var(--textColor)}.cheatInput::placeholder{color:var(--textColor)}.cheatInput:focus,select:focus{outline:0}.cheatInput::-webkit-inner-spin-button,.cheatInput::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.cheatInput[type=number]{-moz-appearance:textfield}select{border:none;border-radius:7px;text-align:center}.scriptButton{align-items: center; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; margin: 10px; padding: 5px 5px 11px; position: relative; width: 250px; font-family: Nunito, sans-serif; font-weight: 400; color: var(--textColor); box-shadow: inset 0 -6px rgb(0 0 0 / 20%); border-radius: 7px; cursor: pointer; transition: filter .25s;}.tooltip::after {content: "";position: absolute;width: 10px;height: 10px;background-color: inherit;top: -5px;left: 50%;margin-left: -6px;transform: rotate(135deg)}`
  100. }),
  101. (gui = createElement("div", {
  102. style: {
  103. width: "100%",
  104. height: "100%",
  105. position: "relative",
  106. outline: "3px solid #3a3a3a",
  107. borderRadius: "15px",
  108. overflow: "hidden"
  109. }
  110. },
  111. createElement("div", {
  112. id: "background",
  113. style: {
  114. display: "block",
  115. top: "0",
  116. left: "0",
  117. height: "100%",
  118. overflowY: "hidden",
  119. overflowX: "hidden",
  120. position: "absolute",
  121. width: "100%",
  122. background: "var(--backgroundColor)",
  123. visibility: "visible"
  124. }
  125. },
  126. createElement("div", {
  127. id: "backgroundImage",
  128. style: {
  129. backgroundImage: "url(https://ac.blooket.com/dashboard/65a43218fd1cabe52bdf1cda34613e9e.png)",
  130. display: "block",
  131. height: "200%",
  132. position: "absolute",
  133. width: "200%",
  134. top: "50%",
  135. left: "50%",
  136. backgroundPositionX: "-100px",
  137. backgroundPositionY: "-100px",
  138. backgroundSize: "550px",
  139. visibility: "visible",
  140. transform: "translate(-50%,-50%) rotate(15deg)",
  141. appearance: "none",
  142. opacity: "0.175"
  143. }
  144. })),
  145. (controls = createElement("div", {
  146. id: "controls",
  147. style: {
  148. display: "flex",
  149. alignItems: "center",
  150. justifyContent: "center",
  151. paddingBottom: "8px",
  152. paddingInline: "15px",
  153. position: "absolute",
  154. left: "220px",
  155. top: "0",
  156. visibility: "visible",
  157. zIndex: "5",
  158. height: "52px",
  159. width: "max-content",
  160. background: "var(--infoColor)",
  161. boxShadow: "inset 0 -8px rgb(0 0 0 / 20%), 0 0 4px rgb(0 0 0 / 15%)",
  162. borderBottomRightRadius: "10px",
  163. color: "var(--textColor)",
  164. fontFamily: "Nunito, sans-serif",
  165. fontWeight: "700",
  166. userSelect: "text"
  167. },
  168. innerText: (({ ctrl: ctrlHide, shift: shiftHide, alt: altHide, key: keyHide } = { ctrl: true, key: "e" }, { ctrl: ctrlClose, shift: shiftClose, alt: altClose, key: keyClose } = { ctrl: true, key: "x" }) => `${[ctrlHide && "Ctrl", shiftHide && "Shift", altHide && "Alt", keyHide && keyHide.toUpperCase()].filter(Boolean).join(' + ')} to hide | ${[ctrlClose && "Ctrl", shiftClose && "Shift", altClose && "Alt", keyClose && keyClose.toUpperCase()].filter(Boolean).join(' + ')} for quick disable\nClick and drag here`)(Settings.data.hide || { ctrl: true, key: "e" }, Settings.data.close || { ctrl: true, key: "x" }),
  169. update: (({ ctrl: ctrlHide, shift: shiftHide, alt: altHide, key: keyHide } = { ctrl: true, key: "e" }, { ctrl: ctrlClose, shift: shiftClose, alt: altClose, key: keyClose } = { ctrl: true, key: "x" }) => controls.innerText = `${[ctrlHide && "Ctrl", shiftHide && "Shift", altHide && "Alt", keyHide && keyHide.toUpperCase()].filter(Boolean).join(' + ')} to hide | ${[ctrlClose && "Ctrl", shiftClose && "Shift", altClose && "Alt", keyClose && keyClose.toUpperCase()].filter(Boolean).join(' + ')} for quick disable\nClick and drag here`)
  170. })),
  171. createElement("div", {
  172. id: "credits",
  173. style: {
  174. display: "flex",
  175. alignItems: "center",
  176. justifyContent: "center",
  177. paddingBottom: "8px",
  178. position: "absolute",
  179. right: "0",
  180. top: "0",
  181. visibility: "visible",
  182. zIndex: "5",
  183. height: "47px",
  184. width: "210px",
  185. background: "var(--infoColor)",
  186. boxShadow: "inset 0 -8px rgb(0 0 0 / 20%), 0 0 4px rgb(0 0 0 / 15%)",
  187. borderBottomLeftRadius: "10px",
  188. color: "var(--textColor)",
  189. fontFamily: "Nunito, sans-serif",
  190. fontWeight: "700",
  191. userSelect: "text"
  192. },
  193. innerHTML: "GitHub - 05Konz",
  194. onclick: () => window.open("https://github.com/05Konz2/Blooket-Cheats", "_blank").focus()
  195. }),
  196. (controlButtons = createElement("div", {
  197. id: "controlButtons",
  198. style: {
  199. display: "flex",
  200. alignItems: "center",
  201. justifyContent: "center",
  202. position: "absolute",
  203. right: "0",
  204. bottom: "0",
  205. visibility: "visible",
  206. zIndex: "5",
  207. height: "55px",
  208. width: "165px",
  209. background: "#none",
  210. borderLeft: "3px solid black",
  211. borderTop: "3px solid black",
  212. borderTopLeftRadius: "10px",
  213. color: "white",
  214. fontFamily: "Nunito, sans-serif",
  215. fontWeight: "700",
  216. userSelect: "text",
  217. overflow: "hidden",
  218. pointerEvents: "all"
  219. }
  220. },
  221. (dragButton = createElement("button", {
  222. style: {
  223. height: "55px",
  224. width: "55px",
  225. fontFamily: "Nunito",
  226. color: "white",
  227. backgroundColor: "#00a0ff",
  228. border: "none",
  229. fontSize: "2rem",
  230. cursor: "move"
  231. },
  232. innerHTML: "✥"
  233. })),
  234. createElement("button", {
  235. style: {
  236. height: "55px",
  237. width: "55px",
  238. fontFamily: "Nunito",
  239. color: "white",
  240. backgroundColor: "grey",
  241. border: "none",
  242. fontSize: "2rem",
  243. fontWeight: "bolder",
  244. cursor: "pointer"
  245. },
  246. innerHTML: "-",
  247. onclick: (function () {
  248. let hidden = false;
  249. return () => {
  250. for (let child of [...gui.children]) {
  251. if (child == controlButtons) continue;
  252. if (hidden) child.style.display = child.style._display;
  253. else {
  254. child.style._display = child.style.display;
  255. child.style.display = "none";
  256. }
  257. };
  258. gui.style.height = hidden ? "100%" : "55px";
  259. gui.style.width = hidden ? "100%" : "165px";
  260. guiWrapper.style.top = `${parseInt(guiWrapper.style.top) + (guiWrapper.offsetHeight - 55) * (hidden ? -1 : 1)}px`;
  261. guiWrapper.style.left = `${parseInt(guiWrapper.style.left) + (guiWrapper.offsetWidth - 165) * (hidden ? -1 : 1)}px`;
  262. guiWrapper.style.pointerEvents = hidden ? "unset" : "none";
  263. hidden = !hidden;
  264. };
  265. })()
  266. }),
  267. createElement("button", {
  268. style: {
  269. height: "55px",
  270. width: "55px",
  271. fontFamily: "Nunito",
  272. color: "white",
  273. backgroundColor: "red",
  274. border: "none",
  275. fontSize: "2rem",
  276. fontWeight: "bolder",
  277. cursor: "pointer"
  278. },
  279. innerHTML: "X",
  280. onclick: close
  281. }))),
  282. (cheatContainer = createElement("div", {
  283. className: "cheatList",
  284. style: {
  285. overflowY: "scroll",
  286. background: "var(--cheatList)",
  287. boxShadow: "inset -10px 0 rgb(0 0 0 / 20%)",
  288. zIndex: "5",
  289. width: "220px",
  290. position: "absolute",
  291. top: "0",
  292. left: "0",
  293. height: "100%",
  294. fontFamily: "Titan One",
  295. color: "var(--textColor)",
  296. fontSize: "40px",
  297. textAlign: "center",
  298. paddingTop: "20px",
  299. userSelect: "none",
  300. padding: "20px 10px 20px 0",
  301. boxSizing: "border-box",
  302. display: "flex",
  303. flexDirection: "column"
  304. },
  305. innerHTML: "<span style=\"text-shadow: 1px 1px rgb(0 0 0 / 40%)\">Cheats</span>"
  306. },
  307. createElement("a", {
  308. className: "bigButton",
  309. style: {
  310. cursor: "pointer",
  311. display: "block",
  312. fontFamily: "Titan One",
  313. margin: "20px auto 10px",
  314. position: "relative",
  315. transition: ".25s",
  316. textDecoration: "none",
  317. userSelect: "none",
  318. visibility: "visible"
  319. },
  320. target: "_blank",
  321. href: "https://discord.gg/jHjGrrdXP6",
  322. innerHTML: `<div style="background: rgba(0,0,0,.25); border-radius: 5px; display: block; width: 100%; height: 100%; left: 0; top: 0; position: absolute; transform: translateY(2px); width: 100%; transition: transform .6s cubic-bezier(.3,.7,.4,1)"></div>
  323. <div style="background-color: rgb(11, 194, 207); filter: brightness(.7); position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 5px;"></div>
  324. <div style="font-weight: 400; background-color: rgb(11, 194, 207); color: white; display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: center; padding: 5px; border-radius: 5px; transform: translateY(-4px); transition: transform .6s cubic-bezier(.3,.7,.4,1)">
  325. <div style="font-family: Titan One, sans-serif; color: white; font-size: 26px; text-shadow: 2px 2px rgb(0 0 0 / 20%); height: 40px; padding: 0 15px; display: flex; flex-direction: row; align-items: center; justify-content: center">
  326. <svg style="filter: drop-shadow(2px 2px 0 rgb(0 0 0 / 20%))" xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="currentColor" viewBox="0 -1 21 16">
  327. <path d="M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.19 12.19 0 0 0-3.658 0 8.258 8.258 0 0 0-.412-.833.051.051 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.041.041 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032c.001.014.01.028.021.037a13.276 13.276 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019c.308-.42.582-.863.818-1.329a.05.05 0 0 0-.01-.059.051.051 0 0 0-.018-.011 8.875 8.875 0 0 1-1.248-.595.05.05 0 0 1-.02-.066.051.051 0 0 1 .015-.019c.084-.063.168-.129.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.052.052 0 0 1 .053.007c.08.066.164.132.248.195a.051.051 0 0 1-.004.085 8.254 8.254 0 0 1-1.249.594.05.05 0 0 0-.03.03.052.052 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.235 13.235 0 0 0 4.001-2.02.049.049 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.034.034 0 0 0-.02-.019Zm-8.198 7.307c-.789 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612Zm5.316 0c-.788 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612Z"/>
  328. </svg>
  329. Discord
  330. </div>
  331. </div>`
  332. }))), createElement("div", {
  333. className: "contentWrapper",
  334. style: {
  335. position: "absolute",
  336. left: "220px",
  337. top: "70px",
  338. overflowY: "scroll",
  339. width: "calc(100% - 220px)",
  340. height: "calc(100% - 70px)",
  341. borderRadius: "7px"
  342. }
  343. },
  344. (content = createElement("div", {
  345. id: "content",
  346. style: {
  347. position: "absolute",
  348. inset: "27px 50px 50px 50px"
  349. }
  350. },
  351. (tooltip = createElement("div", {
  352. className: "tooltip",
  353. style: {
  354. position: "absolute",
  355. top: "0",
  356. left: "0",
  357. backgroundColor: "black",
  358. height: "fit-content",
  359. maxWidth: "300px",
  360. zIndex: "5",
  361. borderRadius: "7.5px",
  362. color: "white",
  363. display: "flex",
  364. justifyContent: "center",
  365. alignItems: "center",
  366. padding: "5px",
  367. paddingInline: "15px",
  368. pointerEvents: "none",
  369. opacity: "0",
  370. textAlign: "center"
  371. },
  372. innerText: "description"
  373. })),
  374. (cheats = createElement("div", {
  375. style: {
  376. alignItems: "center",
  377. boxSizing: "border-box",
  378. display: "flex",
  379. flexDirection: "row",
  380. flexWrap: "wrap",
  381. justifyContent: "space-evenly",
  382. padding: "20px 5px 20px",
  383. position: "relative",
  384. width: "100%",
  385. fontFamily: "Nunito, sans-serif",
  386. fontWeight: "400",
  387. color: "var(--textColor)",
  388. background: "var(--contentBackground)",
  389. boxShadow: "inset 0 -6px rgb(0 0 0 / 20%)",
  390. borderRadius: "7px"
  391. }
  392. },
  393. (headerText = createElement("div", {
  394. className: "headerText",
  395. style: {
  396. boxSizing: "border-box",
  397. display: "block",
  398. height: "45px",
  399. left: "-10px",
  400. padding: "4px 4px 8px",
  401. position: "absolute",
  402. top: "-28px",
  403. backgroundColor: "#ef7426",
  404. boxShadow: "0 4px rgb(0 0 0 / 20%), inset 0 -4px rgb(0 0 0 / 20%)",
  405. borderRadius: "7px"
  406. }
  407. },
  408. createElement("div", {
  409. style: {
  410. alignItems: "center",
  411. boxSizing: "border-box",
  412. display: "flex",
  413. height: "100%",
  414. justifyContent: "center",
  415. padding: "0 15px",
  416. width: "100%",
  417. fontFamily: "Titan One, sans-serif",
  418. fontSize: "26px",
  419. fontWeight: "400",
  420. textShadow: "-1px -1px 0 #646464, 1px -1px 0 #646464, -1px 1px 0 #646464, 2px 2px 0 #646464",
  421. color: "white",
  422. background: "linear-gradient(#fcd843,#fcd843 50%,#feb31a 50.01%,#feb31a)",
  423. borderRadius: "5px"
  424. }
  425. })
  426. ))
  427. ))
  428. ))
  429. )
  430. ))
  431. );
  432.  
  433. document.body.appendChild(guiWrapper);
  434.  
  435.  
  436. function addMode(mode, img, cheats, nameOnly) {
  437. const button = createElement("div", {
  438. className: "cheatButton",
  439. innerHTML: (typeof img == "string" ? `<img style="height: 30px; margin-right: 5px" src="${img}">` : img ? img : "") + mode,
  440. onclick: () => setCheats(button.innerText, cheats, nameOnly)
  441. });
  442. cheatContainer.appendChild(button);
  443. return button.onclick;
  444. }
  445. async function setCheats(mode, scripts, nameOnly) {
  446. cheats.innerHTML = "";
  447. headerText.firstChild.innerText = `${mode}${nameOnly ? "" : " Cheats"}`;
  448. cheats.append(headerText);
  449.  
  450. for (let i = 0; i < scripts.length; i++) {
  451. let { name, description, type, inputs, enabled, run, element } = scripts[i];
  452. let toggle = type == "toggle";
  453. if (!element) {
  454. const button = createElement("div", {
  455. className: "scriptButton",
  456. style: { background: toggle ? enabled ? "var(--enabledButton)" : "var(--disabledButton)" : "var(--defaultButton)" }
  457. }, createElement("div", {
  458. className: "cheatName",
  459. innerHTML: name
  460. }));
  461. button.dataset.description = description;
  462. button.onclick = (function ({ target, key }) {
  463. if (target != button && !target.classList.contains("cheatName") && !(key == "Enter" && target.classList.contains("cheatInput"))) return;
  464. let args = [...button.children].slice(1);
  465. run.apply(this, args.map(c => c.type == "number" ? parseInt("0" + c.value) : c.nodeName == "SELECT" ? JSON.parse(c.value) : (c.data || c.value)));
  466. if (toggle) button.style.background = this.enabled ? "var(--enabledButton)" : "var(--disabledButton)";
  467. }).bind(scripts[i]);
  468. if (inputs?.length) for (let i = 0; i < inputs.length; i++) {
  469. const { name, type, options: opts, min, max, value } = inputs[i];
  470. let options;
  471. try { options = await (typeof opts == "function" ? opts?.() : opts) } catch { options = [] };
  472. if (type == "options" && options?.length) {
  473. const select = document.createElement("select");
  474. options.forEach(opt => {
  475. const option = document.createElement("option");
  476. option.value = JSON.stringify(opt?.value != null ? opt.value : opt);
  477. option.innerHTML = opt?.name || opt;
  478. select.appendChild(option);
  479. });
  480. button.appendChild(select);
  481. } else if (type == "function") {
  482. const input = document.createElement("input");
  483. input.classList.add("cheatInput");
  484. input.placeholder = name;
  485. input.style.textAlign = "center";
  486. input.readOnly = true;
  487. let locked = false;
  488. input.onclick = async () => {
  489. if (locked) return;
  490. input.value = "Waiting for input...";
  491. locked = true;
  492. input.data = await inputs[i].function((e) => input.value = e + "...");
  493. locked = false;
  494. input.value = input.value.slice(0, -3);
  495. }
  496. button.appendChild(input);
  497. } else {
  498. const input = document.createElement("input");
  499. input.classList.add("cheatInput");
  500. if (type == "number") {
  501. input.type = "number";
  502. input.min = min;
  503. input.max = max;
  504. input.value = value || (min != null ? min : 0);
  505. };
  506. input.placeholder = name;
  507. input.style.textAlign = "center";
  508. if (toggle) input.style.backgroundColor = "#0003";
  509. input.onkeyup = button.onclick;
  510. button.appendChild(input);
  511. }
  512. };
  513. scripts[i].element = button;
  514. }
  515. cheats.appendChild(scripts[i].element);
  516. };
  517. /* scripts
  518. {
  519. name: "",
  520. description: "",
  521. type: (null | "toggle"),
  522. inputs: type == null && [{
  523. name: "",
  524. type: ("number" | "string" | "options"),
  525. options: type == "options" && [
  526. {
  527. name: "",
  528. value: undefined
  529. };
  530. ]
  531. }],
  532. enabled: type == "toggle" && Boolean,
  533. run: function () {};
  534. };
  535. */
  536. }
  537. const Cheats = {
  538. global: [
  539. {
  540. name: "Auto Answer",
  541. description: "Toggles auto answer on",
  542. type: "toggle",
  543. enabled: false,
  544. data: null,
  545. run: function () {
  546. if (!this.enabled) {
  547. this.enabled = true;
  548. this.data = setInterval(() => {
  549. const { stateNode: { state: { question, stage, feedback }, props: { client: { question: pquestion } } } } = 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;
  550. const q = (question || pquestion);
  551. try {
  552. if (q.qType != "typing") if (stage !== "feedback" && !feedback) [...document.querySelectorAll(`[class*="answerContainer"]`)][q.answers.map((x, i) => q.correctAnswers.includes(x) ? i : null).filter(x => x != null)[0]]?.click?.();
  553. else document.querySelector('[class*="feedback"]')?.firstChild?.click?.();
  554. else Object.values(document.querySelector("[class*='typingAnswerWrapper']"))[1].children._owner.stateNode.sendAnswer(q.answers[0])
  555. } catch { }
  556. }, 50);
  557. } else {
  558. this.enabled = false;
  559. clearInterval(this.data);
  560. this.data = null;
  561. }
  562. }
  563. },
  564. {
  565. name: "Highlight Answers",
  566. description: "Toggles highlight answers on",
  567. type: "toggle",
  568. enabled: false,
  569. data: null,
  570. run: function () {
  571. if (!this.enabled) {
  572. this.enabled = true;
  573. this.data = setInterval(() => {
  574. const { stateNode: { state, props } } = 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;
  575. [...document.querySelectorAll(`[class*="answerContainer"]`)].forEach((answer, i) => {
  576. if ((state.question || props.client.question).correctAnswers.includes((state.question || props.client.question).answers[i])) answer.style.backgroundColor = "rgb(0, 207, 119)";
  577. else answer.style.backgroundColor = "rgb(189, 15, 38)";
  578. });
  579. }, 50);
  580. } else {
  581. this.enabled = false;
  582. clearInterval(this.data);
  583. this.data = null;
  584. }
  585. }
  586. },
  587. {
  588. name: "Subtle Highlight Answers",
  589. description: "Toggles subtle highlight answers on",
  590. type: "toggle",
  591. enabled: false,
  592. data: null,
  593. run: function () {
  594. if (!this.enabled) {
  595. this.enabled = true;
  596. this.data = setInterval(() => {
  597. const { stateNode: { state, props } } = 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;
  598. [...document.querySelectorAll(`[class*="answerContainer"]`)].forEach((answer, i) => {
  599. if ((state.question || props.client.question).correctAnswers.includes((state.question || props.client.question).answers[i]))
  600. answer.style.boxShadow = "unset";
  601. });
  602. }, 50);
  603. } else {
  604. this.enabled = false;
  605. clearInterval(this.data);
  606. this.data = null;
  607. }
  608. }
  609. },
  610. {
  611. name: "Percent Auto Answer",
  612. description: "Answers questions correctly or incorrectly depending on the goal grade given (Disable and re-enable to update goal)",
  613. inputs: [
  614. {
  615. name: "Target Grade",
  616. type: "number"
  617. }
  618. ],
  619. type: "toggle",
  620. enabled: false,
  621. data: null,
  622. run: function (target) {
  623. if (!this.enabled) {
  624. this.enabled = true;
  625. 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;
  626. this.data = setInterval(TARGET => {
  627. try {
  628. const question = stateNode.state.question || stateNode.props.client.question;
  629. if (stateNode.state.stage == "feedback" || stateNode.state.feedback) return document.querySelector('[class*="feedback"], [id*="feedback"]')?.firstChild?.click?.();
  630. else if (document.querySelector("[class*='answerContainer']") || document.querySelector("[class*='typingAnswerWrapper']")) {
  631. let correct = 0, total = 0;
  632. for (let corrects in stateNode.corrects) correct += stateNode.corrects[corrects];
  633. for (let incorrect in stateNode.incorrects) total += stateNode.incorrects[incorrect];
  634. total += correct;
  635. const yes = total == 0 || Math.abs(correct / (total + 1) - TARGET) >= Math.abs((correct + 1) / (total + 1) - TARGET);
  636. if (stateNode.state.question.qType != "typing") {
  637. const answerContainers = document.querySelectorAll("[class*='answerContainer']");
  638. for (let i = 0; i < answerContainers.length; i++) {
  639. const contains = question.correctAnswers.includes(question.answers[i]);
  640. if (yes && contains || !yes && !contains) return answerContainers[i]?.click?.();
  641. }
  642. answerContainers[0].click();
  643. } else Object.values(document.querySelector("[class*='typingAnswerWrapper']"))[1].children._owner.stateNode.sendAnswer(yes ? question.answers[0] : Math.random().toString(36).substring(2));
  644. }
  645. } catch { }
  646. }, 100, (target ?? 100) / 100);
  647. } else {
  648. this.enabled = false;
  649. clearInterval(this.data);
  650. this.data = null;
  651. }
  652. },
  653. },
  654. {
  655. name: "Auto Answer",
  656. description: "Click the correct answer for you",
  657. run: function () {
  658. const { stateNode: { state: { question, stage, feedback }, props: { client: { question: pquestion } } } } = 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;
  659. try {
  660. if (question.qType != "typing") if (stage !== "feedback" && !feedback) [...document.querySelectorAll(`[class*="answerContainer"]`)][(question || pquestion).answers.map((x, i) => (question || pquestion).correctAnswers.includes(x) ? i : null).filter(x => x != null)[0]]?.click?.();
  661. else document.querySelector('[class*="feedback"]')?.firstChild?.click?.();
  662. else Object.values(document.querySelector("[class*='typingAnswerWrapper']"))[1].children._owner.stateNode.sendAnswer(question.answers[0])
  663. } catch { }
  664. }
  665. },
  666. {
  667. name: "Highlight Answers",
  668. description: "Colors answers to be red or green highlighting the correct ones",
  669. run: function () {
  670. const { stateNode: { state, props } } = 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;
  671. [...document.querySelectorAll(`[class*="answerContainer"]`)].forEach((answer, i) => {
  672. if ((state.question || props.client.question).correctAnswers.includes((state.question || props.client.question).answers[i])) answer.style.backgroundColor = "rgb(0, 207, 119)";
  673. else answer.style.backgroundColor = "rgb(189, 15, 38)";
  674. });
  675. }
  676. },
  677. {
  678. name: "Spam Buy Blooks",
  679. description: "Opens a box an amount of times",
  680. inputs: [
  681. {
  682. name: "Box",
  683. type: "options",
  684. options: () => Array.from(document.querySelectorAll("[class*='packsWrapper'] > div")).reduce((a, b) => {
  685. b.querySelector("[class*='blookContainer'] > img") || a.push(b.querySelector("[class*='packImgContainer'] > img").alt);
  686. return a;
  687. }, [])
  688. },
  689. {
  690. name: "Amount",
  691. type: "number"
  692. },
  693. {
  694. name: "Show Unlocks",
  695. type: "options",
  696. options: [
  697. {
  698. name: "Show Unlocks",
  699. value: true
  700. },
  701. {
  702. name: "Don't Show Unlocks",
  703. value: false
  704. }
  705. ]
  706. }
  707. ],
  708. run: async function (_box, amountToOpen, alertBlooks) {
  709. let i = document.createElement('iframe');
  710. document.body.append(i);
  711. window.alert = i.contentWindow.alert.bind(window);
  712. window.prompt = i.contentWindow.prompt.bind(window);
  713. window.confirm = i.contentWindow.confirm.bind(window);
  714. i.remove();
  715. let { 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;
  716. let prices = Array.from(document.querySelectorAll("[class*='packsWrapper'] > div")).reduce((a, b) => {
  717. b.querySelector("[class*='blookContainer'] > img") || (a[b.querySelector("[class*='packImgContainer'] > img").alt] = parseInt(b.querySelector("[class*='packBottom']").textContent));
  718. return a;
  719. }, {});
  720. let box = _box.split(' ').map(str => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()).join(' ');
  721. const cost = prices[box];
  722. if (!cost) return alert("I couldn't find that box!");
  723.  
  724. let amount = Math.min(Math.floor(stateNode.state.tokens / cost), amountToOpen);
  725. if (amount == 0) return alert("You do not have enough tokens!");
  726.  
  727. let blooks = {};
  728. let now = Date.now();
  729.  
  730. for (let i = 0; i < amount; i++) {
  731. await stateNode.buyPack(true, box);
  732.  
  733. blooks[stateNode.state.unlockedBlook] ||= 0;
  734. blooks[stateNode.state.unlockedBlook]++;
  735.  
  736. let before = Date.now();
  737.  
  738. now += Date.now() - before;
  739.  
  740. stateNode.setState({ canOpen: true, currentPack: "", opening: alertBlooks, doneOpening: alertBlooks, openPack: alertBlooks });
  741. clearTimeout(stateNode.canOpenTimeout);
  742. }
  743. await new Promise(r => setTimeout(r));
  744. alert(`(${Date.now() - now}ms) Results:\n${Object.entries(blooks).map(([blook, amount]) => ` ${blook} ${amount}`).join(`\n`)}`);
  745. }
  746. },
  747.  
  748. {
  749. name: "Host Any Gamemode",
  750. description: "Change the selected gamemode on the host settings page",
  751. inputs: [
  752. {
  753. name: "Gamemode",
  754. type: "options",
  755. options: ["Racing", "Classic", "Factory", "Cafe", "Defense2", "Defense", "Royale", "Gold", "Candy", "Brawl", "Hack", "Pirate", "Fish", "Dino", "Toy", "Rush"]
  756. }
  757. ],
  758. run: function (type) {
  759. let i = document.createElement('iframe');
  760. document.body.append(i);
  761. window.alert = i.contentWindow.alert.bind(window);
  762. window.prompt = i.contentWindow.prompt.bind(window);
  763. i.remove();
  764. if (location.pathname != "/host/settings") return alert("Run this script on the host settings page");
  765. 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;
  766. stateNode.setState({ settings: { type } });
  767. }
  768. },
  769. {
  770. name: "Change Blook Ingame",
  771. description: "Changes your blook",
  772. inputs: [
  773. {
  774. name: "Blook (case sensitive)",
  775. type: "string",
  776. }
  777. ],
  778. run: function (blook) {
  779. let { props } = 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;
  780. props.client.blook = blook;
  781. props.liveGameController.setVal({ path: `c/${props.client.name}/b`, val: blook });
  782. }
  783. },
  784. {
  785. name: "Get Daily Rewards",
  786. description: "Gets max daily tokens and xp",
  787. run: async function () {
  788. let i = document.createElement('iframe');
  789. document.body.append(i);
  790. window.alert = i.contentWindow.alert.bind(window);
  791. i.remove();
  792. if (!location.href.includes("play.blooket.com")) (alert("This cheat only works on play.blooket.com, opening a new tab."), window.open("https://play.blooket.com/"));
  793. else {
  794. const { t } = await fetch("https://play.blooket.com/api/playersessions/solo", {
  795. body: JSON.stringify({
  796. gameMode: "Factory",
  797. questionSetId: ["60101da869e8c70013913b59", "625db660c6842334835cb4c6", "60268f8861bd520016eae038", "611e6c804abdf900668699e3", "60ba5ff6077eb600221b7145", "642467af9b704783215c1f1b", "605bd360e35779001bf57c5e", "6234cc7add097ff1c9cff3bd", "600b1491d42a140004d5215a", "5db75fa3f1fa190017b61c0c", "5fac96fe2ca0da00042b018f", "600b14d8d42a140004d52165", "5f88953cdb209e00046522c7", "600b153ad42a140004d52172", "5fe260e72a505b00040e2a11", "5fe3d085a529560004cd3076", "5f5fc017aee59500041a1456", "608b0a5863c4f2001eed43f4", "5fad491512c8620004918ace", "5fc91a9b4ea2e200046bd49a", "5c5d06a7deebc70017245da7", "5ff767051b68750004a6fd21", "5fdcacc85d465a0004b021b9", "5fb7eea20bd44300045ba495"][Math.floor(Math.random() * 24)]
  798. }),
  799. credentials: "include",
  800. method: "POST"
  801. }).then(x => x.json());
  802. await fetch("https://play.blooket.com/api/playersessions/landings", {
  803. body: JSON.stringify({ t }),
  804. credentials: "include",
  805. method: "POST"
  806. });
  807. await fetch("https://play.blooket.com/api/playersessions/questions?t=" + t, { credentials: "include" });
  808. const { name, blook: { name: blookUsed } } = 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.props.user.data;
  809. await fetch("https://play.blooket.com/api/users/factorystats", {
  810. body: JSON.stringify({
  811. blookUsed, t, name,
  812. cash: Math.floor(Math.random() * 90000000) + 10000000,
  813. correctAnswers: Math.floor(Math.random() * 500) + 500,
  814. upgrades: Math.floor(Math.random() * 300) + 300,
  815. mode: "Time-Solo",
  816. nameUsed: "You",
  817. place: 1,
  818. playersDefeated: 0,
  819. }),
  820. credentials: "include",
  821. method: "PUT"
  822. });
  823. fetch("https://play.blooket.com/api/users/add-rewards", {
  824. body: JSON.stringify({ t, name, addedTokens: 500, addedXp: 300 }),
  825. credentials: "include",
  826. method: "PUT"
  827. }).then(x => x.json())
  828. .then(({ dailyReward }) => alert(`Added max tokens and xp, and got ${dailyReward} daily wheel tokens!`))
  829. .catch(() => alert('There was an error when adding rewards.'));
  830. }
  831. }
  832. },
  833. {
  834. name: "Every Answer Correct",
  835. description: "Sets every answer to be correct",
  836. run: function () {
  837. 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;
  838. stateNode.freeQuestions = stateNode.freeQuestions?.map?.(q => ({ ...q, correctAnswers: q.answers }));
  839. stateNode.questions = stateNode.questions?.map?.(q => ({ ...q, correctAnswers: q.answers }));
  840. stateNode.props.client.questions = stateNode.props.client.questions.map(q => ({ ...q, correctAnswers: q.answers }));
  841. }
  842. },
  843. {
  844. name: "Subtle Highlight Answers",
  845. description: "Removes the shadow from correct answers",
  846. run: function () {
  847. const { stateNode: { state, props } } = 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;
  848. [...document.querySelectorAll(`[class*="answerContainer"]`)].forEach((answer, i) => {
  849. if ((state.question || props.client.question).correctAnswers.includes((state.question || props.client.question).answers[i]))
  850. answer.style.boxShadow = "unset";
  851. });
  852. }
  853. },
  854. {
  855. name: "Remove Name Limit",
  856. description: "Sets the name limit to 120, which is the actual max name length limit",
  857. run: function () {
  858. let i = document.createElement('iframe');
  859. document.body.append(i);
  860. window.alert = i.contentWindow.alert.bind(window);
  861. i.remove();
  862. document.querySelector('input[class*="nameInput"]').maxLength = 120; /* 120 is the actual limit */
  863. alert("Removed name length limit");
  864. }
  865. },
  866. {
  867. name: "Remove Random Name",
  868. description: "Allows you to put a custom name",
  869. run: function () {
  870. 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({ isRandom: false, client: { name: "" } });
  871. document.querySelector('[class*="nameInput"]')?.focus?.();
  872. }
  873. },
  874. {
  875. name: "Sell Duplicate Blooks",
  876. description: "Sell all duplicate blooks leaving you with 1 each",
  877. run: async function () {
  878. let i = document.createElement('iframe');
  879. document.body.append(i);
  880. window.alert = i.contentWindow.alert.bind(window);
  881. window.confirm = i.contentWindow.confirm.bind(window);
  882. i.remove();
  883. if (/dashboard.*\/blooks/.test(window.location.href)) {
  884. if (confirm(`Are you sure you want to sell your dupes? (Legendaries and rarer will not be sold)`)) {
  885. let { 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;
  886. let now = Date.now(), results = "";
  887. for (const blook in stateNode.state.blookData) if (stateNode.state.blookData[blook] > 1) {
  888. stateNode.setState({ blook, numToSell: stateNode.state.blookData[blook] - 1 });
  889. if (["Legendary", "Chroma", "Mystical"].includes(document.querySelector("[class*='highlightedRarity']").innerText.trim())) continue;
  890. results += ` ${blook} ${stateNode.state.blookData[blook] - 1}\n`;
  891. await stateNode.sellBlook({ preventDefault: () => { } }, true);
  892. }
  893. alert(`(${Date.now() - now}ms) Results:\n${results.trim()}`);
  894. }
  895. } else alert("This can only be ran in the Blooks page.");
  896. }
  897. },
  898. ],
  899. voyage: [
  900. {
  901. name: "Max Levels",
  902. description: "Maxes out all islands and your boat",
  903. run: function () {
  904. let { 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;
  905. stateNode.setState({ islandLevels: new Array(stateNode.state.islandLevels.length).fill(5) }, stateNode.updateBoatLevel);
  906. }
  907. },
  908. {
  909. name: "Set Doubloons",
  910. description: "Sets Doubloons",
  911. inputs: [{
  912. name: "Amount",
  913. type: "number"
  914. }],
  915. run: function (doubloons) {
  916. let i = document.createElement('iframe');
  917. document.body.append(i);
  918. window.prompt = i.contentWindow.prompt.bind(window);
  919. i.remove();
  920. let { 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;
  921. stateNode.setState({ doubloons });
  922. stateNode.props.liveGameController.setVal({
  923. path: `c/${stateNode.props.client.name}/d`,
  924. val: doubloons
  925. });
  926. }
  927. },
  928. {
  929. name: "Start Heist",
  930. description: "Starts a heist on someone",
  931. inputs: [{
  932. name: "Player",
  933. type: "options",
  934. options: () => {
  935. let { 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;
  936. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  937. }
  938. }],
  939. run: function (target) {
  940. let i = document.createElement('iframe');
  941. document.body.append(i);
  942. window.prompt = i.contentWindow.prompt.bind(window);
  943. i.remove();
  944. let { 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;
  945.  
  946. stateNode.props.liveGameController.getDatabaseVal("c", function (val) {
  947. const players = Object.entries(val || {}).reduce((a, [name, c]) => (name != stateNode.props.client.name && a.push({ name, blook: c.b, doubloons: c.d || 0 }), a), []);
  948. if (players.length === 0) {
  949. stateNode.questionsToAnswer = 1;
  950. return void stateNode.randomQ();
  951. }
  952. const { name, blook, doubloons } = players.find(x => x.name == target) || players.sort((a, b) => b.doubloons - a.doubloons)[0];
  953. stateNode.setState({
  954. stage: "heist",
  955. heistInfo: { name, blook },
  956. prizeAmount: Math.max(1000, doubloons)
  957. });
  958. });
  959. }
  960. },
  961. {
  962. name: "Swap Doubloons",
  963. description: "Swaps Doubloons with someone",
  964. inputs: [{
  965. name: "Player",
  966. type: "options",
  967. options: () => {
  968. let { 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;
  969. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  970. }
  971. }],
  972. run: async function (player) {
  973. let i = document.createElement('iframe');
  974. document.body.append(i);
  975. window.prompt = i.contentWindow.prompt.bind(window);
  976. i.remove();
  977. let { 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;
  978. let players = Object.entries(await new Promise(r => stateNode.props.liveGameController.getDatabaseVal("c", r))).sort((a, b) => b[1].d - a[1].d).filter(x => x[0] != stateNode.props.client.name),
  979. target = players.find(x => x[0] == player) || players[0];
  980. stateNode.props.liveGameController.setVal({
  981. path: `c/${stateNode.props.client.name}`,
  982. val: {
  983. b: stateNode.props.client.blook,
  984. d: target[1].d,
  985. tat: `${target[0]}:${target[1].d - stateNode.state.doubloons}`
  986. }
  987. });
  988. stateNode.setState({ doubloons: target[1].d });
  989. }
  990. },
  991. {
  992. name: "Take Doubloons",
  993. description: "Takes Doubloons from someone",
  994. inputs: [{
  995. name: "Player",
  996. type: "options",
  997. options: () => {
  998. let { 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;
  999. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  1000. }
  1001. }],
  1002. run: async function (player) {
  1003. let i = document.createElement('iframe');
  1004. document.body.append(i);
  1005. window.prompt = i.contentWindow.prompt.bind(window);
  1006. i.remove();
  1007. let { 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;
  1008. let players = Object.entries(await new Promise(r => stateNode.props.liveGameController.getDatabaseVal("c", r))).sort((a, b) => b[1].d - a[1].d).filter(x => x[0] != stateNode.props.client.name),
  1009. target = players.find(x => x[0] == player) || players[0];
  1010. stateNode.setState({ doubloons: stateNode.state.doubloons + target[1].d });
  1011. stateNode.props.liveGameController.setVal({
  1012. path: `c/${stateNode.props.client.name}`,
  1013. val: {
  1014. b: stateNode.props.client.blook,
  1015. d: target[1].d,
  1016. tat: `${target[0]}:${target[1].d}`
  1017. }
  1018. });
  1019. }
  1020. }
  1021. ],
  1022. brawl: [
  1023. {
  1024. name: "Double Enemy XP",
  1025. description: "Doubles enemy XP drop value",
  1026. run: function () {
  1027. for (const collider of 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.state.game.scene.physics.world.colliders._active.filter(x => x.callbackContext?.toString().includes('dmgCd'))) {
  1028. const enemies = collider.object2;
  1029. let _start = enemies.classType.prototype.start;
  1030. enemies.classType.prototype.start = function () { _start.apply(this, arguments), this.val *= 2 }
  1031. enemies.children.entries.forEach(e => e.val *= 2);
  1032. }
  1033. }
  1034. },
  1035. {
  1036. name: "Half Enemy Speed",
  1037. description: "Makes enemies move 2x slower",
  1038. run: function () {
  1039. for (const collider of 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.state.game.scene.physics.world.colliders._active.filter(x => x.callbackContext?.toString().includes('dmgCd'))) {
  1040. const enemies = collider.object2;
  1041. let _start = enemies.classType.prototype.start;
  1042. enemies.classType.prototype.start = function () { _start.apply(this, arguments), this.speed *= .5 }
  1043. enemies.children.entries.forEach(e => e.speed *= .5);
  1044. }
  1045. }
  1046. },
  1047. {
  1048. name: "Instant Kill",
  1049. description: "Sets all enemies health to 1",
  1050. run: function () {
  1051. for (const collider of 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.state.game.scene.physics.world.colliders._active.filter(x => x.callbackContext?.toString().includes('dmgCd'))) {
  1052. const enemies = collider.object2;
  1053. let _start = enemies.classType.prototype.start;
  1054. enemies.classType.prototype.start = function () { _start.apply(this, arguments), this.hp = 1 }
  1055. enemies.children.entries.forEach(e => e.hp = 1);
  1056. }
  1057. }
  1058. },
  1059. {
  1060. name: "Invincibility",
  1061. description: "Makes you invincible",
  1062. run: function () {
  1063. for (const collider of 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.state.game.scene.physics.world.colliders._active.filter(x => x.callbackContext?.toString().includes('invulnerableTime') || x.callbackContext?.toString().includes('dmgCd'))) collider.collideCallback = () => { };
  1064. }
  1065. },
  1066. {
  1067. name: "Magnet",
  1068. description: "Pulls all xp towards you",
  1069. run: function () {
  1070. 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.state.game.scene.physics.world.colliders._active.find(x => x.collideCallback?.toString().includes('0x5dc)')).collideCallback({ active: true }, { active: true, setActive() { }, setVisible() { } });
  1071. }
  1072. },
  1073. {
  1074. name: "Max Current Abilities",
  1075. description: "Maxes out all your current abilities",
  1076. run: function () {
  1077. 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;
  1078. for (const [ability, level] of Object.entries(stateNode.state.abilities)) for (let i = 0; i < (10 - level); i++) stateNode.state.game.scene.game.events.emit("level up", ability, stateNode.state.abilities[ability]++);
  1079. stateNode.setState({
  1080. level: stateNode.state.game.scene.level = [1, 3, 5, 10, 15, 25, 35].sort((a, b) => Math.abs(a - stateNode.state.level) - Math.abs(b - stateNode.state.level))[0] - 1
  1081. });
  1082. }
  1083. },
  1084. {
  1085. name: "Next Level",
  1086. description: "Skips to the next level",
  1087. run: function () {
  1088. let { 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;
  1089. let { object1: player, object2: xp } = stateNode.state.game.scene.physics.world.colliders._active.find(x => x.collideCallback?.toString().includes("emit']('xp"));
  1090. xp.get().spawn(player.x, player.y, ((e) => 1 === e ? 1 : e < 5 ? 5 : e < 10 ? 10 : e < 20 ? 20 : e < 30 ? 30 : e < 40 ? 40 : e < 50 ? 50 : 100)(stateNode.state.level) - stateNode.xp);
  1091. }
  1092. },
  1093. {
  1094. name: "Remove Obstacles",
  1095. description: "Removes all rocks and obstacles",
  1096. run: function () {
  1097. 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.state.game.scene.physics.world.bodies.entries.forEach(body => {
  1098. try {
  1099. if (body.gameObject.frame.texture.key.includes("obstacle")) body.gameObject.destroy();
  1100. } catch { }
  1101. });
  1102. }
  1103. },
  1104. {
  1105. name: "Kill Enemies",
  1106. description: "Kills all current enemies",
  1107. run: function () {
  1108. 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.state.game.scene.physics.world.bodies.entries.forEach(x => x?.gameObject?.receiveDamage?.(x.gameObject.hp, 1));
  1109. }
  1110. },
  1111. {
  1112. name: "Reset Health",
  1113. description: "Resets health and gives invincibility for 3 seconds",
  1114. run: function () {
  1115. 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.state.game.scene.game.events._events.respawn.fn();
  1116. }
  1117. }
  1118. ],
  1119. cafe: [
  1120. {
  1121. name: "Max Items",
  1122. description: "Maxes out items in the shop (Only usable in the shop)",
  1123. run: function () {
  1124. let i = document.createElement('iframe');
  1125. document.body.append(i);
  1126. window.alert = i.contentWindow.alert.bind(window);
  1127. i.remove();
  1128. if (window.location.pathname !== "/cafe/shop") alert("This can only be run in the shop");
  1129. else {
  1130. 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;
  1131. stateNode.setState({ items: Object.fromEntries(Object.entries(stateNode.state.items).map(x => [x[0], 5])) });
  1132. }
  1133. }
  1134. },
  1135. {
  1136. name: "Remove Customers",
  1137. description: "Skips the current customers (Not usable in the shop)",
  1138. run: function () {
  1139. 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;
  1140. stateNode.state.customers.forEach((customer, i) => Object.keys(customer).length && stateNode.removeCustomer(i, true));
  1141. }
  1142. },
  1143. {
  1144. name: "Reset Abilities",
  1145. description: "Resets used abilities in shop (Only usable in the shop)",
  1146. run: function () {
  1147. let i = document.createElement('iframe');
  1148. document.body.append(i);
  1149. window.alert = i.contentWindow.alert.bind(window);
  1150. i.remove();
  1151. if (window.location.pathname !== "/cafe/shop") alert("This can only be run in the shop");
  1152. else {
  1153. 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;
  1154. stateNode.setState({ abilities: Object.fromEntries(Object.entries(stateNode.state.abilities).map(x => [x[0], 5])) });
  1155. }
  1156. }
  1157. },
  1158. {
  1159. name: "Set Cash",
  1160. description: "Sets cafe cash",
  1161. inputs: [{
  1162. name: "Amount",
  1163. type: "number"
  1164. }],
  1165. run: function (cafeCash) {
  1166. let { 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;
  1167. stateNode.setState({ cafeCash });
  1168. stateNode.props.liveGameController.setVal({
  1169. path: `c/${stateNode.props.client.name}`,
  1170. val: {
  1171. b: stateNode.props.client.blook,
  1172. ca: cafeCash
  1173. }
  1174. });
  1175. }
  1176. },
  1177. {
  1178. name: "Stock Food",
  1179. description: "Stocks all food to 99 (Not usable in the shop)",
  1180. run: function () {
  1181. let i = document.createElement('iframe');
  1182. document.body.append(i);
  1183. window.alert = i.contentWindow.alert.bind(window);
  1184. i.remove();
  1185. if (window.location.pathname !== "/cafe") alert("This can't be run in the shop");
  1186. else {
  1187. 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;
  1188. stateNode.setState({ foods: stateNode.state.foods.map(e => ({ ...e, stock: 99, level: 5 })) });
  1189. }
  1190. }
  1191. }
  1192. ],
  1193. crypto: [
  1194. {
  1195. name: "Choice ESP",
  1196. description: "Shows what each choice will give you",
  1197. type: "toggle",
  1198. enabled: false,
  1199. data: null,
  1200. run: function () {
  1201. if (!this.enabled) {
  1202. this.enabled = true;
  1203. this.data = setInterval(() => {
  1204. let { 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;
  1205. let { text } = stateNode.state.choices[0];
  1206. let chest = document.querySelector('[class^=styles__feedbackContainer___]');
  1207. if (chest.children.length <= 4) {
  1208. let choice = document.createElement('div');
  1209. choice.style.color = "white";
  1210. choice.style.fontFamily = "Inconsolata,Helvetica,monospace,sans-serif";
  1211. choice.style.fontSize = "2em";
  1212. choice.style.display = "flex";
  1213. choice.style.justifyContent = "center";
  1214. choice.style.marginTop = "675px";
  1215. choice.innerText = text;
  1216. chest.append(choice);
  1217. }
  1218. }, 50);
  1219. } else {
  1220. this.enabled = false;
  1221. clearInterval(this.data);
  1222. this.data = null;
  1223. }
  1224. }
  1225. },
  1226. {
  1227. name: "Password ESP",
  1228. description: "Highlights the correct password",
  1229. type: "toggle",
  1230. enabled: false,
  1231. data: null,
  1232. run: function () {
  1233. if (!this.enabled) {
  1234. this.enabled = true;
  1235. this.data = setInterval(() => {
  1236. let { state } = 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;
  1237. if (state.stage == "hack") [...document.querySelector('div[class^=styles__buttonContainer]').children].forEach(button => {
  1238. if (button.innerText == state.correctPassword) return;
  1239. button.style.outlineColor = "rgba(255, 64, 64, 0.8)";
  1240. button.style.backgroundColor = "rgba(255, 64, 64, 0.8)";
  1241. button.style.textShadow = "0 0 1px #f33";
  1242. });
  1243. }, 50);
  1244. } else {
  1245. this.enabled = false;
  1246. clearInterval(this.data);
  1247. this.data = null;
  1248. }
  1249. }
  1250. },
  1251. {
  1252. name: "Always Triple",
  1253. description: "Always get triple crypto",
  1254. type: "toggle",
  1255. enabled: false,
  1256. data: null,
  1257. run: function () {
  1258. if (!this.enabled) {
  1259. this.enabled = true;
  1260. this.data = setInterval(() => 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({ choices: [{ type: "mult", val: 3, rate: .075, blook: "Brainy Bot", text: "Triple Crypto" }] }), 50);
  1261. } else {
  1262. this.enabled = false;
  1263. clearInterval(this.data);
  1264. this.data = null;
  1265. }
  1266. }
  1267. },
  1268. {
  1269. name: "Auto Guess",
  1270. description: "Automatically guess the correct password",
  1271. type: "toggle",
  1272. enabled: false,
  1273. data: null,
  1274. run: function () {
  1275. if (!this.enabled) {
  1276. this.enabled = true;
  1277. this.data = setInterval(() => {
  1278. let { state } = 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;
  1279. if (state.stage == "hack") for (const button of document.querySelector('div[class^=styles__buttonContainer]').children) button.innerText == state.correctPassword && button.click();
  1280. }, 50);
  1281. } else {
  1282. this.enabled = false;
  1283. clearInterval(this.data);
  1284. this.data = null;
  1285. }
  1286. }
  1287. },
  1288. {
  1289. name: "Remove Hack",
  1290. description: "Removes an attacking hack",
  1291. run: function () {
  1292. 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({ hack: "" });
  1293. }
  1294. },
  1295. {
  1296. name: "Set Crypto",
  1297. description: "Sets crypto",
  1298. inputs: [{
  1299. name: "Amount",
  1300. type: "number"
  1301. }],
  1302. run: function (amount) {
  1303. let { 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;
  1304. stateNode.setState({ crypto: amount, crypto2: amount });
  1305. stateNode.props.liveGameController.setVal({
  1306. path: "c/".concat(stateNode.props.client.name),
  1307. val: {
  1308. b: stateNode.props.client.blook,
  1309. p: stateNode.state.password,
  1310. cr: amount
  1311. }
  1312. });
  1313. }
  1314. },
  1315. {
  1316. name: "Set Password",
  1317. description: "Sets hacking password",
  1318. inputs: [{
  1319. name: "Custom Password",
  1320. type: "string"
  1321. }],
  1322. run: function (password) {
  1323. let { 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;
  1324. stateNode.setState({ password });
  1325. stateNode.props.liveGameController.setVal({
  1326. path: "c/".concat(stateNode.props.client.name),
  1327. val: {
  1328. b: stateNode.props.client.blook,
  1329. p: password,
  1330. cr: stateNode.state.crypto
  1331. }
  1332. });
  1333. }
  1334. },
  1335. {
  1336. name: "Steal Player's Crypto",
  1337. description: "Steals all of someone's crypto",
  1338. inputs: [{
  1339. name: "Player",
  1340. type: "options",
  1341. options: () => {
  1342. let { 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;
  1343. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  1344. }
  1345. }],
  1346. run: function (target) {
  1347. let { 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;
  1348. stateNode.props.liveGameController.getDatabaseVal("c", (players) => {
  1349. if (players && Object.keys(players).map(x => x.toLowerCase()).includes(target.toLowerCase())) {
  1350. let [player, { cr }] = Object.entries(players).find(([name]) => name.toLowerCase() == target.toLowerCase());
  1351. stateNode.setState({ crypto: stateNode.state.crypto + cr, crypto2: stateNode.state.crypto + cr });
  1352. stateNode.props.liveGameController.setVal({
  1353. path: "c/".concat(stateNode.props.client.name),
  1354. val: {
  1355. b: stateNode.props.client.blook,
  1356. p: stateNode.state.password,
  1357. cr: stateNode.state.crypto + cr,
  1358. tat: `${player}:${cr}`
  1359. }
  1360. });
  1361. }
  1362. });
  1363. }
  1364. }
  1365. ],
  1366. defense: [
  1367. {
  1368. name: "Earthquake",
  1369. description: "Shuffles around towers",
  1370. run: function () {
  1371. let { 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;
  1372. stateNode.setState({
  1373. eventName: "Earthquake",
  1374. event: {
  1375. short: "e",
  1376. color: "#805500",
  1377. icon: "fas fa-mountain",
  1378. desc: "All of your towers get mixed up",
  1379. rate: .02
  1380. },
  1381. buyTowerName: "",
  1382. buyTower: {}
  1383. }, () => stateNode.eventTimeout = setTimeout(() => stateNode.setState({ event: {}, eventName: "" }), 6e3));
  1384. stateNode.tiles.forEach(row => row.forEach((col, i) => col === 3 && (row[i] = 0)));
  1385. let tiles = stateNode.tiles.flatMap((_, y) => _.map((__, x) => __ === 0 && ({ x, y }))).filter(Boolean).sort(() => .5 - Math.random());
  1386. stateNode.towers.forEach(tower => {
  1387. let { x, y } = tiles.shift();
  1388. tower.move(x, y, stateNode.tileSize);
  1389. stateNode.tiles[y][x] = 3;
  1390. });
  1391. }
  1392. },
  1393. {
  1394. name: "Max Tower Stats",
  1395. description: "Makes all placed towers overpowered",
  1396. run: function () {
  1397. let { 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;
  1398. stateNode.towers.forEach(tower => {
  1399. tower.range = 100;
  1400. tower.fullCd = tower.cd = 0;
  1401. tower.damage = 1e6;
  1402. });
  1403. }
  1404. },
  1405. {
  1406. name: "Remove Ducks",
  1407. description: "Removes ducks",
  1408. run: function () {
  1409. let { stateNode: { ducks, tiles } } = 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;
  1410. ducks.forEach(x => { tiles[x.y][x.x] = 0; });
  1411. ducks.length = 0;
  1412. }
  1413. },
  1414. {
  1415. name: "Remove Enemies",
  1416. description: "Removes all the enemies",
  1417. run: function () {
  1418. let { 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;
  1419. stateNode.enemies = stateNode.futureEnemies = [];
  1420. }
  1421. },
  1422. {
  1423. name: "Remove Obstacles",
  1424. description: "Lets you place towers anywhere",
  1425. run: function () {
  1426. let { 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;
  1427. stateNode.tiles = stateNode.tiles.map(row => row.fill(0));
  1428. }
  1429. },
  1430. {
  1431. name: "Set Damage",
  1432. description: "Sets damage",
  1433. inputs: [{
  1434. name: "Damage",
  1435. type: "number"
  1436. }],
  1437. run: function (dmg) {
  1438. 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.dmg = dmg;
  1439. }
  1440. },
  1441. {
  1442. name: "Set Round",
  1443. description: "Sets the current round",
  1444. inputs: [{
  1445. name: "Round",
  1446. type: "number"
  1447. }],
  1448. run: function (round) {
  1449. 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({ round });
  1450. }
  1451. },
  1452. {
  1453. name: "Set Tokens",
  1454. description: "Sets the amount of tokens you have",
  1455. inputs: [{
  1456. name: "Tokens",
  1457. type: "number"
  1458. }],
  1459. run: function (tokens) {
  1460. 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({ tokens });
  1461. }
  1462. }
  1463. ],
  1464. defense2: [
  1465. {
  1466. name: "Max Tower Stats",
  1467. description: "Makes all placed towers overpowered",
  1468. run: function () {
  1469. 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.state.towers.forEach(tower => {
  1470. tower.stats.dmg = 1e6;
  1471. tower.stats.fireRate = 50;
  1472. tower.stats.ghostDetect = true;
  1473. tower.stats.maxTargets = 1e6;
  1474. tower.stats.numProjectiles &&= 100;
  1475. tower.stats.range = 100;
  1476. if (tower.stats.auraBuffs) for (const buff in tower.stats.auraBuffs) tower.stats.auraBuffs[buff] *= 100;
  1477. });
  1478. }
  1479. },
  1480. {
  1481. name: "Kill Enemies",
  1482. description: "Kills all the enemies",
  1483. run: function () {
  1484. let { 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;
  1485. stateNode.state.game.scene.enemyQueue.length = 0;
  1486. stateNode.state.game.scene.physics.world.bodies.entries.forEach(x => x?.gameObject?.receiveDamage?.(x.gameObject.hp, 1));
  1487. }
  1488. },
  1489. {
  1490. name: "Set Coins",
  1491. description: "Sets coins",
  1492. inputs: [{
  1493. name: "Coins",
  1494. type: "number"
  1495. }],
  1496. run: function (coins) {
  1497. 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({ coins });
  1498. }
  1499. },
  1500. {
  1501. name: "Set Health",
  1502. description: "Sets the amount of health you have",
  1503. inputs: [{
  1504. name: "Health",
  1505. type: "number"
  1506. }],
  1507. run: function (health) {
  1508. 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({ health });
  1509. }
  1510. },
  1511. {
  1512. name: "Set Round",
  1513. description: "Sets the current round",
  1514. inputs: [{
  1515. name: "Round",
  1516. type: "number"
  1517. }],
  1518. run: function (round) {
  1519. 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({ round });
  1520. }
  1521. },
  1522. ],
  1523. dinos: [
  1524. {
  1525. name: "Auto Choose",
  1526. description: "Automatically choose the best fossil when excavating",
  1527. type: "toggle",
  1528. enabled: false,
  1529. data: null,
  1530. rand(e, t) {
  1531. const s = [];
  1532. while (s.length < t) {
  1533. const i = Math.random();
  1534. let r = 0, g = null;
  1535. for (let o = 0; o < e.length; o++) {
  1536. r += e[o].rate;
  1537. if (r >= i) {
  1538. g = e[o];
  1539. break;
  1540. }
  1541. }
  1542. g && !s.includes(g) && s.push(g)
  1543. }
  1544. return s;
  1545. },
  1546. run: function () {
  1547. if (!this.enabled) {
  1548. this.enabled = true;
  1549. const getFossils = () => this.rand([{ type: "fossil", val: 10, rate: .1, blook: "Amber" }, { type: "fossil", val: 25, rate: .1, blook: "Dino Egg" }, { type: "fossil", val: 50, rate: .175, blook: "Dino Fossil" }, { type: "fossil", val: 75, rate: .175, blook: "Stegosaurus" }, { type: "fossil", val: 100, rate: .15, blook: "Velociraptor" }, { type: "fossil", val: 125, rate: .125, blook: "Brontosaurus" }, { type: "fossil", val: 250, rate: .075, blook: "Triceratops" }, { type: "fossil", val: 500, rate: .025, blook: "Tyrannosaurus Rex" }, { type: "mult", val: 1.5, rate: .05 }, { type: "mult", val: 2, rate: .025 }], 3);
  1550. this.data = setInterval(() => {
  1551. try {
  1552. let { 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;
  1553. if (stateNode.state.stage === "excavate") {
  1554. stateNode.state.choices.length || (stateNode.state.choices = getFossils());
  1555. let max = 0, index = -1;
  1556. for (let i = 0; i < stateNode.state.choices.length; i++) {
  1557. const { type, val } = stateNode.state.choices[i];
  1558. const value = (type == "fossil" ? stateNode.state.fossils + val * stateNode.state.fossilMult : stateNode.state.fossils * val) || 0;
  1559. if (value <= max && type != "mult") continue;
  1560. max = value, index = i + 1;
  1561. }
  1562. document.querySelector('div[class^="styles__rockRow"] > div[role="button"]:nth-child(' + index + ')').click();
  1563. }
  1564. } catch { }
  1565. }, 50);
  1566. } else {
  1567. this.enabled = false;
  1568. clearInterval(this.data);
  1569. this.data = null;
  1570. }
  1571. }
  1572. },
  1573. {
  1574. name: "Rock ESP",
  1575. description: "Shows what is under the rocks",
  1576. type: "toggle",
  1577. enabled: false,
  1578. data: null,
  1579. run: function () {
  1580. const exps = ["⁰", "¹", "²", "³", "⁴", "⁵", "⁶", "⁷", "⁸", "⁹"];
  1581. const getExpAscii = (num) => {
  1582. let res = "";
  1583. while (num > 0) {
  1584. res = exps[num % 10] + res;;
  1585. num = ~~(num / 10);
  1586. }
  1587. return res;
  1588. };
  1589.  
  1590. const shortNum = (value) => {
  1591. let newValue = value.toString();
  1592. if (value >= 1000) {
  1593. const suffixes = ["", "K", "M", "B", "T"];
  1594. const suffixNum = ~~((digits(value) - 1) / 3);
  1595. if (suffixNum < suffixes.length) {
  1596. let shortValue = "";
  1597. for (let precision = 3; precision >= 1; precision--) {
  1598. shortValue = parseFloat((suffixNum !== 0 ? value / 1000 ** suffixNum : value).toPrecision(precision)).toString();
  1599. const dotLessShortValue = shortValue.replace(/[^a-zA-Z 0-9]+/g, "");
  1600. if (dotLessShortValue.length <= 3) break;
  1601. }
  1602. if (Number(shortValue) % 1 !== 0) shortValue = Number(shortValue).toFixed(1);
  1603. newValue = shortValue + suffixes[suffixNum];
  1604. } else {
  1605. let num = value;
  1606. let exp = 0;
  1607. while (num >= 100) {
  1608. num = Math.floor(num / 10);
  1609. exp += 1;
  1610. }
  1611. newValue = `${num / 10} × 10${getExpAscii(exp + 1)}`;
  1612. }
  1613. }
  1614. return newValue;
  1615. };
  1616. if (!this.enabled) {
  1617. this.enabled = true;
  1618. this.data = setInterval(() => {
  1619. let { 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;
  1620. const rocks = [...document.querySelector('[class*="rockButton"]').parentElement.children];
  1621. if (!rocks.every(element => element.querySelector('div'))) stateNode.setState({
  1622. choices: [{ type: "fossil", val: 10, rate: .1, blook: "Amber" }, { type: "fossil", val: 25, rate: .1, blook: "Dino Egg" }, { type: "fossil", val: 50, rate: .175, blook: "Dino Fossil" }, { type: "fossil", val: 75, rate: .175, blook: "Stegosaurus" }, { type: "fossil", val: 100, rate: .15, blook: "Velociraptor" }, { type: "fossil", val: 125, rate: .125, blook: "Brontosaurus" }, { type: "fossil", val: 250, rate: .075, blook: "Triceratops" }, { type: "fossil", val: 500, rate: .025, blook: "Tyrannosaurus Rex" }, { type: "mult", val: 1.5, rate: .05 }, { type: "mult", val: 2, rate: .025 }].sort(() => 0.5 - Math.random()).slice(0, 3)
  1623. }, () => {
  1624. rocks.forEach((element, index) => {
  1625. const rock = stateNode.state.choices[index];
  1626. if (element.querySelector('div')) element.querySelector('div').remove();
  1627. const choice = document.createElement("div");
  1628. choice.style.color = "white";
  1629. choice.style.fontFamily = "Macondo";
  1630. choice.style.fontSize = "1em";
  1631. choice.style.display = "flex";
  1632. choice.style.justifyContent = "center";
  1633. choice.style.transform = "translateY(25px)";
  1634. choice.innerText = rock.type === "fossil" ? `+${Math.round(rock.val * stateNode.state.fossilMult) > 99999999 ? shortNum(Math.round(rock.val * stateNode.state.fossilMult)) : Math.round(rock.val * stateNode.state.fossilMult)} Fossils` : `x${rock.val} Fossils Per Excavation`;;
  1635. element.append(choice);
  1636. });
  1637. });
  1638. }, 50);
  1639. } else {
  1640. this.enabled = false;
  1641. clearInterval(this.data);
  1642. this.data = null;
  1643. }
  1644. }
  1645. },
  1646. {
  1647. name: "Set Fossils",
  1648. description: "Sets the amount of fossils you have",
  1649. inputs: [{
  1650. name: "Fossils",
  1651. type: "number"
  1652. }],
  1653. run: function (fossils) {
  1654. let { 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;
  1655. stateNode.setState({ fossils });
  1656. stateNode.props.liveGameController.setVal({
  1657. path: `c/${stateNode.props.client.name}`,
  1658. val: {
  1659. b: stateNode.props.client.blook,
  1660. f: fossils,
  1661. ic: stateNode.state.isCheating
  1662. }
  1663. });
  1664. }
  1665. },
  1666. {
  1667. name: "Set Multiplier",
  1668. description: "Sets fossil multiplier",
  1669. inputs: [{
  1670. name: "Multiplier",
  1671. type: "number"
  1672. }],
  1673. run: function (fossilMult) {
  1674. let { 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;
  1675. stateNode.setState({ fossilMult });
  1676. }
  1677. },
  1678. {
  1679. name: "Stop Cheating",
  1680. description: "Undoes cheating so that you can't be caught",
  1681. run: function () {
  1682. let { 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;
  1683. stateNode.setState({ isCheating: false });
  1684. stateNode.props.liveGameController.setVal({
  1685. path: `c/${stateNode.props.client.name}/ic`,
  1686. val: false
  1687. });
  1688. }
  1689. }
  1690. ],
  1691. doom: [
  1692. {
  1693. name: "Fill Deck",
  1694. description: "Fills your deck with every maxed out card and artifact (Only works on towers page)",
  1695. run: function () {
  1696. let i = document.createElement('iframe');
  1697. document.body.append(i);
  1698. window.alert = i.contentWindow.alert.bind(window);
  1699. i.remove();
  1700. if (window.location.pathname == "/tower/map") {
  1701. 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;
  1702. stateNode.props.tower.artifacts = "Medical Kit|Fury Relic|Survival Guide|Steel Socks|Piggy Bank|Lucky Feather|Coupon|Cheese|Tasty Egg|Training Weights|Mighty Shield|Toxic Waste|Lifeline Totem|Cursed Hourglass|Band-Aid|Elder Coins|Captain's Anchor|Chess Pieces|Pink Hippo|Anorak's Wizard Cap|Dave's Doggo|Anubis' Obelisk|Farm Tractor|Magic Seedling|Just A Bone|Cozy Igloo|King's Crown|Sacred Scroll".split("|");
  1703. stateNode.props.tower.cards = 'Chick,🌽|Chicken,🌽|Cow,🌽|Goat,🌽|Horse,🌽|Pig,🌽|Sheep,🌽|Duck,🌽|Dog,🌽|Cat,🐾|Rabbit,🐾|Goldfish,🐾|Hamster,🐾|Turtle,🐾|Kitten,🐾|Puppy,🐾|Bear,🌲|Moose,🌲|Fox,🌲|Raccoon,🌲|Squirrel,🌲|Owl,🌲|Hedgehog,🌲|Baby Penguin,❄️|Penguin,❄️|Arctic Fox,❄️|Snowy Owl,❄️|Polar Bear,❄️|Arctic Hare,❄️|Seal,❄️|Walrus,❄️|Tiger,🌴|Panther,🌴|Cockatoo,🌴|Orangutan,🌴|Anaconda,🌴|Macaw,🌴|Jaguar,🌴|Capuchin,🌴|Toucan,🌴|Parrot,🌴|Elf,⚔️|Witch,⚔️|Wizard,⚔️|Fairy,⚔️|Slime Monster,⚔️|Jester,⚔️|Dragon,⚔️|Unicorn,⚔️|Queen,⚔️|King,⚔️|Snow Globe,☃️|Holiday Gift,☃️|Hot Chocolate,☃️|Gingerbread Man,☃️|Gingerbread House,☃️|Holiday Wreath,☃️|Snowman,☃️|Santa Claus,☃️|Two of Spades,🏰|Eat Me,🏰|Drink Me,🏰|Alice,🏰|Queen of Hearts,🏰|Dormouse,🏰|White Rabbit,🏰|Cheshire Cat,🏰|Caterpillar,🏰|Mad Hatter,🏰|King of Hearts,🏰'.split("|").map(x => {
  1704. const [blook, c] = x.split(",");
  1705. return { strength: 20, charisma: 20, wisdom: 20, class: c, blook };
  1706. });
  1707. try { stateNode.props.addTowerNode(); } catch { }
  1708. stateNode.setState({ showDeck: false });
  1709. } else alert("You need to be on the map to run this cheat!");
  1710. }
  1711. },
  1712. {
  1713. name: "Max Cards",
  1714. description: "Maxes out all the cards in your deck",
  1715. run: function () {
  1716. let i = document.createElement('iframe');
  1717. document.body.append(i);
  1718. window.alert = i.contentWindow.alert.bind(window);
  1719. i.remove();
  1720. if (window.location.pathname == "/tower/map") {
  1721. 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;
  1722. stateNode.props.tower.cards.forEach(card => {
  1723. card.strength = 20;
  1724. card.charisma = 20;
  1725. card.wisdom = 20;
  1726. });
  1727. } else alert("You need to be on the map to run this cheat!");
  1728. }
  1729. },
  1730. {
  1731. name: "Max Health",
  1732. description: "Fills the player's health",
  1733. run: function () {
  1734. let i = document.createElement('iframe');
  1735. document.body.append(i);
  1736. window.alert = i.contentWindow.alert.bind(window);
  1737. i.remove();
  1738. if (window.location.pathname == "/tower/battle") 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({ myHealth: 100 });
  1739. else alert("You need to be in battle to run this cheat!");
  1740. }
  1741. },
  1742. {
  1743. name: "Max Card Stats",
  1744. description: "Maxes out player's current card (Only works on attribute select page)",
  1745. run: function () {
  1746. let i = document.createElement('iframe');
  1747. document.body.append(i);
  1748. window.alert = i.contentWindow.alert.bind(window);
  1749. i.remove();
  1750. 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;
  1751. if (stateNode.state.phase !== 'select') alert('You must be on the attribute selection page!');
  1752. else stateNode.setState({ myCard: { ...stateNode.state.myCard, strength: 20, charisma: 20, wisdom: 20 } });
  1753. }
  1754. },
  1755. {
  1756. name: "Min Enemy Stats",
  1757. description: "Makes the enemy card stats all 0 (Only works on attribute select page)",
  1758. run: function () {
  1759. let i = document.createElement('iframe');
  1760. document.body.append(i);
  1761. window.alert = i.contentWindow.alert.bind(window);
  1762. i.remove();
  1763. 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;
  1764. if (stateNode.state.phase !== 'select') alert('You must be on the attribute selection page!');
  1765. else stateNode.setState({ enemyCard: { ...stateNode.state.enemyCard, strength: 0, charisma: 0, wisdom: 0 } });
  1766. }
  1767. },
  1768. {
  1769. name: "Set Coins",
  1770. description: "Try's to set amount of tower coins you have",
  1771. inputs: [{
  1772. name: "Coins",
  1773. type: "number"
  1774. }],
  1775. run: function (coins) {
  1776. let i = document.createElement('iframe');
  1777. document.body.append(i);
  1778. window.alert = i.contentWindow.prompt.bind(window);
  1779. i.remove();
  1780. if (window.location.pathname == "/tower/battle") {
  1781. let coins = parseInt("0" + alert("How many coins would you like?"));
  1782. let { 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;
  1783. try { stateNode.props.setTowerCoins(coins); } catch { };
  1784. } else alert("You need to be in battle to run this cheat!");
  1785. }
  1786. }
  1787. ],
  1788. factory: [
  1789. {
  1790. name: "Choose Blook",
  1791. description: "Gives you a blook",
  1792. inputs: [{
  1793. name: "Blook",
  1794. type: "options",
  1795. options: [{name:"Chick",color:"#ffcd05",class:"\uD83C\uDF3D",rarity:"Common",cash:[3,7,65,400,2500],time:[1,1,1,1,1],price:[300,3e3,3e4,2e5]},{name:"Chicken",color:"#ed1c24",class:"\uD83C\uDF3D",rarity:"Common",cash:[10,40,200,1400,1e4],time:[5,4,3,2,1],price:[570,4e3,5e4,8e5]},{name:"Cow",color:"#58595b",class:"\uD83C\uDF3D",rarity:"Common",cash:[25,75,1500,25e3,25e4],time:[15,10,10,10,5],price:[500,9500,16e4,4e6]},{name:"Duck",color:"#4ab96d",class:"\uD83C\uDF3D",rarity:"Common",cash:[4,24,200,3e3,4e4],time:[3,3,3,3,3],price:[450,4200,7e4,11e5]},{name:"Goat",color:"#c59a74",class:"\uD83C\uDF3D",rarity:"Common",cash:[5,28,200,1300,12e3],time:[3,3,2,2,2],price:[500,6400,45e3,5e5]},{name:"Horse",color:"#995b3c",class:"\uD83C\uDF3D",rarity:"Common",cash:[5,20,270,1800,15e3],time:[2,2,2,2,2],price:[550,8200,65e3,6e5]},{name:"Pig",color:"#f6a9cb",class:"\uD83C\uDF3D",rarity:"Common",cash:[20,50,1300,8e3,8e4],time:[7,7,7,7,5],price:[400,11e3,8e4,13e5]},{name:"Sheep",color:"#414042",class:"\uD83C\uDF3D",rarity:"Common",cash:[6,25,250,1500,11e3],time:[3,3,3,2,2],price:[500,5e3,5e4,43e4]},{name:"Cat",color:"#f49849",class:"\uD83D\uDC3E",rarity:"Common",cash:[5,18,170,1700,13e3],time:[2,2,2,2,2],price:[480,5500,6e4,5e5]},{name:"Dog",color:"#995b3c",class:"\uD83D\uDC3E",rarity:"Common",cash:[7,25,220,1900,9e3],time:[3,3,2,2,1],price:[460,6600,7e4,73e4]},{name:"Goldfish",color:"#f18221",class:"\uD83D\uDC3E",rarity:"Common",cash:[5,40,350,3500,35e3],time:[3,3,3,3,3],price:[750,7200,84e3,95e4]},{name:"Rabbit",color:"#e7bf9a",class:"\uD83D\uDC3E",rarity:"Common",cash:[3,18,185,800,7e3],time:[2,2,2,1,1],price:[500,5800,56e3,55e4]},{name:"Hamster",color:"#ce9176",class:"\uD83D\uDC3E",rarity:"Common",cash:[10,45,450,4500,45e3],time:[4,4,4,4,4],price:[650,6500,8e4,93e4]},{name:"Turtle",color:"#619a3c",class:"\uD83D\uDC3E",rarity:"Common",cash:[23,120,1400,15e3,17e4],time:[10,10,10,10,10],price:[700,8500,11e4,13e5]},{name:"Puppy",color:"#414042",class:"\uD83D\uDC3E",rarity:"Common",cash:[4,10,75,500,3e3],time:[1,1,1,1,1],price:[450,4e3,35e3,25e4]},{name:"Kitten",color:"#58595b",class:"\uD83D\uDC3E",rarity:"Common",cash:[4,8,60,400,2e3],time:[1,1,1,1,1],price:[350,3500,26e3,17e4]},{name:"Bear",color:"#995b3c",class:"\uD83C\uDF32",rarity:"Common",cash:[12,70,550,4500,1e5],time:[7,7,6,5,5],price:[550,5500,63e3,16e5]},{name:"Moose",color:"#995b3c",class:"\uD83C\uDF32",rarity:"Common",cash:[8,45,400,3500,26e3],time:[5,5,4,4,3],price:[520,6500,58e3,7e5]},{name:"Fox",color:"#f49849",class:"\uD83C\uDF32",rarity:"Common",cash:[7,15,80,550,3e3],time:[2,2,1,1,1],price:[400,4e3,36e3,24e4]},{name:"Raccoon",color:"#6d6e71",class:"\uD83C\uDF32",rarity:"Common",cash:[5,14,185,1900,19e3],time:[2,2,2,2,2],price:[400,5e3,71e3,8e5]},{name:"Squirrel",color:"#d25927",class:"\uD83C\uDF32",rarity:"Common",cash:[3,10,65,470,2600],time:[1,1,1,1,1],price:[420,3600,32e3,21e4]},{name:"Owl",color:"#594a42",class:"\uD83C\uDF32",rarity:"Common",cash:[4,17,155,1500,15e3],time:[2,2,2,2,2],price:[500,4800,55e3,58e4]},{name:"Hedgehog",color:"#3f312b",class:"\uD83C\uDF32",rarity:"Common",cash:[11,37,340,2200,3e4],time:[5,4,3,2,2],price:[540,7e3,77e3,12e5]},{name:"Seal",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[6,17,150,1200,13e3],time:[2,2,2,2,2],price:[480,4500,43e3,52e4]},{name:"Arctic Fox",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[5,18,180,850,8500],time:[2,2,2,1,1],price:[520,550,61e3,68e4]},{name:"Snowy Owl",color:"#feda3f",class:"❄️",rarity:"Common",cash:[5,20,190,1900,16e3],time:[3,3,2,2,2],price:[370,5300,76e3,62e4]},{name:"Arctic Hare",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[6,19,85,900,7e3],time:[2,2,1,1,1],price:[540,5200,66e3,55e4]},{name:"Penguin",color:"#fb8640",class:"❄️",rarity:"Common",cash:[4,21,310,3200,33e3],time:[3,3,3,3,3],price:[400,6500,76e3,87e4]},{name:"Baby Penguin",color:"#414042",class:"❄️",rarity:"Common",cash:[3,8,70,450,2700],time:[1,1,1,1,1],price:[420,3300,33e3,23e4]},{name:"Polar Bear",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[12,75,700,6500,85e3],time:[8,7,6,5,5],price:[630,7e3,91e3,14e5]},{name:"Walrus",color:"#7d4f33",class:"❄️",rarity:"Common",cash:[11,46,420,3700,51e3],time:[5,5,4,4,4],price:[550,6200,68e3,1e6]},{name:"Tiger",color:"#f18221",class:"\uD83C\uDF34",rarity:"Common",cash:[6,20,100,975,7500],time:[3,3,1,1,1],price:[390,6e3,7e4,61e4]},{name:"Jaguar",color:"#fbb040",class:"\uD83C\uDF34",rarity:"Common",cash:[8,28,230,1600,17e3],time:[3,3,2,2,2],price:[390,6e3,7e4,61e4]},{name:"Toucan",color:"#ffca34",class:"\uD83C\uDF34",rarity:"Common",cash:[9,20,175,625,3800],time:[2,2,2,1,1],price:[520,4800,42e3,3e5]},{name:"Cockatoo",color:"#7ca1d5",class:"\uD83C\uDF34",rarity:"Common",cash:[6,35,160,1700,18e3],time:[4,4,2,2,2],price:[500,5e3,63e3,7e5]},{name:"Macaw",color:"#00aeef",class:"\uD83C\uDF34",rarity:"Common",cash:[3,8,85,850,8500],time:[1,1,1,1,1],price:[480,5400,62e3,63e4]},{name:"Parrot",color:"#ed1c24",class:"\uD83C\uDF34",rarity:"Common",cash:[3,9,90,900,9e3],time:[1,1,1,1,1],price:[540,5700,65e3,69e4]},{name:"Panther",color:"#2f2c38",class:"\uD83C\uDF34",rarity:"Common",cash:[12,28,215,2100,21e3],time:[5,3,2,2,2],price:[530,6500,76e3,87e4]},{name:"Anaconda",color:"#8a9143",class:"\uD83C\uDF34",rarity:"Common",cash:[3,15,85,1500,7600],time:[1,2,1,2,1],price:[410,5100,58e3,59e4]},{name:"Orangutan",color:"#bc6234",class:"\uD83C\uDF34",rarity:"Common",cash:[13,52,570,4300,7e4],time:[5,5,5,4,4],price:[600,7e3,8e4,14e5]},{name:"Capuchin",color:"#e0b0a6",class:"\uD83C\uDF34",rarity:"Common",cash:[4,14,160,780,8200],time:[2,2,2,1,1],price:[390,4700,57e3,68e4]},{name:"Elf",color:"#a7d054",class:"⚔️",rarity:"Uncommon",cash:[5e3,15e3,15e4,15e5,1e7],time:[1,1,1,1,1],price:[8e5,9e6,11e7,8e8]},{name:"Witch",color:"#4ab96d",class:"⚔️",rarity:"Uncommon",cash:[18e3,6e4,4e4,4e6,35e6],time:[3,3,2,2,2],price:[11e5,12e6,15e7,14e8]},{name:"Wizard",color:"#5a459c",class:"⚔️",rarity:"Uncommon",cash:[19500,65e3,44e4,46e5,4e6],time:[3,3,2,2,2],price:[13e5,135e5,16e7,16e8]},{name:"Fairy",color:"#df6d9c",class:"⚔️",rarity:"Uncommon",cash:[18500,6e4,62e4,44e5,38e6],time:[3,3,3,2,2],price:[12e5,125e5,15e6,15e8]},{name:"Slime Monster",color:"#2fa04a",class:"⚔️",rarity:"Uncommon",cash:[35e3,14e4,1e6,11e6,11e7],time:[5,5,4,4,4],price:[16e5,15e6,2e8,23e8]},{name:"Jester",color:"#be1e2d",class:"⚔️",rarity:"Rare",cash:[25e3,1e5,68e4,65e5,32e6],time:[3,3,2,2,1],price:[2e6,21e6,23e7,26e8]},{name:"Dragon",color:"#2fa04a",class:"⚔️",rarity:"Rare",cash:[36e3,15e4,15e5,15e6,15e7],time:[4,4,4,4,4],price:[23e5,24e6,27e7,3e9]},{name:"Unicorn",color:"#f6afce",class:"⚔️",rarity:"Epic",cash:[24e3,15e4,14e5,7e6,75e6],time:[2,2,2,1,1],price:[45e5,45e6,55e7,65e8]},{name:"Queen",color:"#9e1f63",class:"⚔️",rarity:"Rare",cash:[24e3,95e3,95e4,97e5,95e6],time:[3,3,3,3,3],price:[19e5,2e7,23e7,25e8]},{name:"King",color:"#ee2640",class:"⚔️",rarity:"Legendary",cash:[75e3,4e5,6e6,9e7,125e7],time:[5,5,5,5,5],price:[6e6,95e6,16e8,25e9]},{name:"Two of Spades",color:"#414042",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[4500,14e3,14e4,14e5,9e6],time:[1,1,1,1,1],price:[77e4,83e5,98e6,71e7]},{name:"Eat Me",color:"#d58c55",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[13e3,45e3,45e4,45e5,5e7],time:[2,2,2,2,2],price:[13e5,14e6,16e7,2e9]},{name:"Drink Me",color:"#dd7399",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[12e3,4e4,4e5,4e6,45e6],time:[2,2,2,2,2],price:[12e5,12e6,14e7,18e8]},{name:"Alice",color:"#4cc9f5",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[13e3,42e3,21e4,21e5,23e6],time:[2,2,1,1,1],price:[12e5,13e6,15e7,19e8]},{name:"Queen of Hearts",color:"#d62027",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[23e3,87e3,62e4,75e5,9e7],time:[4,4,3,3,3],price:[13e5,13e6,18e7,24e8]},{name:"Dormouse",color:"#89d6f8",class:"\uD83C\uDFF0",rarity:"Rare",cash:[17e3,68e3,7e5,35e5,35e6],time:[2,2,1,1,1],price:[2e6,22e6,25e7,28e8]},{name:"White Rabbit",color:"#ffcd05",class:"\uD83C\uDFF0",rarity:"Rare",cash:[26e3,105e3,11e6,77e5,72e6],time:[3,3,3,2,2],price:[2e6,23e6,28e7,29e8]},{name:"Cheshire Cat",color:"#dd7399",class:"\uD83C\uDFF0",rarity:"Rare",cash:[32e3,1e5,9e5,9e6,6e7],time:[4,3,3,3,2],price:[18e5,19e6,22e7,24e8]},{name:"Caterpillar",color:"#00c0f3",class:"\uD83C\uDFF0",rarity:"Epic",cash:[1e4,7e4,65e4,75e5,85e6],time:[1,1,1,1,1],price:[42e5,42e6,54e7,69e8]},{name:"Mad Hatter",color:"#914f93",class:"\uD83C\uDFF0",rarity:"Epic",cash:[38e3,25e4,15e5,14e6,8e7],time:[3,3,2,2,1],price:[48e5,48e6,52e7,66e8]},{name:"King of Hearts",color:"#c62127",class:"\uD83C\uDFF0",rarity:"Legendary",cash:[8e4,42e4,68e5,1e8,15e8],time:[5,5,5,5,5],price:[7e6,11e7,18e8,3e10]},{name:"Earth",color:"#416eb5",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[15e3,45e3,6e5,65e5,65e6],time:[3,3,3,3,3],price:[1e6,11e6,15e7,17e8]},{name:"Meteor",color:"#c68c3c",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[23e3,65e3,7e5,45e5,2e7],time:[5,4,3,2,1],price:[95e4,13e6,16e7,16e8]},{name:"Stars",color:"#19184d",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[1e4,4e4,2e5,2e6,18e6],time:[2,2,1,1,1],price:[14e5,14e6,15e7,15e8]},{name:"Alien",color:"#8dc63f",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[3e4,1e5,1e6,11e6,85e6],time:[4,4,4,4,4],price:[15e5,17e6,19e7,17e8]},{name:"Planet",color:"#9dc6ea",class:"\uD83D\uDE80",rarity:"Rare",cash:[25e3,1e5,9e5,9e6,9e7],time:[3,3,3,3,3],price:[2e6,21e6,21e7,24e8]},{name:"UFO",color:"#a15095",class:"\uD83D\uDE80",rarity:"Rare",cash:[17e3,7e4,7e5,7e6,7e7],time:[2,2,2,2,2],price:[21e5,23e6,25e7,28e8]},{name:"Spaceship",color:"#ffcb29",class:"\uD83D\uDE80",rarity:"Epic",cash:[6e4,32e4,21e5,15e6,85e6],time:[5,4,3,2,1],price:[48e5,46e6,54e7,68e8]},{name:"Astronaut",color:"#9bd4ee",class:"\uD83D\uDE80",rarity:"Legendary",cash:[45e3,26e4,25e5,38e6,55e7],time:[3,3,2,2,2],price:[65e5,1e8,17e8,27e9]},{name:"Lil Bot",color:"#3e564a",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[4e3,12e3,18e4,19e5,25e6],time:[1,1,1,1,1],price:[73e4,12e6,13e7,19e8]},{name:"Lovely Bot",color:"#f179af",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[16e3,65e3,65e4,48e5,42e6],time:[3,3,3,2,2],price:[13e5,14e6,17e7,16e8]},{name:"Angry Bot",color:"#f1613a",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[22e3,85e3,8e5,62e5,65e6],time:[4,4,4,3,3],price:[12e5,13e6,15e7,17e8]},{name:"Happy Bot",color:"#51ba6b",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[11e3,45e3,5e5,25e5,3e7],time:[2,2,2,1,1],price:[14e5,15e6,18e7,24e8]},{name:"Watson",color:"#d69b5a",class:"\uD83E\uDD16",rarity:"Rare",cash:[24e3,1e5,1e6,1e7,1e8],time:[3,3,3,3,3],price:[2e6,22e6,24e7,26e8]},{name:"Buddy Bot",color:"#9dc6ea",class:"\uD83E\uDD16",rarity:"Rare",cash:[22e3,95e3,65e4,65e5,65e6],time:[3,3,2,2,2],price:[19e5,21e6,23e7,25e8]},{name:"Brainy Bot",color:"#9ecf7a",class:"\uD83E\uDD16",rarity:"Epic",cash:[5e4,25e4,21e5,21e6,17e7],time:[4,3,3,3,2],price:[5e6,46e6,5e8,67e8]},{name:"Mega Bot",color:"#d71f27",class:"\uD83E\uDD16",rarity:"Legendary",cash:[8e4,43e4,42e5,62e6,1e9],time:[5,5,3,3,3],price:[7e6,12e7,19e8,35e9]}].map(x => ({ name: x.name, value: JSON.stringify(x) }))
  1796. }],
  1797. run: function (blook) {
  1798. let i = document.createElement('iframe');
  1799. document.body.append(i);
  1800. window.alert = i.contentWindow.alert.bind(window);
  1801. i.remove();
  1802. 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;
  1803. if (stateNode.state.blooks.length >= 10) alert("Choose a blook to replace");
  1804. stateNode.chooseBlook(JSON.parse(blook));
  1805. }
  1806. },
  1807. {
  1808. name: "Free Upgrades",
  1809. description: "Sets upgrade prices to 0 for all current blooks",
  1810. run: function () {
  1811. let { 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;
  1812. stateNode.setState(state => ({ ...state, blooks: state.blooks.map(blook => ({ ...blook, price: [0, 0, 0, 0] })) }));
  1813. }
  1814. },
  1815. {
  1816. name: "Max Blooks",
  1817. description: "Maxes out all your blooks' levels",
  1818. run: function () {
  1819. 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.state.blooks.forEach(blook => blook.level = 4);
  1820. }
  1821. },
  1822. {
  1823. name: "Remove Glitches",
  1824. description: "Removes all enemy glitches",
  1825. run: function () {
  1826. let { 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;
  1827. stateNode.setState({
  1828. bits: 0,
  1829. ads: [],
  1830. hazards: [],
  1831. color: "",
  1832. lol: false,
  1833. joke: false,
  1834. slow: false,
  1835. dance: false,
  1836. glitch: "",
  1837. glitcherName: "",
  1838. glitcherBlook: ""
  1839. });
  1840. clearTimeout(stateNode.adTimeout);
  1841. clearInterval(stateNode.hazardInterval);
  1842. clearTimeout(stateNode.nightTimeout);
  1843. clearTimeout(stateNode.glitchTimeout);
  1844. clearTimeout(stateNode.lolTimeout);
  1845. clearTimeout(stateNode.jokeTimeout);
  1846. clearTimeout(stateNode.slowTimeout);
  1847. clearTimeout(stateNode.danceTimeout);
  1848. clearTimeout(stateNode.nameTimeout);
  1849. }
  1850. },
  1851. {
  1852. name: "Send Glitch",
  1853. description: "Sends a glitch to everyone else playing",
  1854. inputs: [{
  1855. name: "Glitch",
  1856. type: "options",
  1857. options: Object.entries({ lb: "Lunch Break", as: "Ad Spam", e37: "Error 37", nt: "Night Time", lo: "#LOL", j: "Jokester", sm: "Slow Mo", dp: "Dance Party", v: "Vortex", r: "Reverse", f: "Flip", m: "Micro" }).map(([value, name]) => ({ name, value }))
  1858. }],
  1859. run: function (val) {
  1860. let { 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;
  1861. stateNode.safe = true;
  1862. stateNode.props.liveGameController.setVal({ path: `c/${stateNode.props.client.name}/tat`, val });
  1863. }
  1864. },
  1865. {
  1866. name: "Set All MegaBot",
  1867. description: "Sets all your blooks to maxed out Mega Bots",
  1868. run: function () {
  1869. 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({
  1870. blooks: new Array(10).fill({
  1871. name: "Mega Bot",
  1872. color: "#d71f27",
  1873. class: "🤖",
  1874. rarity: "Legendary",
  1875. cash: [8e4, 43e4, 42e5, 62e6, 1e9],
  1876. time: [5, 5, 3, 3, 3],
  1877. price: [7e6, 12e7, 19e8, 35e9],
  1878. active: false,
  1879. level: 4,
  1880. bonus: 5.5
  1881. })
  1882. });
  1883. }
  1884. },
  1885. {
  1886. name: "Set Cash",
  1887. description: "Sets amount of cash you have",
  1888. inputs: [{
  1889. name: "Cash",
  1890. type: "number"
  1891. }],
  1892. run: function (cash) {
  1893. 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({ cash });
  1894. }
  1895. }
  1896. ],
  1897. fishing: [
  1898. {
  1899. name: "Frenzy",
  1900. description: "Sets everyone to frenzy mode",
  1901. run: function () {
  1902. let { 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;
  1903. stateNode.props.liveGameController.setVal({
  1904. path: `c/${stateNode.props.client.name}`,
  1905. val: {
  1906. b: stateNode.props.client.blook,
  1907. w: stateNode.state.weight,
  1908. f: "Frenzy",
  1909. s: true
  1910. }
  1911. });
  1912. }
  1913. },
  1914. {
  1915. name: "Remove Distractions",
  1916. description: "Removes distractions",
  1917. type: "toggle",
  1918. enabled: false,
  1919. data: null,
  1920. run: function () {
  1921. if (!this.enabled) {
  1922. this.enabled = true;
  1923. this.data = setInterval(() => {
  1924. 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({ party: "" });
  1925. }, 50);
  1926. } else {
  1927. this.enabled = false;
  1928. clearInterval(this.data);
  1929. this.data = null;
  1930. }
  1931. }
  1932. },
  1933. {
  1934. name: "Send Distraction",
  1935. description: "Sends a distraction to everyone",
  1936. inputs: [{
  1937. name: "Distraction",
  1938. type: "options",
  1939. options: ["Crab", "Jellyfish", "Frog", "Pufferfish", "Octopus", "Narwhal", "Megalodon", "Blobfish", "Baby Shark"]
  1940. }],
  1941. run: function (f) {
  1942. let i = document.createElement('iframe');
  1943. document.body.append(i);
  1944. window.alert = i.contentWindow.alert.bind(window);
  1945. i.remove();
  1946. let { 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;
  1947. stateNode.safe = true;
  1948. stateNode.props.liveGameController.setVal({
  1949. path: `c/${stateNode.props.client.name}`,
  1950. val: {
  1951. b: stateNode.props.client.blook,
  1952. w: stateNode.state.weight, f, s: true
  1953. }
  1954. });
  1955. }
  1956. },
  1957. {
  1958. name: "Set Lure",
  1959. description: "Sets fishing lure (range 1 - 5)",
  1960. inputs: [{
  1961. name: "Lure (1 - 5)",
  1962. type: "number",
  1963. min: 1,
  1964. max: 5
  1965. }],
  1966. run: function (lure) {
  1967. 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({ lure: Math.max(Math.min(lure - 1, 4), 0) });
  1968. }
  1969. },
  1970. {
  1971. name: "Set Weight",
  1972. description: "Sets weight",
  1973. inputs: [{
  1974. name: "Weight",
  1975. type: "number"
  1976. }],
  1977. run: function (weight) {
  1978. let { 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;
  1979. stateNode.setState({ weight, weight2: weight });
  1980. stateNode.props.liveGameController.setVal({
  1981. path: `c/${stateNode.props.client.name}`,
  1982. val: {
  1983. b: stateNode.props.client.blook,
  1984. w: weight,
  1985. f: ["Crab", "Jellyfish", "Frog", "Pufferfish", "Octopus", "Narwhal", "Megalodon", "Blobfish", "Baby Shark"][Math.floor(Math.random() * 9)]
  1986. }
  1987. });
  1988. }
  1989. }
  1990. ],
  1991. flappy: [
  1992. {
  1993. name: "Toggle Ghost",
  1994. description: "Lets you go through the pipes",
  1995. type: "toggle",
  1996. enabled: false,
  1997. run: function () {
  1998. this.enabled = !this.enabled;
  1999. Object.values(document.querySelector("#phaser-bouncy"))[1].children[0]._owner.stateNode.state.game.scene.physics.world.bodies.entries.forEach(x => x.gameObject.frame.texture.key.startsWith("blook") && (x.checkCollision.none = this.enabled, x.gameObject.setAlpha(this.enabled ? 0.5 : 1)));
  2000. }
  2001. },
  2002. {
  2003. name: "Set Score",
  2004. description: "Sets flappy blook score",
  2005. inputs: [{
  2006. name: "Score",
  2007. type: "number"
  2008. }],
  2009. run: function (score) {
  2010. Object.values(document.querySelector("#phaser-bouncy"))[1].children[0]._owner.stateNode.setState({ score });
  2011. }
  2012. }
  2013. ],
  2014. gold: [
  2015. {
  2016. name: "Always Triple",
  2017. description: "Always get triple gold",
  2018. type: "toggle",
  2019. enabled: false,
  2020. data: null,
  2021. run: function () {
  2022. let { 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;
  2023. stateNode._choosePrize ||= stateNode.choosePrize;
  2024. if (!this.enabled) {
  2025. this.enabled = true;
  2026. this.data = setInterval(() => {
  2027. stateNode.choosePrize = function (i) {
  2028. stateNode.state.choices[i] = { type: "multiply", val: 3, text: "Triple Gold!", blook: "Unicorn" };
  2029. stateNode._choosePrize(i);
  2030. }
  2031. }, 50);
  2032. } else {
  2033. this.enabled = false;
  2034. clearInterval(this.data);
  2035. this.data = null;
  2036. stateNode.choosePrize = stateNode._choosePrize || stateNode.choosePrize;
  2037. }
  2038. }
  2039. },
  2040. {
  2041. name: "Auto Choose",
  2042. description: "Automatically picks the option that would give you the most gold",
  2043. type: "toggle",
  2044. enabled: false,
  2045. data: null,
  2046. run: function () {
  2047. if (!this.enabled) {
  2048. this.enabled = true;
  2049. this.data = setInterval(async () => {
  2050. try {
  2051. let { 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;
  2052. if (stateNode.state.stage === "prize") {
  2053. const players = Object.entries(await new Promise(r => stateNode.props.liveGameController.getDatabaseVal("c", c => c && r(c))) || []).filter(x => x[0] != stateNode.props.client.name).sort((a, b) => b[1].g - a[1].g)[0]?.[1]?.g || 0;
  2054. let max = 0; index = -1;
  2055. for (let i = 0; i < stateNode.state.choices.length; i++) {
  2056. const { type, val } = stateNode.state.choices[i];
  2057. let value = stateNode.state.gold;
  2058. switch (type) {
  2059. case "gold": value = stateNode.state.gold + val || stateNode.state.gold; break;
  2060. case "multiply":
  2061. case "divide": value = Math.round(stateNode.state.gold * val) || stateNode.state.gold; break;
  2062. case "swap": value = players || stateNode.state.gold;
  2063. case "take": value = stateNode.state.gold + players * val || stateNode.state.gold;
  2064. }
  2065. if ((value || 0) <= max) continue;
  2066. max = value, index = i + 1;
  2067. }
  2068. document.querySelector(`div[class^='styles__choice${index}']`).click();
  2069. }
  2070. } catch { }
  2071. }, 50);
  2072. } else {
  2073. this.enabled = false;
  2074. clearInterval(this.data);
  2075. this.data = null;
  2076. }
  2077. }
  2078. },
  2079. {
  2080. name: "Chest ESP",
  2081. description: "Shows what each chest will give you",
  2082. type: "toggle",
  2083. enabled: false,
  2084. data: null,
  2085. run: function () {
  2086. if (!this.enabled) {
  2087. this.enabled = true;
  2088. this.data = setInterval(() => {
  2089. 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.state.choices.forEach(({ text }, index) => {
  2090. let chest = document.querySelector(`div[class^='styles__choice${index + 1}']`);
  2091. if (!chest || chest.querySelector('div')) return;
  2092. let choice = document.createElement('div');
  2093. choice.style.color = "white";
  2094. choice.style.fontFamily = "Eczar";
  2095. choice.style.fontSize = "2em";
  2096. choice.style.display = "flex";
  2097. choice.style.justifyContent = "center";
  2098. choice.style.transform = "translateY(200px)";
  2099. choice.innerText = text;
  2100. chest.append(choice);
  2101. });
  2102. }, 50);
  2103. } else {
  2104. this.enabled = false;
  2105. clearInterval(this.data);
  2106. this.data = null;
  2107. }
  2108. }
  2109. },
  2110. {
  2111. name: "Reset Players Gold",
  2112. description: "Sets a player's gold to 0",
  2113. inputs: [{
  2114. name: "Player",
  2115. type: "options",
  2116. options: () => {
  2117. let { 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;
  2118. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  2119. }
  2120. }],
  2121. run: function (target) {
  2122. let { stateNode: { props, state } } = 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;
  2123. props.liveGameController.setVal({
  2124. path: "c/".concat(props.client.name),
  2125. val: {
  2126. b: props.client.blook,
  2127. g: state.gold,
  2128. tat: `${target}:swap:0`
  2129. }
  2130. });
  2131. }
  2132. },
  2133. {
  2134. name: "Set Gold",
  2135. description: "Sets amount of gold",
  2136. inputs: [{
  2137. name: "Gold",
  2138. type: "number"
  2139. }],
  2140. run: function (gold) {
  2141. let { 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;
  2142. stateNode.setState({ gold, gold2: gold });
  2143. stateNode.props.liveGameController.setVal({
  2144. path: "c/".concat(stateNode.props.client.name),
  2145. val: {
  2146. b: stateNode.props.client.blook,
  2147. g: gold
  2148. }
  2149. });
  2150. }
  2151. },
  2152. {
  2153. name: "Swap Gold",
  2154. description: "Swaps gold with someone",
  2155. inputs: [{
  2156. name: "Player",
  2157. type: "options",
  2158. options: () => {
  2159. let { 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;
  2160. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  2161. }
  2162. }],
  2163. run: function (target) {
  2164. let { 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;
  2165. stateNode.props.liveGameController.getDatabaseVal("c", (players) => {
  2166. if (!players?.[target]) return;
  2167. let { g } = players[target];
  2168. stateNode.props.liveGameController.setVal({
  2169. path: "c/".concat(stateNode.props.client.name),
  2170. val: {
  2171. b: stateNode.props.client.blook,
  2172. g,
  2173. tat: `${target}:swap:${stateNode.state.gold}`
  2174. }
  2175. });
  2176. stateNode.setState({ gold: g, gold2: g });
  2177. });
  2178. }
  2179. },
  2180. {
  2181. name: "Reset All Players' Gold",
  2182. description: "Set's everyone else's gold to 0",
  2183. run: function () {
  2184. let i = document.createElement('iframe');
  2185. document.body.append(i);
  2186. window.alert = i.contentWindow.alert.bind(window);
  2187. i.remove();
  2188. let { stateNode: { props, state } } = 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;
  2189. let count = 0;
  2190. props.liveGameController.getDatabaseVal("c", async (players) => {
  2191. if (players) for (const player of Object.keys(players)) {
  2192. props.liveGameController.setVal({
  2193. path: "c/".concat(props.client.name),
  2194. val: {
  2195. b: props.client.blook,
  2196. g: state.gold,
  2197. tat: `${player}:swap:0`
  2198. }
  2199. });
  2200. count++;
  2201. await new Promise(r => setTimeout(r, 4000));
  2202. };
  2203. alert(`Reset ${count} players' gold!`);
  2204. });
  2205. }
  2206. }
  2207. ],
  2208. kingdom: [
  2209. {
  2210. name: "Choice ESP",
  2211. description: "Shows you what will happen if you say Yes or No",
  2212. type: "toggle",
  2213. enabled: false,
  2214. data: null,
  2215. run: function () {
  2216. if (!this.enabled) {
  2217. this.enabled = true;
  2218. let stats = ['materials', 'people', 'happiness', 'gold'];
  2219. let elements = Object.fromEntries([...document.querySelectorAll('[class^=styles__statContainer]')].map((container, i) => [stats[i], container]));
  2220. this.data = setInterval(() => {
  2221. let { guest: data, phase } = 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.state;
  2222. if (phase == "choice") {
  2223. Array.from(document.getElementsByClassName('choiceESP')).forEach(x => x.remove());
  2224. Object.entries(data.yes || {}).forEach(x => {
  2225. if (x[0] == 'msg' || !stats.includes(x[0])) return;
  2226. let element = document.createElement('div');
  2227. element.className = 'choiceESP';
  2228. element.style = 'font-size: 24px; color: rgb(75, 194, 46); font-weight: bolder;';
  2229. element.innerText = String(x[1]);
  2230. elements[x[0]].appendChild(element);
  2231. });
  2232. Object.entries(data.no || {}).forEach(x => {
  2233. if (x[0] == 'msg' || !stats.includes(x[0])) return;
  2234. let element = document.createElement('div');
  2235. element.className = 'choiceESP';
  2236. element.style = 'font-size: 24px; color: darkred; font-weight: bolder;';
  2237. element.innerText = String(x[1]);
  2238. elements[x[0]].appendChild(element);
  2239. });
  2240. }
  2241. }, 50);
  2242. } else {
  2243. this.enabled = false;
  2244. clearInterval(this.data);
  2245. Array.from(document.getElementsByClassName('choiceESP')).forEach(x => x.remove());
  2246. this.data = null;
  2247. }
  2248. }
  2249. },
  2250. {
  2251. name: "Disable Tax Toucan",
  2252. description: "Tax evasion",
  2253. run: function () {
  2254. 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.taxCounter = Number.MAX_VALUE;
  2255. }
  2256. },
  2257. {
  2258. name: "Max Stats",
  2259. description: "Sets all resources to the max",
  2260. run: function () {
  2261. 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({ materials: 100, people: 100, happiness: 100, gold: 100 });
  2262. }
  2263. },
  2264. {
  2265. name: "Set Guests",
  2266. description: "Sets the amount of guests you've seen",
  2267. inputs: [{
  2268. name: "Guests",
  2269. type: "number"
  2270. }],
  2271. run: function (guestScore) {
  2272. 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({ guestScore });
  2273. }
  2274. },
  2275. {
  2276. name: "Skip Guest",
  2277. description: "Skips the current guest",
  2278. run: function () {
  2279. 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.nextGuest();
  2280. }
  2281. }
  2282. ],
  2283. racing: [
  2284. {
  2285. name: "Instant Win",
  2286. description: "Instantly Wins the race",
  2287. run: function () {
  2288. 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;
  2289. stateNode.setState({ progress: stateNode.state.goalAmount }, () => {
  2290. const { state: { question } } = stateNode;
  2291. try {
  2292. [...document.querySelectorAll(`[class*="answerContainer"]`)][question.answers.map((x, i) => question.correctAnswers.includes(x) ? i : null).filter(x => x != null)[0]]?.click?.();
  2293. } catch { }
  2294. });
  2295. }
  2296. },
  2297. {
  2298. name: "Set Questions",
  2299. description: "Sets the number of questions left",
  2300. inputs: [{
  2301. name: "Questions",
  2302. type: "number"
  2303. }],
  2304. run: function (progress) {
  2305. let { 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;
  2306. progress = stateNode.props.client.amount - progress;
  2307. stateNode.setState({ progress });
  2308. stateNode.props.liveGameController.setVal({
  2309. path: "c/".concat(stateNode.props.client.name),
  2310. val: {
  2311. b: stateNode.props.client.blook,
  2312. pr: progress
  2313. }
  2314. });
  2315. }
  2316. }
  2317. ],
  2318. royale: [
  2319. {
  2320. name: "Auto Answer (Toggle)",
  2321. description: "Toggles auto answer on",
  2322. type: "toggle",
  2323. enabled: false,
  2324. data: null,
  2325. run: function () {
  2326. if (!this.enabled) {
  2327. this.enabled = true;
  2328. this.data = setInterval(() => {
  2329. let { 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;
  2330. stateNode?.onAnswer?.(true, stateNode.props.client.question.correctAnswers[0]);
  2331. }, 50);
  2332. } else {
  2333. this.enabled = false;
  2334. clearInterval(this.data);
  2335. this.data = null;
  2336. }
  2337. }
  2338. },
  2339. {
  2340. name: "Auto Answer",
  2341. description: "Chooses the correct answer for you",
  2342. run: function () {
  2343. let { 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;
  2344. stateNode?.onAnswer?.(true, stateNode.props.client.question.correctAnswers[0]);
  2345. }
  2346. },
  2347. ],
  2348. rush: [
  2349. {
  2350. name: "Set Blooks",
  2351. description: "Sets amount of blooks you or your team has",
  2352. inputs: [{
  2353. name: "Blooks",
  2354. type: "number"
  2355. }],
  2356. run: function (numBlooks) {
  2357. let { 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;
  2358. stateNode.setState({ numBlooks });
  2359. stateNode.isTeam ? stateNode.props.liveGameController.setVal({
  2360. path: `a/${stateNode.props.client.name}/bs`,
  2361. val: numBlooks
  2362. }) : stateNode.props.liveGameController.setVal({
  2363. path: `c/${stateNode.props.client.name}/bs`,
  2364. val: numDefense
  2365. });
  2366. }
  2367. },
  2368. {
  2369. name: "Set Defense",
  2370. description: "Sets amount of defense you or your team has (Max 4)",
  2371. inputs: [{
  2372. name: "Defense (max 4)",
  2373. type: "number",
  2374. max: 4
  2375. }],
  2376. run: function (defense) {
  2377. let numDefense = Math.min(defense, 4);
  2378. let { 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;
  2379. stateNode.setState({ numDefense });
  2380. stateNode.isTeam ? stateNode.props.liveGameController.setVal({
  2381. path: `a/${stateNode.props.client.name}/d`,
  2382. val: numDefense
  2383. }) : stateNode.props.liveGameController.setVal({
  2384. path: `c/${stateNode.props.client.name}/d`,
  2385. val: numDefense
  2386. });
  2387. }
  2388. }
  2389. ],
  2390. workshop: [
  2391. {
  2392. name: "Remove Distractions",
  2393. description: "Removes all enemy distractions",
  2394. run: function () {
  2395. 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({ fog: !1, dusk: !1, wind: !1, plow: !1, blizzard: !1, force: !1, canada: !1, trees: [!1, !1, !1, !1, !1, !1, !1, !1, !1, !1] });
  2396. }
  2397. },
  2398. {
  2399. name: "Send Distraction",
  2400. description: "Sends a distraction to everyone else playing",
  2401. inputs: [{
  2402. name: "Distraction",
  2403. type: "options",
  2404. options: Object.entries({ c: "Oh Canada", b: "Blizzard", f: "Fog Spell", d: "Dark & Dusk", w: "Howling Wind", g: "Gift Time!", t: "TREES", s: "Snow Plow", fr: "Use The Force" }).map(([value, name]) => ({ name, value }))
  2405. }],
  2406. run: function (val) {
  2407. let { 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;
  2408. stateNode.safe = true;
  2409. stateNode.props.liveGameController.setVal({ path: `c/${stateNode.props.client.name}/tat`, val });
  2410. }
  2411. },
  2412. {
  2413. name: "Set Toys",
  2414. description: "Sets amount of toys",
  2415. inputs: [{
  2416. name: "Toys",
  2417. type: "number"
  2418. }],
  2419. run: function (toys) {
  2420. let { 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;
  2421. stateNode.setState({ toys });
  2422. stateNode.props.liveGameController.setVal({
  2423. path: "c/".concat(stateNode.props.client.name),
  2424. val: {
  2425. b: stateNode.props.client.blook,
  2426. t: toys
  2427. }
  2428. });
  2429. }
  2430. },
  2431. {
  2432. name: "Set Toys Per Question",
  2433. description: "Sets amount of toys per question",
  2434. inputs: [{
  2435. name: "Toys Per Question",
  2436. type: "number"
  2437. }],
  2438. run: function (toysPerQ) {
  2439. 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({ toysPerQ });
  2440. }
  2441. },
  2442. {
  2443. name: "Swap Toys",
  2444. description: "Swaps toys with someone",
  2445. inputs: [{
  2446. name: "Player",
  2447. type: "options",
  2448. options: () => {
  2449. let { 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;
  2450. return new Promise(res => stateNode.props.liveGameController._liveApp ? stateNode.props.liveGameController.getDatabaseVal("c", (players) => players && res(Object.keys(players))) : res([]));
  2451. }
  2452. }],
  2453. run: function (target) {
  2454. let { 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;
  2455. stateNode.props.liveGameController.getDatabaseVal("c", (players) => {
  2456. if (players && Object.keys(players).map(x => x.toLowerCase()).includes(target.toLowerCase())) {
  2457. let [player, { t: toys }] = Object.entries(players).find(([name]) => name.toLowerCase() == target.toLowerCase());
  2458. stateNode.props.liveGameController.setVal({
  2459. path: "c/".concat(stateNode.props.client.name),
  2460. val: {
  2461. b: stateNode.props.client.blook,
  2462. t: toys,
  2463. tat: `${player}:swap:${stateNode.state.toys}`
  2464. }
  2465. });
  2466. stateNode.setState({ toys });
  2467. }
  2468. });
  2469. }
  2470. }
  2471. ],
  2472. settings: [
  2473. {
  2474. name: "Import Settings",
  2475. description: "Import a custom theme",
  2476. inputs: [
  2477. {
  2478. name: "JSON Data",
  2479. type: "string"
  2480. }
  2481. ],
  2482. run: function (theme) {
  2483. try {
  2484. JSON.parse(theme);
  2485. } catch (e) {
  2486. return alert("Invalid JSON provided");
  2487. }
  2488. theme = { backgroundColor: "rgb(11, 194, 207)", infoColor: "#9a49aa", cheatList: "#9a49aa", defaultButton: "#9a49aa", disabledButton: "#A02626", enabledButton: "#47A547", textColor: "white", inputColor: "#7a039d", contentBackground: "rgb(64, 17, 95)", ...JSON.parse(theme) }
  2489. Settings.setItem("theme", theme);
  2490. for (const prop in theme) variables.sheet.cssRules[0].style.setProperty(`--${prop}`, theme[prop]);
  2491. }
  2492. },
  2493. {
  2494. name: "Export Settings",
  2495. description: "Export the current theme to JSON",
  2496. run: async function () {
  2497. await navigator.clipboard.writeText(JSON.stringify(Settings.data.theme, null, 4));
  2498. prompt("Text copied to clipboard. (Paste below to test)");
  2499. }
  2500. },
  2501. {
  2502. name: "Defaults",
  2503. description: "Changes all the settings to a preset",
  2504. inputs: [
  2505. {
  2506. name: "Theme",
  2507. type: "options",
  2508. options: [
  2509. {
  2510. name: "Default",
  2511. value: {
  2512. backgroundColor: "rgb(11, 194, 207)",
  2513. infoColor: "#9a49aa",
  2514. cheatList: "#9a49aa",
  2515. defaultButton: "#9a49aa",
  2516. disabledButton: "#A02626",
  2517. enabledButton: "#47A547",
  2518. textColor: "white",
  2519. inputColor: "#7a039d",
  2520. contentBackground: "rgb(64, 17, 95)"
  2521. }
  2522. },
  2523. {
  2524. name: "Blacket",
  2525. value: {
  2526. backgroundColor: "#4f4f4f",
  2527. infoColor: "#2f2f2f",
  2528. cheatList: "#2f2f2f",
  2529. defaultButton: "#4f4f4f",
  2530. disabledButton: "#eb6234",
  2531. enabledButton: "#00c20c",
  2532. textColor: "white",
  2533. inputColor: "#3f3f3f",
  2534. contentBackground: "#2f2f2f"
  2535. }
  2536. },
  2537. {
  2538. name: "Skool.lol",
  2539. value: {
  2540. backgroundColor: "linear-gradient(90deg, rgba(104,45,140,1) 220px, rgba(237,30,121,1) 100%)",
  2541. cheatList: "#1e2124",
  2542. infoColor: "#1e2124",
  2543. defaultButton: "#36393e",
  2544. inputColor: "#1e2124",
  2545. enabledButton: "#9c9a9a",
  2546. textColor: "white",
  2547. disabledButton: "#171717",
  2548. contentBackground: "#292929"
  2549. }
  2550. },
  2551. {
  2552. name: "Blue - Purple Background",
  2553. value: {
  2554. backgroundColor: "linear-gradient(162.5deg, rgba(0,183,255,1) 220px, rgba(128,0,255,1) 100%)"
  2555. }
  2556. },
  2557. {
  2558. name: "Saint Patricks Background",
  2559. value: {
  2560. backgroundColor: "rgb(9, 148, 65)"
  2561. }
  2562. },
  2563. {
  2564. name: "Halloween Background",
  2565. value: {
  2566. backgroundColor: "rgb(41, 41, 41)"
  2567. }
  2568. },
  2569. {
  2570. name: "Fall Background",
  2571. value: {
  2572. backgroundColor: "rgb(224, 159, 62)"
  2573. }
  2574. },
  2575. {
  2576. name: "Winter Background",
  2577. value: {
  2578. backgroundColor: "linear-gradient(rgb(49, 170, 224), rgb(187, 221, 255))"
  2579. }
  2580. },
  2581. {
  2582. name: "Crypto Hack",
  2583. value: {
  2584. backgroundColor: "radial-gradient(#11581e,#041607)",
  2585. infoColor: "#1a1a1a",
  2586. cheatList: "#1a1a1a",
  2587. defaultButton: "rgb(88 175 88)",
  2588. disabledButton: "#A02626",
  2589. enabledButton: "#0b601b",
  2590. textColor: "white",
  2591. inputColor: "rgb(0 0 0 / 25%)",
  2592. contentBackground: "#11581e"
  2593. }
  2594. },
  2595. {
  2596. name: "Fishing Frenzy",
  2597. value: {
  2598. backgroundColor: "linear-gradient(180deg,#9be2fe 0,#67d1fb)",
  2599. infoColor: "#c8591e",
  2600. cheatList: "#c8591e",
  2601. defaultButton: "#ff751a",
  2602. disabledButton: "#bf0e0e",
  2603. enabledButton: "#2fb62f",
  2604. textColor: "white",
  2605. inputColor: "rgb(0 0 0 / 25%)",
  2606. contentBackground: "radial-gradient(#02b0ea 40%, #1d86ea)"
  2607. }
  2608. },
  2609. {
  2610. name: "Deceptive Dinos",
  2611. value: {
  2612. backgroundColor: "radial-gradient(rgba(220, 184, 86, 0), rgba(220, 184, 86, 0.4)), url(\"https://ac.blooket.com/play/111cb7e0ee6607ac3d1a13d534c0e0f1.png\"), #ead49a",
  2613. infoColor: "#af8942",
  2614. cheatList: "#af8942",
  2615. defaultButton: "#af8942",
  2616. disabledButton: "#A02626",
  2617. enabledButton: "#47A547",
  2618. textColor: "white",
  2619. inputColor: "rgb(0 0 0 / 10%)",
  2620. contentBackground: "radial-gradient(rgba(1,104,162,.6),rgba(24,55,110,.5)),radial-gradient(#2783b4 1.5px,#18376e 0) center / 24px 24px"
  2621. }
  2622. },
  2623. {
  2624. name: "Blook Rush",
  2625. value: {
  2626. backgroundColor: "repeating-linear-gradient(45deg,white,white 8%,#e6e6e6 0,#e6e6e6 16%)",
  2627. defaultButton: "#36c",
  2628. inputColor: "rgb(0 0 0 / 25%)",
  2629. infoColor: "#36c",
  2630. cheatList: "#36c",
  2631. contentBackground: "#888",
  2632. textColor: "white",
  2633. disabledButton: "#A02626",
  2634. enabledButton: "#47A547"
  2635. }
  2636. },
  2637. {
  2638. name: "Factory",
  2639. value: {
  2640. defaultButton: "#1563bf",
  2641. infoColor: "#a5aabe",
  2642. cheatList: "#a5aabe",
  2643. contentBackground: "#2d313d",
  2644. backgroundColor: "#3a3a3a",
  2645. enabledButton: "rgb(75, 194, 46)",
  2646. disabledButton: "#9a49aa",
  2647. inputColor: "rgb(0 0 0 / 25%)",
  2648. textColor: "white"
  2649. }
  2650. },
  2651. {
  2652. name: "Cafe",
  2653. value: {
  2654. backgroundColor: "linear-gradient(90deg,rgba(200,0,0,.5) 50%,transparent 0) center / 50px 50px,linear-gradient(rgba(200,0,0,0.5) 50%,transparent 0) white center / 50px 50px",
  2655. defaultButton: "#0bc2cf",
  2656. inputColor: "rgb(0 0 0 / 25%)",
  2657. infoColor: "#ac7339",
  2658. cheatList: "#ac7339",
  2659. contentBackground: "rgb(64, 64, 64)",
  2660. textColor: "white",
  2661. disabledButton: "#A02626",
  2662. enabledButton: "#47A547"
  2663. }
  2664. },
  2665. {
  2666. name: "Tower of Doom",
  2667. value: {
  2668. backgroundColor: "rgb(41 41 41)",
  2669. disabledButton: "rgb(151, 15, 5)",
  2670. defaultButton: "#333",
  2671. inputColor: "rgb(0 0 0 / 25%)",
  2672. contentBackground: "#404040",
  2673. enabledButton: "#4bc22e",
  2674. textColor: "white",
  2675. infoColor: "#9a49aa",
  2676. cheatList: "#9a49aa"
  2677. }
  2678. },
  2679. {
  2680. name: "Monster Brawl",
  2681. value: {
  2682. defaultButton: "rgb(45, 51, 67)",
  2683. backgroundColor: "rgb(78, 95, 124)",
  2684. inputColor: "rgb(0 0 0 / 25%)",
  2685. contentBackground: "linear-gradient(0deg,#374154,#4f5b74)",
  2686. infoColor: "#374154",
  2687. cheatList: "#374154",
  2688. textColor: "white",
  2689. enabledButton: "#47A547",
  2690. disabledButton: "#A02626"
  2691. }
  2692. },
  2693. {
  2694. name: "Tower Defense 2",
  2695. value: {
  2696. backgroundColor: "url(https://media.blooket.com/image/upload/v1676164454/Media/defense/backgroundTd1-02.svg) center / cover",
  2697. cheatList: "#a33c22",
  2698. infoColor: "#a33c22",
  2699. defaultButton: "#40b1d8",
  2700. inputColor: "#3e8cbe",
  2701. contentBackground: "#293c82",
  2702. enabledButton: "#47A547",
  2703. disabledButton: "#A02626",
  2704. textColor: "white"
  2705. }
  2706. },
  2707. ]
  2708. }
  2709. ],
  2710. run: function (theme) {
  2711. Settings.setItem("theme", { ...Settings.data.theme, ...theme });
  2712. for (const prop in theme) variables.sheet.cssRules[0].style.setProperty(`--${prop}`, theme[prop]);
  2713. }
  2714. },
  2715. {
  2716. name: "Scale",
  2717. description: "Forces the GUI to scale from 25%-100%",
  2718. inputs: [
  2719. {
  2720. type: "number",
  2721. name: "Percent scale",
  2722. min: 25,
  2723. max: 100,
  2724. value: (Settings.data.scale || 1) * 100
  2725. }
  2726. ],
  2727. run: function (scale) {
  2728. scale = Math.min(Math.max(scale, 25), 100);
  2729. Settings.setItem("scale", scale / 100);
  2730. guiWrapper.style.transform = `scale(${(scale / 100)})`;
  2731. }
  2732. },
  2733. {
  2734. name: "Hide Keybind",
  2735. description: "Change the hide keybind (Click button after input to change)",
  2736. inputs: [
  2737. {
  2738. type: "function",
  2739. name: "Input",
  2740. function: onchange => createKeybindListener(({ shift, ctrl, alt, key }) => onchange(`${[ctrl && "Ctrl", shift && "Shift", alt && "Alt", key && key.toUpperCase()].filter(Boolean).join(' + ')}`))
  2741. }
  2742. ],
  2743. run: function (hide) {
  2744. Settings.setItem("hide", hide);
  2745. controls.update(Settings.data.hide || { ctrl: true, key: "e" }, Settings.data.close || { ctrl: true, key: "x" });
  2746. }
  2747. },
  2748. {
  2749. name: "Close Keybind",
  2750. description: "Change the quick close keybind (Click button after input to change)",
  2751. inputs: [
  2752. {
  2753. type: "function",
  2754. name: "Input",
  2755. function: onchange => createKeybindListener(({ shift, ctrl, alt, key }) => onchange(`${[ctrl && "Ctrl", shift && "Shift", alt && "Alt", key && key.toUpperCase()].filter(Boolean).join(' + ')}`))
  2756. }
  2757. ],
  2758. run: function (close) {
  2759. Settings.setItem("close", close);
  2760. controls.update(Settings.data.hide || { ctrl: true, key: "e" }, Settings.data.close || { ctrl: true, key: "x" });
  2761. }
  2762. },
  2763. {
  2764. name: "Background Color",
  2765. description: "Changes the background color of the GUI",
  2766. inputs: [{
  2767. type: "string",
  2768. name: "Color"
  2769. }],
  2770. run: function (color) {
  2771. variables.sheet.cssRules[0].style.setProperty("--backgroundColor", color);
  2772. Settings.setItem("theme.backgroundColor", color);
  2773. }
  2774. },
  2775. {
  2776. name: "Category List Color",
  2777. description: "Changes the categories list background color",
  2778. inputs: [{
  2779. type: "string",
  2780. name: "Color"
  2781. }],
  2782. run: function (color) {
  2783. variables.sheet.cssRules[0].style.setProperty("--cheatList", color);
  2784. Settings.setItem("theme.cheatList", color);
  2785. }
  2786. },
  2787. {
  2788. name: "Info Color",
  2789. description: "Changes the color of the information at the top of the GUI",
  2790. inputs: [{
  2791. type: "string",
  2792. name: "Color"
  2793. }],
  2794. run: function (color) {
  2795. variables.sheet.cssRules[0].style.setProperty("--infoColor", color);
  2796. Settings.setItem("theme.infoColor", color);
  2797. }
  2798. },
  2799. {
  2800. name: "Button Color",
  2801. description: "Changes the color of the cheats",
  2802. inputs: [{
  2803. type: "string",
  2804. name: "Color"
  2805. }],
  2806. run: function (color) {
  2807. variables.sheet.cssRules[0].style.setProperty("--defaultButton", color);
  2808. Settings.setItem("theme.defaultButton", color);
  2809. }
  2810. },
  2811. {
  2812. name: "Enabled Toggle Color",
  2813. description: "Changes the color of enabled toggle cheats",
  2814. inputs: [{
  2815. type: "string",
  2816. name: "Color"
  2817. }],
  2818. run: function (color) {
  2819. Settings.setItem("theme.enabledButton", color);
  2820. }
  2821. },
  2822. {
  2823. name: "Disabled Toggle Color",
  2824. description: "Changes the color of disabled toggle cheats",
  2825. inputs: [{
  2826. type: "string",
  2827. name: "Color"
  2828. }],
  2829. run: function (color) {
  2830. variables.sheet.cssRules[0].style.setProperty("--disabledButton", color);
  2831. Settings.setItem("theme.disabledButton", color);
  2832. }
  2833. },
  2834. {
  2835. name: "Text Color",
  2836. description: "Changes the text color",
  2837. inputs: [{
  2838. type: "string",
  2839. name: "Color"
  2840. }],
  2841. run: function (color) {
  2842. variables.sheet.cssRules[0].style.setProperty("--textColor", color);
  2843. Settings.setItem("theme.textColor", color);
  2844. }
  2845. },
  2846. {
  2847. name: "Input Color",
  2848. description: "Changes the color of inputs, like the set gold number input",
  2849. inputs: [{
  2850. type: "string",
  2851. name: "Color"
  2852. }],
  2853. run: function (color) {
  2854. variables.sheet.cssRules[0].style.setProperty("--inputColor", color);
  2855. Settings.setItem("theme.inputColor", color);
  2856. }
  2857. },
  2858. {
  2859. name: "Content Color",
  2860. description: "Changes the background color of the cheats",
  2861. inputs: [{
  2862. type: "string",
  2863. name: "Color"
  2864. }],
  2865. run: function (color) {
  2866. variables.sheet.cssRules[0].style.setProperty("--contentBackground", color);
  2867. Settings.setItem("theme.contentBackground", color);
  2868. }
  2869. }
  2870. ]
  2871. };
  2872.  
  2873. addMode("Global", "https://media.blooket.com/image/upload/v1661496291/Media/uiTest/Games_Played_2.svg", Cheats.global)();
  2874. addMode("<span style=\"font-size: 18px\">Pirate's Voyage</span>", "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMDAgMzAwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zOnNlcmlmPSJodHRwOi8vd3d3LnNlcmlmLmNvbS8iIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MjsiPjxnIGlkPSJCb2F0Ij48cGF0aCBkPSJNMTcwLjQsNTYuMDU0Yy02OC43ODgsMTAuMTc0IC0xMTUuOTcxLDU2LjkzOCAtMTQ1LjQxMSwxMzMuNzVsMTUuNDY5LDcuNzM0YzMwLjk2MiwtMjguMTc1IDc0LjcwNSwtMzcuNzg3IDEzMi4zMjIsLTI3LjI1bDAsLTE3LjYxMWMtMjUuNjI5LC0yNy45NTIgLTI2Ljk2NiwtNTYuNzcyIDAuNzE0LC04Ni42MjhsLTMuMDk0LC05Ljk5NVoiIHN0eWxlPSJmaWxsOiNmNmUwYmQ7Ii8+PHBhdGggZD0iTTE5OS42NzMsNjAuODEzYzMyLjc4NCw0Mi45ODIgNjUuODIyLDkwLjg4NyA5Ny4zMzcsMTM5LjU4MWwtNi42NjMsMGMtMTIuMDg1LC0zMS4xMTEgLTU3Ljg4MiwtMzkuNjk0IC05MS42MjYsLTI3LjI1YzIyLjUxNCwtMzQuNTc5IDE3Ljc5NiwtNzIuNjczIDAuOTUyLC0xMTIuMzMxWiIgc3R5bGU9ImZpbGw6I2Y2ZTBiZDsiLz48cGF0aCBkPSJNNjkuNDQ4LDE5Ny41MzhjMCwwIC01OS43MDcsLTE1LjI0MyAtNjguMzk4LC0xNy40NjJjLTAuMDc2LC0wLjAxOSAtMC4xNTQsMC4wMiAtMC4xODQsMC4wOTJjLTAuMDMsMC4wNzIgLTAuMDAyLDAuMTU1IDAuMDY1LDAuMTk1YzkuNjgyLDUuNzc1IDkxLjY0Nyw1NC42NTggOTEuNjQ3LDU0LjY1OGwtMjMuMTMsLTM3LjQ4M1oiIHN0eWxlPSJmaWxsOiM4ZDZlNDE7Ii8+PHBhdGggZD0iTTE2NC40NSw0Ny45MDNjMCwtNS4zNTMgNC4zNDYsLTkuNjk4IDkuNjk4LC05LjY5OGwxOS4zOTcsLTBjNS4zNTIsLTAgOS42OTgsNC4zNDUgOS42OTgsOS42OThsLTAsMTU2Ljk1M2MtMCw1LjM1MyAtNC4zNDYsOS42OTggLTkuNjk4LDkuNjk4bC0xOS4zOTcsMGMtNS4zNTIsMCAtOS42OTgsLTQuMzQ1IC05LjY5OCwtOS42OThsMCwtMTU2Ljk1M1oiIHN0eWxlPSJmaWxsOiM3ZjY4NDU7Ii8+PHBhdGggZD0iTTI2My45OTMsMjU2LjEwM2MyMi4xNzEsLTE0LjcxIDM2LjAwNywtMzUuNTE1IDM2LjAwNywtNTguNTY1bC0yMzAuNTUyLDBjMCwyMy43MTMgMTQuNjQzLDQ1LjA1IDM3Ljk0LDU5LjgxOWM5Ljg3NSwtMy43MjkgMjAuMDQxLC0xMS4zMzQgMzAuNDYzLC0yMi4zMzZjMzIuODExLDM1LjQ1NSA2NC4wNjksMzUuOTQzIDkzLjcwOCwwYzYuODM4LDkuNjc3IDE3LjczNiwxNi42NDYgMzIuNDM0LDIxLjA4MloiIHN0eWxlPSJmaWxsOiNiNjkyNWY7Ii8+PC9nPjwvc3ZnPg==", Cheats.voyage);
  2875. addMode("Gold Quest", "https://media.blooket.com/image/upload/v1661496292/Media/uiTest/Gold.svg", Cheats.gold);
  2876. addMode("Cafe", "https://media.blooket.com/image/upload/v1655161189/Media/survivor/Pizza_lvl1.svg", Cheats.cafe);
  2877. addMode("Crypto Hack", "https://media.blooket.com/image/upload/v1661496293/Media/uiTest/CryptoIcon.svg", Cheats.crypto);
  2878. addMode("<span style=\"font-size: 17px\">Deceptive Dinos</span>", [`<img style="height: 30px; margin-left: 8px; margin-right: 12px" src="https://media.blooket.com/image/upload/v1655161325/Media/survivor/Dog.svg">`], Cheats.dinos);
  2879. addMode("<span style=\"font-size: 18px\">Tower Defense</span>", [`<img style="width: 30px; margin-right: 5px" src="https://media.blooket.com/image/upload/v1657235025/Media/survivor/Laser_Lvl1.svg">`], Cheats.defense);
  2880. addMode("<span style=\"font-size: 16px\">Tower Defense 2</span>", [`<img style="width: 30px; margin-right: 5px; rotate: 45deg" src="https://media.blooket.com/image/upload/v1593095354/Media/defense/missile.svg">`], Cheats.defense2);
  2881. addMode("Factory", "https://media.blooket.com/image/upload/v1661496293/Media/uiTest/Factory_Upgrades.svg", Cheats.factory);
  2882. addMode("<span style=\"font-size: 19px\">Fishing Frenzy</span>", "https://media.blooket.com/image/upload/v1661496295/Media/uiTest/Fish_Weight.svg", Cheats.fishing);
  2883. addMode("Flappy Blook", "https://media.blooket.com/image/upload/v1645222006/Blooks/yellowBird.svg", Cheats.flappy);
  2884. addMode("<span style=\"font-size: 17px\">Tower of Doom</span>", [`<img style="height: 30px; margin-left: 5px; margin-right: 10px" src="https://media.blooket.com/image/upload/v1657235023/Media/survivor/cards-05.svg">`], Cheats.doom);
  2885. addMode("<span style=\"font-size: 18px\">Crazy Kingdom</span>", "https://media.blooket.com/image/upload/v1655161323/Media/survivor/Jester_lvl1.svg", Cheats.kingdom);
  2886. addMode("Racing", "https://media.blooket.com/image/upload/v1661496295/Media/uiTest/Racing_Progress.svg", Cheats.racing);
  2887. addMode("Battle Royale", "https://media.blooket.com/image/upload/v1655936179/Media/br/VS_Lightning_Bolt_Bottom.svg", Cheats.royale);
  2888. addMode("Blook Rush", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAADdgAAA3YBfdWCzAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA7YSURBVHic7Z17tFxVfcc/e59zZib3kcfN456YQObOTB43PBIKoeIqSlwIBXwiCCytXe2qxabSWrAqLKmwXKthVRe2BFxitYpasSIPV0sI8mhV5GHVdpWaoCRIvAnZSW/uzeuG3Nec/jFzk8mYOXNm73PmeT7/zt6/s+/d399vv/cWnufRSSilZgEXAZcBl42MHF5m23KrlPJBKcU9mUx6pLElrC+iEwSglFpOscIpVH5q5rfh4YPH0wkBlmUNW5b8oZTyi9ls+ol6l7XetKUAyrz8ciBbKW2pAMqRUk62e3RoGwH4ebkffgIopV2jQ8sKoOjl6zlR6RW93I+gAiinGB22SSkfklJsatXo0FICUEqt4ESFv4WAXu6HrgBKKYkOPypGh+8bG60TTS0ApVQXJ3t5JuxvhCGAcorR4aVidLg7k0kPh/6RkGg6AUTh5X5EIYBSmj06NFwA9fByP6IWQDnNFh0aIgCl1EpO9vJk3QtRpN4CKKUYHfYXo8O92Wx6S93LUA8BFL38rZyo9IHIPxqQRgqgHCnlVEl02FSP6BCZAIpefjmFCn8zDfRyP5pJAKWURIdnin2HSKJDaAJQSnVzclveNF7uR7MKoJyy6HBPJpPeF4ZdIwEopVZxosKb1sv9aBUBlFIWHb6UzaY3a9uqRQBFLy9ty9O6H24WWlEA5RSjwy+llA8X+w6Bo0NVASilBjlR4RfSgl5+KiY9eP6g4IWhad7Xf4Qu2VzzIboUo8NISXR41De9nwCUUpcAj4ddyEaxaxyeHhU8PQLPHBSMTQP7FoHwWDBrnPPnjXFd/yHW9kw0uqihkUolbsnlBjZW+t2ukl+GXJ66MunBcwcFT48WKv7loxUSeoLhoyk2H02xefd8HHuK5b2v8/sLj3DNosOtHh0svx+rCaDlKPXyHx0UHJ2u3cbklM3W0V62jvZy58tu20YHaAMBTOTh+UMBvFwXn+hw9cLD9FgtHR1aUwBDx4pePlpoy3W8XJfy6DD/eHQ4zDk94/UrSEi0hAAm8vDcjJePCLa/3ugSFfEE+4+meOxoisd2z8dxCtHhkvmFvkMrRIemFcBvSrz8x3X2cl0mJ222jvSydaSXv9/uMr9rnHVzxri2/zDn9jZndGgaATStl+viCfaPpdgylmLLa80bHRoqgFIvf+aA4PV8I0sTLc0aHeoqgBkvf2qkUPE7Wt3LdSmPDvYUudmF6HBtnaND5ALYWdqWt7mX6zI5ZbNtpJdtI738w3aXvlnjrJtXiA7nRTyyiEwAvxiDP31J8kqnerkunmDkaIrHj6Z4vDjvsHHVHi7tC3uCo0BkU737JkRc+SEwOWXz6rgTmf2WnuuPMScWQIcTC6DDiQXQ4cQC6HBiAXQ4sQA6nFgAHU4sgA4nFkCHEwugw4kF0OHEAuhwYgF0OLEAOpxqAtDei2sL3Zwx5SQx2kY16fdjNQFob+mYazfHrtd2YFFCf0+8EOKw3+/VBKC9D2lu02w4b30WJ40ORRzw+zG6CBDdLqaO4w3JKZPsvjdgRBYBeq24HxAKAvodowhgJACjbZ1z4mbAGCHM9tELge8l1pEKIO4HmGNL44MUo34/VhPAEUD7RoR5sQCMSVjGAtjr96OvAFzX9YBdul+e68RDQVOSBgKQUk5mMmlfA0FmAod0CxA3AeZ02SYCEGNV0wSwoy2ABfFQ0Jg5tv4QUAjh2/5DxAI4o1s3Z8wMqw0OhwohVLU0kQpgTU/cBzDlonn6AzEhxM5qaYIIoKqRSmS7oMf3lroYP4TweNNsEwHwUrU0QQTwM90CSOCsHt3cMT3JSaPZVCnFg1XTVEvguu5e4BXdQsTNgD6ndx3TzlscAv5v1XQB7T2rW5A1cQTQZk2vvgAsSwaav4leAL1xBNBl/Tz9W0GklC8EShfQ3nO6BUmnYHY8IVQzQnqcP1t/CCileCRQuoD2XqSwLlAzgrgfoENvckJ7w6YQwhOCh4OkDfQN13WngUAh5VSc26ubs3PJdRu1/6OZTDrQIl4tItPuB7xzQRwBauUPFus/ZWNZ8hdB09ZFAIPdsKpLN3fnkXCmuNhsBjDw87S1COB5QNuVr1wUR4GgrOvT6m4dR0rxjcBpgyZ0XfcAsE2rRMB7FnrEWwSD8eElVRfxKmJZcjyTSQeevq+1o6ndDCxNwrrZurk7h57khNGzNJYlX60lfa0C+GGN6U/iyoVxM1CNCxf4nuOoipTyP2pKX6P9h4Gqu0wq8Y4FXrxV3A8BG5b6nuPwzy4EUopP15KnJgG4rnsEeKCmUpXQ58BF8+IoUIm+WcdIGxwCsW1reyaT9t0EWo7OZNNXNfIc5z0LTXK3N5cuNAv/ti3vqjWP1uPRSqmXgVzNGSk8GvHGn0n2NMsTOvsWNboEAFjWNM+8cYf2YxFSysnVq5cnas6n9TX4mmY+EhI+elrcDJRzqXvA6KUQx7F+oJNPVwD3gf6h9ev6PZa2xRPU4WBZ09w+sN/IhpTyFq18Oplc190FPKGTF8ARcRQo5YrFB0gZvE9s29ZwNpv+T528JlfE/JNBXq7p91iWMrHQHtjWNJ9Om3m/bVvf1M1rIoDvgf/JUz9sATeeHkeBdy0ZIWHg/UIIr9axfynaAnBddxz4lm5+gPcu9MjMMrHQ2jj2FJ9Ka/tQwYZjvZjJpA/p5je9JcyoGbAE3NTBUeDKJaPGz7ZZlnWHSX6teYBSlFI/B87RzZ8H1v9c8qtoXkWrToPmARL2FC9csMNoatyy5OuDg8uNdlqEcU/graYF+Gwu33EXFv51bq/xuojj2H9nWg7j/7vruo8CT5rYOH82/NnSzmkKzpp/iGsXmW36sG1rJJcbuM20LGE53k0YTAwBfGKZx+oOOE2cdCb58mDVQ7tVcRz7+hCKE44AXNf9Hww7hI6ATSvyOG29XOyxcdUeugyGfQCJhP3LbDb93TBKFGbT+ynAaDlrdTd8fFn7NgW/13+Atxls9oTCuN+2ratCKlJ4AigeIjUakgBsWOq15dax7tQEm1bsM7aTSNhPBjn0GZSwO993Ar8xMSApNAXd7XSvgPC4e/Vrxr1+KeWUZcn3hVOoos0wjbmuewz4pKmdZSm4baB9moK3LxnhPIOrXmZIJOwvZjJp/T1jpyCK4fe3MThGNsMHXI9r+ltfBKfPHmNjZtjYjm1bR6QUfxlCkU4idAEU7xa8MQxbn8t5XNzXuiLo6zrGw2fvDsWW49gfq3bnnw6RTMC5rvss8B1TO7aAL63yOK8FD5d2Jyf43toho5W+GRzHHspm0/eGUKzfIsoZ2I9S5ZrSIMyS8I0z8qxoobOFCXuKB9YOMdfgkscZpBR527beGUKxTm0/KsOu6+4BrsPg2ZkZ5trw7TPyvKEFtpFZ1jT3rRniNLM7/o+TTDofy2bT/x2KsVMQ6RqM67r/juFi0QyLkwURNPP1s0LkuevM3ZzZrX+0q5Rk0vl+Njvw+VCMVaAei3B3AP8WhqHlXYXmYFYzLh0Kj79ZtYc3zzGb6ZvBcay9liUvC8WYD5H/K4ujgg8Cr4Zh77xe+PKgR6qZRCA8PpLby1ULzVb4ZpBSTjmOfUEUvf7f+lbUHwBwXXcUuBoI5TjIW+d5PHJ2nv6aj0GEj5R5/nb1Lq43uNGjFCEgmXT+OJNJ/zoUg1Womx+5rvtTCiODUFjTA4+tyTf0QupUYpJ/Pmcn75gf3namRCJxfzabDnzBgynGW8JqRSn1TeD9Ydk7Og1//ivBlv2aE+2aW8IWdB/jwbN30Wf2oNNJOI796sqV2YHQDAagES3p9UDgS4yq0WXBVwY9NtRxR9FZ8w/xxO/sDLXyLUuOO471u6EZDEjdBeC67hhwFZr3Dp4KCdya9rhzuRf5hpJ3nzbMt87YE+o9B0IIL5Fwrsxk0ubrxTXSkL6067ovAR+gyru2tXJdv8e/nJmP5LEqIfN8cuVrfMbwDN+pSCadO7LZ9ObQDQeg7n2AUpRS76KwZhBqf373OHxiu+Cp0QBuGqAP0Nd1jLsG97AmpAmeUlKpxMZcbkDrYGcYNFQAAEqpy4GHgNAneh/5P8GtrwiG/eKMjwCkzHPtacPcvEz/1q5KFIZ7idtyuYHbQzdeSzkaLQAApdQlwCNA6AfFDk7B7b8W3L+3QjSoIIBls8e4d1CxJKQ5/VKEECSTzi253MDG0I3XWpZmEACAUmo98K9AJCP7Hx8UfHy74JXymdoyAdj2NH+V3csH+82ua6mEEIJUyrkx6jn+oDSNAACUUhcCm4FInpkYz8PnhwRf2CWYnPmzSwSwdsEhvrByL73mr3WeEiGEl0o5N2SzA/dE8gENmkoAAEqpC4AtQGR7g7eNwc07JC8cAvYtoic5wWdWKKP7eatRqPzE9dls+h8j+4gGTScAAKXUOuBxYF6U33lyRPDskMeGJeHM41eiWPl/lM2m74v0Qxo0pQAAlFLnULiGZn6U3xkerkvlvz+bTd8f6Yc0aaZF1ZNwXfe/gPVAXVbFokBKOZVKJa5q1sqHJhYAgOu6LwJrgab9B1bCceydqZSTzmbTDzW6LH40bRNQjlLqD4G7CXmEEHYTIITwkknnK7ncwIdCNRwRTR0BSnFd9z4KN5H8tNFlqYRlWWOpVOJtrVL50EICAHBddzvwJuCzGLxeEgWJhPOTZNJelM2mn2p0WWqhZZqAcpRSFwNfBxab2DFtAqQU+UTCuTmXGzC+rqURtKwAAJRSCyncXn6Frg0TATiOtc9x7LdkMumqr3Q3Ky0tgBmUUjdQaBZqXlHUEYAQkEg4312+PHN1zZmbjJbqA1TCdd1NwLkY3F8cFNu29qdSyXe3Q+VDm0SAUpRSVwCfA1YFSR80AliWnHAce2MYN3M1E20RAUopXlt3FnADYLx/qziufyCZdOa0W+VDG0aAUpRSc4GbgQ1UmECqFAGEEJ7j2D+xbXlNLe/wtRptLYAZlFJ9FCLCXwB9pb+VC6CwQ9f+gWXJP8lk0jvqV8rG0BECmEEp1UPhXMJNFOcPZgQgpcg7jv2oZckP1fryVivTUQKYQSmVpHBg9cOjo4dXOY79oJTiIybXrrcq/w99zo6mO4xCQAAAAABJRU5ErkJggg==", Cheats.rush);
  2889. addMode("<span style=\"font-size: 18px\">Monster Brawl</span>", [`<img style="height: 28px; margin-left: 5px; margin-right: 8px" src="https://media.blooket.com/image/upload/v1655233787/Media/survivor/xp/Blue_xp_2.svg">`], Cheats.brawl);
  2890. addMode("<span style=\"font-size: 15px\">Santa's Workshop</span>", ['<img style="height: 28px; margin-left: 3px; margin-right: 6px" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBzdHlsZT0iZmlsbDojRkZERTc2OyIgZD0iTTQzMy42NjEsMjM3LjgzN2MtNC40OTctNi4yMTQtNC44OC0xNC40NC0xLjIyNS0yMS4xODRjMTEuMzY1LTIwLjk2NywxNy43NzMtNDUuMDE0LDE3LjY1MS03MC41NjYKCUM0NDkuNzAxLDY0Ljg2OSwzODIuNTY0LTEuMDM3LDMwMS4zNTIsMC4wMTJjLTgwLjE4MywxLjAzNi0xNDQuODY0LDY2LjM1OS0xNDQuODY0LDE0Ni43ODhjMCwzMi41NTMsMTAuNTk1LDYyLjYzLDI4LjUyNiw4Ni45NzIKCWM3Ljc1MywxMC41MjYsNy4yMTMsMjUuMS0xLjU0MywzNC44MDhjLTEzLjI5NywxNC43NDEtNDEuOTM1LDI0LjMwNi0xMDIuNTk1LTE2LjI3N2MtNi42NTItNC40NS0xNC40NjItNi44NjQtMjIuNDY1LTYuODY0bDAsMAoJYy0xOS45NDcsMC0zNi44MzMsMTQuNjI4LTM5Ljc3NiwzNC4zNTdDNy44ODksMzUxLjgxNiw2LjUyLDUxMiwyMDYuOTY2LDUxMmg3MS4wODNDNDY2LjA1LDUxMiw1MTYuMTI3LDM1MS44MDEsNDMzLjY2MSwyMzcuODM3eiIvPgo8Zz4KCTxwYXRoIHN0eWxlPSJmaWxsOiNGRkI2NDE7IiBkPSJNMTgzLjQ3LDI2OC41ODJjLTMuOTMsNC4zNTctOS4yMDIsOC4yNjEtMTYuMjQ0LDEwLjU1MmMyNC40NjksNS44ODIsMzguODItMS4zMTksNDcuMTQ5LTEwLjU1MgoJCWM4Ljc1Ny05LjcwOCw5LjI5Ni0yNC4yODEsMS41NDMtMzQuODA4Yy0xNy45My0yNC4zNDItMjguNTI2LTU0LjQyLTI4LjUyNi04Ni45NzNjMC03NS44MzMsNTcuNTAzLTEzOC4yMjYsMTMxLjI4MS0xNDUuOTgKCQljLTUuNjg5LTAuNjAxLTExLjQ2Ny0wLjg4NC0xNy4zMjMtMC44MDljLTgwLjE4MywxLjAzNi0xNDQuODY0LDY2LjM1OS0xNDQuODY0LDE0Ni43ODhjMCwzMi41NTMsMTAuNTk1LDYyLjYzLDI4LjUyNiw4Ni45NzMKCQlDMTkyLjc2NiwyNDQuMywxOTIuMjI2LDI1OC44NzMsMTgzLjQ3LDI2OC41ODJ6Ii8+Cgk8cGF0aCBzdHlsZT0iZmlsbDojRkZCNjQxOyIgZD0iTTQ5LjUzOSwyNzkuNzk2YzIuMTM3LTE0LjMxNywxMS42MTgtMjUuOTQyLDI0LjI4Mi0zMS4yNDVjLTQuODY2LTIuMDIyLTEwLjA5MS0zLjExLTE1LjQxMi0zLjExCgkJbDAsMGMtMTkuOTQ3LDAtMzYuODMzLDE0LjYyOC0zOS43NzYsMzQuMzU3QzcuODg5LDM1MS44MTYsNi41Miw1MTIsMjA2Ljk2Niw1MTJoMzAuOTA1QzM3LjQyNSw1MTIsMzguNzk0LDM1MS44MTYsNDkuNTM5LDI3OS43OTZ6CgkJIi8+Cgk8cGF0aCBzdHlsZT0iZmlsbDojRkZCNjQxOyIgZD0iTTgwLjUxOCwzNDQuMzM2Yy04Ljc2Niw4LjY1Ni0xMC4yNzcsMjIuMjY4LTMuNTk4LDMyLjYxOQoJCWMxOS41MDQsMzAuMjI3LDY4LjM1MSw4Ni4yODMsMTYyLjM3Miw4Ni4yODNjNTcuMjU2LDAsMTE3Ljc5MS0zNS44MDksMTI5LjA2NC05NS4wOTdjOS4zMS00OC45NjYtMTkuMjQ2LTEwOC44MjEtNzUuMzMtMTA2LjI0NwoJCWMtNDEuMDk3LDEuODg3LTY1LjEzNSwzNy40MTUtOTkuODY1LDUzLjg0MWMtMjQuMzk4LDExLjU0LTUwLjg0NCwxOC42NTEtNzcuNjg3LDIxLjMwNwoJCUMxMDIuNjk4LDMzOC4zMDYsOTAuODA1LDMzNC4xNzgsODAuNTE4LDM0NC4zMzZ6Ii8+CjwvZz4KPHBhdGggc3R5bGU9ImZpbGw6IzM4NDg0QTsiIGQ9Ik0zODguMzk0LDExMC44MzNjLTMuNTAyLDAtNi42NzQtMi4zOTYtNy41MTMtNS45NTFsLTMuNzE1LTE1LjczCgljLTAuOTgxLTQuMTUzLDEuNTkxLTguMzE1LDUuNzQzLTkuMjk1YzQuMTUyLTAuOTc5LDguMzE1LDEuNTkxLDkuMjk1LDUuNzQzbDMuNzE1LDE1LjczYzAuOTgxLDQuMTUzLTEuNTkxLDguMzE1LTUuNzQzLDkuMjk1CglDMzg5LjU4LDExMC43NjUsMzg4Ljk4MiwxMTAuODMzLDM4OC4zOTQsMTEwLjgzM3oiLz4KPHBhdGggc3R5bGU9ImZpbGw6I0ZGQjY0MTsiIGQ9Ik00MjcuNjE4LDY4Ljk5NGMwLDAsMy4xOTgsNDUuODMyLTE4LjAzMyw2Ni41OTFjLTIxLjIzMSwyMC43NTksMTQuMTU0LDUzLjMxNCw1Ni4xNDUsMjIuNjQ2CgljNi4wMzItNC40MDUsMTIuMTQzLTcuMjA0LDE4LjE4NC04Ljc2OGM3Ljc3Ny0yLjAxMiwxMy4yNDMtOC45NjcsMTMuMjQzLTE2Ljk5OWwwLDBjMC03LjcyNC01LjAzMS0xNC41OTctMTIuNDM4LTE2Ljc4NgoJYy00LjkyNS0xLjQ1Ni0xMS4xOC0yLjMyNS0xOC41MTYtMS4zMjVjMCwwLDI1LjM5My0yMi4xMzgsMTkuMTE5LTQ3Ljc1M2MtMi4wMjctOC4yOC0xMS44NTYtMTEuNzI2LTE4LjgzNi02LjgzMgoJQzQ1Ny40NjEsNjYuMDk0LDQ0My40NTQsNzIuNzY0LDQyNy42MTgsNjguOTk0eiIvPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K">'], Cheats.workshop);
  2891. addMode("Settings", null, Cheats.settings, true);
  2892.  
  2893. dragElement(controls, guiWrapper);
  2894. dragElement(dragButton, guiWrapper);
  2895.  
  2896. function dragElement(element, parent) {
  2897. var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
  2898. element.onpointerdown = function (e = window.event) {
  2899. pos3 = e.clientX;
  2900. pos4 = e.clientY;
  2901. document.onpointerup = function () {
  2902. document.onpointerup = null;
  2903. document.onpointermove = null;
  2904. };
  2905. document.onpointermove = function (e = window.event) {
  2906. pos1 = pos3 - e.clientX;
  2907. pos2 = pos4 - e.clientY;
  2908. pos3 = e.clientX;
  2909. pos4 = e.clientY;
  2910. var ratio = 1 || parseFloat((0.75 / window.devicePixelRatio).toFixed(2));
  2911. parent.style.top = (parent.offsetTop - pos2 / ratio) + "px";
  2912. parent.style.left = (parent.offsetLeft - pos1 / ratio) + "px";
  2913. }
  2914. }
  2915. }
  2916. window.addEventListener("keydown", keydown);
  2917. function close() {
  2918. guiWrapper.remove();
  2919. for (const category in Cheats) for (const cheat of Cheats[category]) if (cheat.enabled) cheat.run()
  2920. Object.keys(Cheats).forEach(mode => Cheats[mode].forEach(cheat => cheat.enabled && (cheat.run(), setCheats(...currentMode))));
  2921. window.removeEventListener("keydown", keydown);
  2922. };
  2923. let last;
  2924. guiWrapper.addEventListener("mousemove", e => {
  2925. if (e.target.className != "cheatName" && e.target.className != "scriptButton") {
  2926. if (tooltip.style.opacity != "0") {
  2927. tooltip.animate([{ opacity: 0.9 }, { opacity: 0 }], { duration: 200 });
  2928. tooltip.style.opacity = "0";
  2929. }
  2930. return;
  2931. }
  2932. const target = e.target.className == "scriptButton" ? e.target : e.target.parentElement;
  2933. if (tooltip.innerText == target.dataset.description && tooltip.style.opacity == "0.9") return;
  2934. const button = target.getBoundingClientRect();
  2935. const parent = target.offsetParent.getBoundingClientRect();
  2936. tooltip.innerText = target.dataset.description;
  2937. if (tooltip.style.opacity == "0") {
  2938. tooltip.animate([{ opacity: 0 }, { opacity: 0.9 }], { duration: 200 });
  2939. tooltip.style.opacity = "0.9";
  2940. }
  2941. tooltip.style.left = (button.x - parent.x) + (button.width - tooltip.clientWidth) / 2 + "px";
  2942. tooltip.style.top = (button.y - parent.y) + (button.height) + "px";
  2943. });
  2944. function keydown(e) {
  2945. let hideKey = Settings.data.hide || { ctrl: true, key: "e" };
  2946. let closeKey = Settings.data.close || { ctrl: true, key: "x" };
  2947. if (((hideKey.ctrl && e.ctrlKey) || (!hideKey.ctrl && !e.ctrlKey)) && ((hideKey.shift && e.shiftKey) || (!hideKey.shift && !e.shiftKey)) && ((hideKey.alt && e.altKey) || (!hideKey.alt && !e.altKey)) && e.key.toLowerCase() == hideKey.key) {
  2948. e.preventDefault();
  2949. guiWrapper.style.display = guiWrapper.style.display === "block" ? "none" : "block";
  2950. } else if (((closeKey.ctrl && e.ctrlKey) || (!closeKey.ctrl && !e.ctrlKey)) && ((closeKey.shift && e.shiftKey) || (!closeKey.shift && !e.shiftKey)) && ((closeKey.alt && e.altKey) || (!closeKey.alt && !e.altKey)) && e.key.toLowerCase() == closeKey.key) {
  2951. e.preventDefault();
  2952. close();
  2953. }
  2954. }
  2955. function createKeybindListener(onpress, element = window) {
  2956. return new Promise(resolve => {
  2957. const pressed = {};
  2958. let shift, ctrl, alt, key;
  2959. const keydown = e => {
  2960. e.preventDefault();
  2961. pressed[e.code] = true;
  2962. shift ||= e.shiftKey;
  2963. ctrl ||= e.ctrlKey;
  2964. alt ||= e.altKey;
  2965. if (!["shift", "control", "alt", "meta"].includes(e.key.toLowerCase())) key = e.key.toLowerCase();
  2966. onpress?.({ shift, ctrl, alt, key });
  2967. };
  2968. const keyup = e => {
  2969. delete pressed[e.code];
  2970. if (Object.keys(pressed).length > 0) return;
  2971. element.removeEventListener("keydown", keydown);
  2972. element.removeEventListener("keyup", keyup);
  2973. resolve({ shift, ctrl, alt, key });
  2974. };
  2975. element.addEventListener("keydown", keydown);
  2976. element.addEventListener("keyup", keyup);
  2977. });
  2978. }
  2979. });
  2980. let img = new Image;
  2981. img.src = "https://raw.githubusercontent.com/05Konz/Blooket-Cheats/main/autoupdate/timestamps/gui.png?" + Date.now();
  2982. img.crossOrigin = "Anonymous";
  2983. img.onload = function() {
  2984. const c = document.createElement("canvas");
  2985. const ctx = c.getContext("2d");
  2986. ctx.drawImage(img, 0, 0, this.width, this.height);
  2987. let { data } = ctx.getImageData(0, 0, this.width, this.height), decode = "", last;
  2988. for (let i = 0; i < data.length; i += 4) {
  2989. let char = String.fromCharCode(data[i + 1] * 256 + data[i + 2]);
  2990. decode += char;
  2991. if (char == "/" && last == "*") break;
  2992. last = char;
  2993. }
  2994. let iframe = document.querySelector("iframe");
  2995. let _, time = 1710881112502, error = "There was an error checking for script updates. Run cheat anyway?";
  2996. try {
  2997. [_, time, error] = decode.match(/LastUpdated: (.+?); ErrorMessage: "((.|\n)+?)"/);
  2998. } catch (e) {}
  2999. if (parseInt(time) <= 1710881112502 || iframe.contentWindow.confirm(error)) cheat();
  3000. }
  3001. img.onerror = img.onabort = () => {
  3002. img.onerror = img.onabort = null;
  3003. cheat();
  3004. let iframe = document.querySelector("iframe");
  3005. iframe.contentWindow.alert("It seems the GitHub is either blocked or down.\n\nIf it's NOT blocked, join the Discord server for updates\nhttps://discord.gg/jHjGrrdXP6")
  3006. }
  3007. })();
  3008. })();