From d507b608f40c4f4c7ec11889ca7a6af9e6da84e0 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Sat, 24 May 2025 16:28:12 +0800 Subject: [PATCH] fix --- script/buct-cource-helper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/buct-cource-helper.js b/script/buct-cource-helper.js index 1e9fd84..822aa5c 100644 --- a/script/buct-cource-helper.js +++ b/script/buct-cource-helper.js @@ -99,10 +99,11 @@ } } if (answered && stat.autoMode) { + const done = allDone(); const submitButton = getAnswerElement().nextElementSibling.children[1]; submitButton.click(); await new Promise((resolve) => setTimeout(resolve, 500)); - if (!allDone()) { + if (!done) { aiButton.click(); } }