We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd198a commit 2cd6653Copy full SHA for 2cd6653
Pagetual/pagetual.user.js
@@ -3203,10 +3203,10 @@
3203
}
3204
3205
3206
- if (!isApp && !next3) {
+ if (!isApp && !next3 && nextTextReg3.test(aTag.textContent)) {
3207
+ let pa = aTag.parentNode;
3208
if (isJs) {
3209
if (!jsNext) {
- let pa = aTag.parentNode;
3210
if (pa && /pag[ei]/i.test(pa.className)) {
3211
jsNext = aTag;
3212
} else {
@@ -3216,7 +3216,7 @@
3216
3217
3218
3219
- } else if (nextTextReg3.test(aTag.textContent) && aTag.parentNode.hasAttribute && !aTag.parentNode.hasAttribute("jsaction")) {
+ } else if (pa.hasAttribute && !pa.hasAttribute("jsaction")) {
3220
next3 = aTag;
3221
3222
0 commit comments