This commit is contained in:
2026-10-16 18:02:09 +09:00
parent bf391ece64
commit 22e03dfd10
@@ -52,6 +52,21 @@ async function runScraper() {
if (isDuplicate) {
console.log(`⚠️ 이미 저장된 챕터입니다 (ID: ${chapterId}). 자동 진행을 중지합니다.`);
isRunning = false;
const buttons = Array.from(document.querySelectorAll('a.btn.btn-black.btn-sm, a.btn.btn--primary'));
let nextButton = buttons.find(btn => btn.innerText.trim().includes('다음화'));
if (!nextButton) {
//nextButton = document.querySelector('a[data-ntk-next-link]');
}
if (nextButton) {
console.log("👉 다음 화 버튼 클릭 진행");
isRunning = false; // 다음화를 위해 플래그 해제
nextButton.click();
} else {
console.log("⚠️ '다음화' 버튼을 찾을 수 없거나 마지막 화입니다.");
isRunning = false;
}
return;
}