Skip to content

Commit a9cbde2

Browse files
committed
1.9.37.128
1 parent 2967511 commit a9cbde2

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

Pagetual/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[☯️](https://greasyfork.org/scripts/438684 "Install from greasyfork")東方永頁機 [v.1.9.37.127](https://hoothin.github.io/UserScripts/Pagetual/pagetual.user.js "Latest version")
1+
[☯️](https://greasyfork.org/scripts/438684 "Install from greasyfork")東方永頁機 [v.1.9.37.128](https://hoothin.github.io/UserScripts/Pagetual/pagetual.user.js "Latest version")
22
==
33
*Pagetual - Perpetual pages. Auto loading paginated web pages for 90% of all web sites !*
44

Pagetual/pagetual.user.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// @name:da Pagetual
3232
// @name:fr-CA Pagetual
3333
// @namespace hoothin
34-
// @version 1.9.37.127
34+
// @version 1.9.37.128
3535
// @description Perpetual pages - powerful auto-pager script. Auto fetching next paginated web pages and inserting into current page for infinite scroll. Support thousands of web sites without any rule.
3636
// @description:zh-CN 终极自动翻页 - 加载并拼接下一分页内容至当前页尾,智能适配任意网页
3737
// @description:zh-TW 終極自動翻頁 - 加載並拼接下一分頁內容至當前頁尾,智能適配任意網頁
@@ -137,6 +137,9 @@
137137
if (document.body && getComputedStyle(document.body).display === 'none') {
138138
document.body.style.display = 'block';
139139
}
140+
Element.prototype.scrollIntoView = function() {
141+
console.log('ScrollIntoView blocked.');
142+
};
140143
return;
141144
}
142145

@@ -12648,12 +12651,12 @@
1264812651
}
1264912652
let eles = ruleParser.getPageElement(iframeDoc, emuIframe.contentWindow, true), checkItem;
1265012653
if (eles && eles.length > 0) {
12651-
eles = [].filter.call(eles, ele => {return ele && !compareNodeName(ele, ["style", "script", "meta"])});
12652-
if (compareNodeName(eles[0], ["ul"]) || eles.length == 1) checkItem = eles[0];
12653-
else if (eles[0].parentNode == eles[1].parentNode) {
12654-
checkItem = eles[0].parentNode;
12654+
const filterEles = [].filter.call(eles, ele => {return ele && !compareNodeName(ele, ["style", "script", "meta"])});
12655+
if (compareNodeName(filterEles[0], ["ul"]) || filterEles.length == 1) checkItem = filterEles[0];
12656+
else if (filterEles[0].parentNode == filterEles[1].parentNode) {
12657+
checkItem = filterEles[0].parentNode;
1265512658
} else {
12656-
checkItem = eles[0];
12659+
checkItem = filterEles[0];
1265712660
}
1265812661
}
1265912662
if (!checkItem) {

0 commit comments

Comments
 (0)