Skip to content

Commit 2cd6653

Browse files
committed
Update pagetual.user.js
1 parent 7dd198a commit 2cd6653

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Pagetual/pagetual.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,10 +3203,10 @@
32033203
}
32043204
}
32053205
}
3206-
if (!isApp && !next3) {
3206+
if (!isApp && !next3 && nextTextReg3.test(aTag.textContent)) {
3207+
let pa = aTag.parentNode;
32073208
if (isJs) {
32083209
if (!jsNext) {
3209-
let pa = aTag.parentNode;
32103210
if (pa && /pag[ei]/i.test(pa.className)) {
32113211
jsNext = aTag;
32123212
} else {
@@ -3216,7 +3216,7 @@
32163216
}
32173217
}
32183218
}
3219-
} else if (nextTextReg3.test(aTag.textContent) && aTag.parentNode.hasAttribute && !aTag.parentNode.hasAttribute("jsaction")) {
3219+
} else if (pa.hasAttribute && !pa.hasAttribute("jsaction")) {
32203220
next3 = aTag;
32213221
}
32223222
}

0 commit comments

Comments
 (0)