From 4e3a1abee4e00d05cd917ad3c7970155b15f40f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=B3=E7=92=83?= <50022810+Boxkun@users.noreply.github.com> Date: Sat, 20 Jun 2026 02:50:10 +0800 Subject: [PATCH 1/4] Update Gelbooru rule switch to img4 server --- Picviewer CE+/pvcep_rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Picviewer CE+/pvcep_rules.js b/Picviewer CE+/pvcep_rules.js index 25a9bade564..c4278d04bca 100644 --- a/Picviewer CE+/pvcep_rules.js +++ b/Picviewer CE+/pvcep_rules.js @@ -1133,7 +1133,7 @@ var siteInfo = [ url: /gelbooru\.com/, src: /(thumbnails|samples)\/(.*)\/(thumbnail|sample)_/i, r: /.*\/(thumbnails|samples)\/(.*)\/(thumbnail|sample)_(.*)\..*/i, - s: ["https://img2.gelbooru.com/images/$2/$4.png","https://img2.gelbooru.com/images/$2/$4.jpg","https://img2.gelbooru.com/images/$2/$4.jpeg","https://img2.gelbooru.com/images/$2/$4.gif"] + s: ["https://img4.gelbooru.com/images/$2/$4.png","https://img4.gelbooru.com/images/$2/$4.jpg","https://img4.gelbooru.com/images/$2/$4.jpeg","https://img4.gelbooru.com/images/$2/$4.gif"] }, { name: "donmai", From 1a5e72874c8f1d897bb0d117be2b8955e0520207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=B3=E7=92=83?= <50022810+Boxkun@users.noreply.github.com> Date: Sat, 20 Jun 2026 03:53:02 +0800 Subject: [PATCH 2/4] Update rule for gelbooru extract img server from src --- Picviewer CE+/pvcep_rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Picviewer CE+/pvcep_rules.js b/Picviewer CE+/pvcep_rules.js index c4278d04bca..5acac5a202b 100644 --- a/Picviewer CE+/pvcep_rules.js +++ b/Picviewer CE+/pvcep_rules.js @@ -1132,8 +1132,8 @@ var siteInfo = [ name: "gelbooru", url: /gelbooru\.com/, src: /(thumbnails|samples)\/(.*)\/(thumbnail|sample)_/i, - r: /.*\/(thumbnails|samples)\/(.*)\/(thumbnail|sample)_(.*)\..*/i, - s: ["https://img4.gelbooru.com/images/$2/$4.png","https://img4.gelbooru.com/images/$2/$4.jpg","https://img4.gelbooru.com/images/$2/$4.jpeg","https://img4.gelbooru.com/images/$2/$4.gif"] + r: /.*\/(img\d+)\.gelbooru\.com\/+(?:thumbnails|samples)\/([0-9a-f]+\/[0-9a-f]+)\/(?:thumbnail|sample)_([0-9a-f]+)\..*/i, + s: ["https://$1.gelbooru.com/images/$2/$3.png","https://$1.gelbooru.com/images/$2/$3.jpg","https://$1.gelbooru.com/images/$2/$3.jpeg","https://$1.gelbooru.com/images/$2/$3.gif"] }, { name: "donmai", From ea91437d8fd5c62256feff71bb42caf45d415d37 Mon Sep 17 00:00:00 2001 From: hoothin Date: Sat, 8 Aug 2026 10:51:06 +0900 Subject: [PATCH 3/4] Update pagetual.user.js --- Pagetual/pagetual.user.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Pagetual/pagetual.user.js b/Pagetual/pagetual.user.js index ae4b3ad94f3..21f0da29015 100644 --- a/Pagetual/pagetual.user.js +++ b/Pagetual/pagetual.user.js @@ -31,7 +31,7 @@ // @name:da Pagetual // @name:fr-CA Pagetual // @namespace hoothin -// @version 1.9.37.132 +// @version 1.9.37.133 // @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. // @description:zh-CN 终极自动翻页 - 加载并拼接下一分页内容至当前页尾,智能适配任意网页 // @description:zh-TW 終極自動翻頁 - 加載並拼接下一分頁內容至當前頁尾,智能適配任意網頁 @@ -6337,6 +6337,7 @@ } if (next) { let innerText = next.innerText; + next = next.querySelector("a") || next; let isJs = !this.linkHasHref(next); if (innerText && nextTextReg2.test(innerText.trim())) { if (isJs) { @@ -6381,8 +6382,9 @@ await sleep(1); let pageDiv = body.querySelector("[class*=paging],.pagination,.pagination-list"); if (pageDiv) { - cur = pageDiv.querySelector("[class*=current],[class*=active],.page-selected,[aria-current]"); - if (cur) { + cur = pageDiv.querySelectorAll("[class*=current],[class*=active],.page-selected,[aria-current]"); + if (cur && cur.length == 1) { + cur = cur[0]; if (cur.parentNode == pageDiv) { next = cur.nextElementSibling; if (next && next.nodeName === cur.nodeName) next = next.nodeName == "A" ? next : next.querySelector("a"); @@ -6394,8 +6396,9 @@ } } else { if (!pageDiv.querySelector("a")) { - cur = pageDiv.querySelector("[class*=current],[class*=active]"); - if (cur) { + cur = pageDiv.querySelectorAll("[class*=current],[class*=active]"); + if (cur && cur.length == 1) { + cur = cur[0]; jsNext = cur.nextElementSibling; if (jsNext && jsNext.nodeName !== cur.nodeName) jsNext = null; } @@ -6858,7 +6861,7 @@ } let parent = nextLink; while (parent && !compareNodeName(parent, ["body"])) { - if (parent.hasAttribute && parent.hasAttribute("disabled")) { + if (parent.hasAttribute && parent.hasAttribute("disabled") && parent.getAttribute("disabled") != 'false') { this.nextLinkHref = false; return null; } From bc1858c2fbfb7b1919a6a6ad9543d49569957a94 Mon Sep 17 00:00:00 2001 From: hoothin Date: Wed, 12 Aug 2026 16:46:29 +0900 Subject: [PATCH 4/4] Enhance star history chart with theme support Updated star history chart to support dark and light themes. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd32fd58fbb..5cfadad23d3 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,10 @@ ## Star History -[![Star History Chart](https://api.star-history.com/svg?repos=hoothin/UserScripts&type=Date)](https://star-history.com/#hoothin/UserScripts&Date) + + + + + Star History Chart + +