From e6c90b13e40e00173f07103a873bd9f617876c67 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 14 Apr 2018 21:17:23 +0200 Subject: [PATCH] Fix: Replace old variable 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 7d6f532..93bd442 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.11.1 +// @version 0.11.2 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -41,7 +41,7 @@ function executeAutoActions() { let product = $(availableProducts[availableProducts.length - 1]); debug("Auto-Buying: " + product.find('.title:first').text()); - topPurchase.click(); + product.click(); note('Purchased ' + product.find('.title:first').text() + ' for you.'); } }