Blooket Hacks

hack blooket

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