1
0
Fork 0
mirror of https://github.com/Luzifer/automate-cookie-clicker.git synced 2024-12-23 02:31:18 +00:00

Click golden cookies

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-14 15:37:55 +02:00
parent c5fd6a765c
commit 95613d5b57
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Automate CookieClicker // @name Automate CookieClicker
// @namespace https://luzifer.io/ // @namespace https://luzifer.io/
// @version 0.7.4 // @version 0.8.0
// @description Automate everything! // @description Automate everything!
// @author Knut Ahlers <knut@ahlers.me> // @author Knut Ahlers <knut@ahlers.me>
// @source https://github.com/Luzifer/automate-cookie-clicker // @source https://github.com/Luzifer/automate-cookie-clicker
@ -26,6 +26,9 @@ function autoClick() {
} }
function executeAutoActions() { function executeAutoActions() {
// Click all golden cookies
$('.shimmer').click();
// Look for upgrades being available // Look for upgrades being available
let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter); let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter);
if (availableUpgrades.length > 0) { if (availableUpgrades.length > 0) {