- Install the userscript via Tampermonkey (see README installation section).
- Visit neal.fun/infinite-craft; the control panel appears in the top-left corner.
- Drag the panel by its header, collapse/expand logs, copy entries, and clear history as needed.
Once the script is loaded you can call these helpers from the browser console:
// Inspect game state
window.gameInterface.logGameState();
// Count elements
window.gameInterface.getElementCount();
// Find an element
window.gameInterface.findElementByName('Fire');
// Run quick diagnostics
window.gameInterface.runBasicTests();
// View sidebar summary with validation data
window.gameInterface.logSidebarSummary();
// Pull a specific element
window.gameInterface.findElementByName('Fire');
// List draggable elements ready for automation
window.gameInterface.getDraggableElements();
// Simulate a click on a sidebar element (no delay)
await window.actionSimulator.clickElement(
window.gameInterface.findElementByName('Water')?.element,
{ delay: { min: 0, max: 0 } }
);
// Access the logging API
window.Logger.log('Hello from the console');The LogManager APIs (logManager.addLog, logManager.getLogs, etc.) are also attached to window for debugging.
Use the control panel’s “Run Diagnostics” button to execute readiness checks; results appear in the Logs tab.
- Panel missing – ensure the userscript is active and the page reloaded.
- Logs warning about size policy – see
docs/DEVELOPMENT.mdfor guidance on refactoring large files or functions. - Build warnings – run
npm run buildlocally to reproduce and review console output.