This commit is contained in:
2025-07-24 17:42:49 +09:00
parent dc69070823
commit 5a6dad2f24
9 changed files with 164 additions and 84 deletions
@@ -418,15 +418,22 @@ function gotoNext() {
if (document.querySelector('[class="btn-group"]')) {
time2 = setTimeout(function () {
clearTimeout(time2)
var targetElement = null
document.querySelector('[class="btn-group"]').querySelectorAll('a').forEach(function(e){
if(e.hasAttribute("href") &&
(
(e.getAttribute("href").search("page=2") > -1 && location.href.search("page") < 0) ||
(e.getAttribute("href").search("page=3") > -1 && location.href.search("page=2") > 0)
)) {
e.click()
targetElement = e
}
})
if(targetElement !== null) {
targetElement.click()
} else {
location.href = "https://naver.com"
}
}, 5000);
}
} catch (e) {