mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-11-09 14:30:08 +00:00
Fix: Replace old variable
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3acde7e7af
commit
e6c90b13e4
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.11.1
|
// @version 0.11.2
|
||||||
// @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
|
||||||
|
@ -41,7 +41,7 @@ function executeAutoActions() {
|
||||||
let product = $(availableProducts[availableProducts.length - 1]);
|
let product = $(availableProducts[availableProducts.length - 1]);
|
||||||
|
|
||||||
debug("Auto-Buying: " + product.find('.title:first').text());
|
debug("Auto-Buying: " + product.find('.title:first').text());
|
||||||
topPurchase.click();
|
product.click();
|
||||||
note('Purchased ' + product.find('.title:first').text() + ' for you.');
|
note('Purchased ' + product.find('.title:first').text() + ' for you.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue