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(); } }