|
12 | 12 | // @description:ja 画像を強力に閲覧できるツール。ポップアップ表示、拡大・縮小、回転、一括保存などの機能を自動で実行できます |
13 | 13 | // @description:pt-BR Poderosa ferramenta de visualização de imagens on-line, que pode pop-up/dimensionar/girar/salvar em lote imagens automaticamente |
14 | 14 | // @description:ru Мощный онлайн-инструмент для просмотра изображений, который может автоматически отображать/масштабировать/вращать/пакетно сохранять изображения |
15 | | -// @version 2025.7.29.1 |
| 15 | +// @version 2025.7.30.1 |
16 | 16 | // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////29vbKysoqKioiIiKysrKhoaGTk5N9fX3z8/Pv7+/r6+vk5OTb29vOzs6Ojo5UVFQzMzMZGRkREREMDAy4uLisrKylpaV4eHhkZGRPT08/Pz/IfxjQAAAAgklEQVQoz53RRw7DIBBAUb5pxr2m3/+ckfDImwyJlL9DDzQgDIUMRu1vWOxTBdeM+onApENF0qHjpkOk2VTwLVEF40Kbfj1wK8AVu2pQA1aBBYDHJ1wy9Cf4cXD5chzNAvsAnc8TjoLAhIzsBao9w1rlVTIvkOYMd9nm6xPi168t9AYkbANdajpjcwAAAABJRU5ErkJggg== |
17 | 17 | // @namespace https://github.com/hoothin/UserScripts |
18 | 18 | // @homepage https://github.com/hoothin/UserScripts/tree/master/Picviewer%20CE%2B |
|
46 | 46 | // @grant GM.notification |
47 | 47 | // @grant unsafeWindow |
48 | 48 | // @require https://update.greasyfork.org/scripts/6158/23710/GM_config%20CN.js |
49 | | -// @require https://update.greasyfork.org/scripts/438080/1632035/pvcep_rules.js |
| 49 | +// @require https://update.greasyfork.org/scripts/438080/1632464/pvcep_rules.js |
50 | 50 | // @require https://update.greasyfork.org/scripts/440698/1427239/pvcep_lang.js |
51 | 51 | // @downloadURL https://greasyfork.org/scripts/24204-picviewer-ce/code/Picviewer%20CE+.user.js |
52 | 52 | // @updateURL https://greasyfork.org/scripts/24204-picviewer-ce/code/Picviewer%20CE+.meta.js |
@@ -24624,6 +24624,15 @@ ImgOps | https://imgops.com/#b#`; |
24624 | 24624 | let reMatch = typeof site.xhr.url === "string" && site.xhr.url.match(/^\/(.*)\/(\w*)$/); |
24625 | 24625 | if (reMatch) { |
24626 | 24626 | site.xhr.url = toRE(reMatch[1], reMatch[2]); |
| 24627 | + } else if (Array.isArray(site.xhr.url)) { |
| 24628 | + let urlRe = toRE(site.xhr.url[0], "i"); |
| 24629 | + let urlParam = site.xhr.url[1]; |
| 24630 | + site.xhr.url = (a, p) => { |
| 24631 | + if (!a || !a.href) return; |
| 24632 | + if (urlRe.test(a.href)) { |
| 24633 | + return a.href.replace(urlRe, urlParam);; |
| 24634 | + } |
| 24635 | + }; |
24627 | 24636 | } |
24628 | 24637 | } |
24629 | 24638 | if (site.url && !urlChecked) { |
|
0 commit comments