From 3acde7e7af4635fbdb201b29abaaa75304c4126b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 14 Apr 2018 21:14:33 +0200 Subject: [PATCH] Wrap element with jQuery Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index 0d1ecdd..7d6f532 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.11.0 +// @version 0.11.1 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -38,7 +38,7 @@ function executeAutoActions() { // Get the top enabled purchase to be made let availableProducts = $('.product.unlocked.enabled').filter(productFilter); if (availableProducts.length > 0) { - let product = availableProducts[availableProducts.length - 1]; + let product = $(availableProducts[availableProducts.length - 1]); debug("Auto-Buying: " + product.find('.title:first').text()); topPurchase.click();