Special thanks to TheCodingSloth for providing the code. This script automatically clicks in Cookie Clicker and checks every second if you can afford any buildings or upgrades. If so, it will buy a random one.
- Open Cookie Clicker.
- Open Developer Tools (F12) and navigate to the 'Console' tab.
- Paste the content of script.js into the console and press Enter.
Go back to the console and type stopAutomation to stop the automation. (or stopClicker, stopBuildings or stopUpgrades)
In future updates, I plan to add functionality to collect Golden Cookies as shown in the video