1
0
Fork 0
mirror of https://github.com/Luzifer/automate-cookie-clicker.git synced 2024-11-08 14:00:12 +00:00

Wrap element with jQuery

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-14 21:14:33 +02:00
parent 17ea39c49e
commit 3acde7e7af
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.11.0 // @version 0.11.1
// @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
@ -38,7 +38,7 @@ function executeAutoActions() {
// Get the top enabled purchase to be made // Get the top enabled purchase to be made
let availableProducts = $('.product.unlocked.enabled').filter(productFilter); let availableProducts = $('.product.unlocked.enabled').filter(productFilter);
if (availableProducts.length > 0) { if (availableProducts.length > 0) {
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(); topPurchase.click();