..
This commit is contained in:
parent
773796d36a
commit
578f3f96ad
@ -458,9 +458,14 @@ function gotoNext() {
|
|||||||
// 1. 다음 페이지 링크를 찾았을 경우
|
// 1. 다음 페이지 링크를 찾았을 경우
|
||||||
if (attempts > 3 && targetElement) {
|
if (attempts > 3 && targetElement) {
|
||||||
console.log(`[${attempts}초] ✅ 다음 페이지 링크를 찾았습니다. 클릭합니다.`);
|
console.log(`[${attempts}초] ✅ 다음 페이지 링크를 찾았습니다. 클릭합니다.`);
|
||||||
toast(`[${attempts}초] ✅ 다음 페이지 링크를 찾았습니다. 클릭합니다.`)
|
toast(`[${attempts}초] ✅ 다음 페이지 링크를 찾았습니다.`)
|
||||||
clearInterval(findAndClickInterval); // 반복을 중단
|
clearInterval(findAndClickInterval); // 반복을 중단
|
||||||
targetElement.click(); // 링크 클릭
|
|
||||||
|
if (confirm("다음 페이지로 이동 하실?!")) {
|
||||||
|
targetElement.click(); // 링크 클릭
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 2. 시간(15초)이 초과되었을 경우
|
// 2. 시간(15초)이 초과되었을 경우
|
||||||
else if (attempts >= maxAttempts) {
|
else if (attempts >= maxAttempts) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user