From 0453e7d2b6f5d3157a4f9046485d0f9025a46c3c Mon Sep 17 00:00:00 2001 From: tom5079 Date: Thu, 20 Jan 2022 15:16:31 +0900 Subject: [PATCH] Updated galleryblock.js --- assets/js/dev/galleryblock.js | 2 +- hitomi-dev.html.ver | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/dev/galleryblock.js b/assets/js/dev/galleryblock.js index a589ef7b..88e58d94 100644 --- a/assets/js/dev/galleryblock.js +++ b/assets/js/dev/galleryblock.js @@ -11,7 +11,7 @@ async function get_gallery_block(galleryid) { const gallery_url = title_elm.href; const title = title_elm.textContent; - const thumbnails = Array.from(doc.querySelectorAll('.dj-img-cont img'), elm => `https:${elm.getAttribute('data-src')}`); + const thumbnails = Array.from(doc.querySelectorAll('.dj-img-cont img'), elm => `https:${elm.getAttribute('data-src').replace('bigtn', 'webpbigtn').replace(/.jpg$/, '.webp')}`); const artists = Array.from(doc.querySelectorAll('.artist-list a'), elm => elm.innerText); const series = Array.from(doc.querySelectorAll('a[href^="/series/"]'), elm => elm.innerText); diff --git a/hitomi-dev.html.ver b/hitomi-dev.html.ver index 820dea85..e6c5b462 100644 --- a/hitomi-dev.html.ver +++ b/hitomi-dev.html.ver @@ -1 +1 @@ -0.0.7-DEV03 +0.0.7-DEV04 \ No newline at end of file