Skip to content

Commit bfb456f

Browse files
committed
1.9.37.113
1 parent 432c2ef commit bfb456f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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.112](https://greasyfork.org/scripts/438684-pagetual/code/Pagetual.user.js "Latest version")
1+
[☯️](https://greasyfork.org/scripts/438684 "Install from greasyfork")東方永頁機 [v.1.9.37.113](https://greasyfork.org/scripts/438684-pagetual/code/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: 6 additions & 2 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.112
34+
// @version 1.9.37.113
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 終極自動翻頁 - 加載並拼接下一分頁內容至當前頁尾,智能適配任意網頁
@@ -4460,7 +4460,11 @@
44604460
for (let i = 0; i < oldCanvass.length; i++) {
44614461
let oldCanvas = oldCanvass[i];
44624462
let newCanvas = newCanvass[i];
4463-
newCanvas.getContext('2d').drawImage(oldCanvas, 0, 0);
4463+
if (oldCanvas.width && oldCanvas.height) {
4464+
try {
4465+
newCanvas.getContext('2d').drawImage(oldCanvas, 0, 0);
4466+
} catch(e) {}
4467+
}
44644468
}
44654469
if (!compareNodeName(newEle, ["style", "script"])) self.visibilityItems.push(newEle);
44664470
collection.appendChild(newEle);

0 commit comments

Comments
 (0)