From 4ccfb76d779decb0722feb4c1a6a66e9ed5cb4b5 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 1 Jun 2024 16:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=97=A0=E8=BF=BD?= =?UTF-8?q?=E6=90=9C=E7=B4=A2]=E3=80=81[nhentai]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 19d91d0..a5cdc17 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -120,7 +120,6 @@ "url": "if (fun.isMobile()) {return}; fun.isUrlC(); return (fun.lp() == '/s' && !fun.indexOF('a=image','s'))", "style": ".so-lazyimg{opacity: 1 !important;} .result {border: none !important;}", "history": true, - "noReferer": true, "pager": { "nextL": "#snext", "pageE": ".result,head>style", @@ -6034,12 +6033,12 @@ }, "nhentai": { "host": ["nhentai.net","nhentai.to","nhentai.xxx"], - "url": "return fun.getCSS('a.next, .current+a.page') && (fun.getCSS('.gallery, #image-container'))", + "url": "if (fun.indexOF(/^\\/g\\/\\d+\\/\\d+\\//)){const imageA = document.querySelector('#image-container>a'); imageA.outerHTML=imageA.innerHTML;return true;} else if (fun.getCSS('a.next') && fun.getCSS('.gallery')){return true;}", "style": "section#image-container img {max-width: 100% !important;height: auto !important;display: block !important;margin: 0 auto !important;}", "blank": 3, "pager": { "nextL": "a.next, .current+a.page", - "pageE": ".container>.gallery, .gallery-favorite, #image-container img", + "pageE": ".container>.gallery, #image-container img", "replaceE": ".pagination, .reader-pagination" }, "function": {