From e0f2654cc23269a673ede7eadaeb8b6247fcd9fc Mon Sep 17 00:00:00 2001 From: tretrauit <3550664-tretrauit@users.noreply.gitlab.com> Date: Tue, 6 Jul 2021 18:22:40 +0000 Subject: [PATCH] Remove find 'widget2' and add debug Fix --- Games/Arena_of_Valor/AWC_AutoSpin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Games/Arena_of_Valor/AWC_AutoSpin.js b/Games/Arena_of_Valor/AWC_AutoSpin.js index e7e385a..1ba9e3f 100644 --- a/Games/Arena_of_Valor/AWC_AutoSpin.js +++ b/Games/Arena_of_Valor/AWC_AutoSpin.js @@ -60,7 +60,6 @@ await fetch("https://code.jquery.com/jquery-3.6.0.min.js").then(x => x.text()).t if (!disableChest) { clickFirstButtonByClassName("chest") } - document.getElementById("widget2").dispatchEvent(new MouseEvent("click")); } function pickCard() { @@ -85,6 +84,7 @@ await fetch("https://code.jquery.com/jquery-3.6.0.min.js").then(x => x.text()).t else { let swal2msg = document.getElementsByClassName("popup-alert__message") if (swal2msg.length > 0) { + console.log(swal2msg[0].innerHTML) if (swal2msg[0].innerHTML == "Đã đạt đến giới hạn Rương đếm ngược hàng ngày") { disableChest = true }