(function(amount) { const root = document.querySelector('#app'); const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT); let node; // 1. Search for the game "Brain" while (node = walker.nextNode()) { for (const key in node) { if (key.startsWith('__reactFiber$')) { let curr = node[key]; while (curr) { if (curr.stateNode?.state && curr.stateNode?.setState) { const state = curr.stateNode.state; // 2. Identify which currency this specific game mode uses const targets = ['crypto', 'gold', 'tokens', 'cash', 'money', 'weight', 'score', 'bucks']; let update = {}; let found = false; targets.forEach(t => { if (state[t] !== undefined) { update[t] = amount; found = true; } }); // 3. Inject the value if (found) { curr.stateNode.setState(update); console.log(`%c [SUCCESS] Set currency to: ${amount}`, "color: #0f0; font-weight: bold;"); return; } } curr = curr.return; } } } } console.log("%c [ERROR] Could not find game state. Answer one question first!", "color: #f00;"); })(999999); // <--- CHANGE THIS NUMBER TO YOUR DESIRED AMOUNT