...
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user