From c5fd6a765c301d69e94e2d0b21ae2a52bb3dd480 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 14 Apr 2018 13:21:29 +0200 Subject: [PATCH] Rename function as it does more than purchasing 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 77040fb..efd0485 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -25,7 +25,7 @@ function autoClick() { $('#bigCookie').click(); } -function autoPurchaseUpgrades() { +function executeAutoActions() { // Look for upgrades being available let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter); if (availableUpgrades.length > 0) { @@ -102,7 +102,7 @@ function getMaxBuy() { window.checkCPS = window.setInterval(checkCPS, 1000); // Enable automatic purchasing of upgrades / elements - window.autoPurchase = window.setInterval(autoPurchaseUpgrades, 500); + window.autoPurchase = window.setInterval(executeAutoActions, 500); // Startup notification let version = GM_info.script.version;