From 041eb8b8eb35f2022abda2112c46ad64faac0737 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 6 Oct 2024 00:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[HentaiFox]=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 3a4ec84..a44ca56 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -6110,6 +6110,28 @@ "bF": "if (fun.getCSS('.container>.gallery') && typeof _n_app !== 'undefined' && _n_app.options.blacklisted_tags != null && _n_app.options.blacklisted_tags.length != 0) {pageE.forEach(function (one) {let tags = one.dataset.tags.split(' ');for (let i=0; i < tags.length; i++){for (let ii=0; ii < _n_app.options.blacklisted_tags.length; ii++){if (tags[i] == _n_app.options.blacklisted_tags[ii]) {one.classList.add('blacklisted');};};};});}; return fun.src_bF(pageE)" } }, + "HentaiFox": { + "host": "hentaifox.com", + "url": "return fun.isPager()", + "blank": 3, + "pager": { + "nextL": ".active+li.page-item:not(.disabled)>a", + "pageE": ".lc_galleries>.thumb", + "replaceE": ".pagination" + } + }, + "HentaiFox-g": { + "host": "hentaifox.com", + "url": "if(fun.indexOF(/^\\/g\\/\\d+\\/\\d+\\//)){const a=fun.getCSS('#gimg');a.parentElement.outerHTML=a.outerHTML;return true;}", + "style": ".page_next,.page_prev,.gallery_pagination", + "pager": { + "nextL": "js; return fun.getNextUPN(/^\\/g\\/\\d+\\/(\\d+)/,/(?<=^\\/g\\/\\d+)\\/\\d+\\//,'/','/','2',fun.getCSS('.total_pages').textContent)", + "pageE": ".full_image img" + }, + "function": { + "bF": "return fun.src_bF(pageE)" + } + }, "9hentai": { "host": "www1.9hentai.com", "url": "/^\\/g\\/\\d+\\/\\d+\\//", @@ -6118,7 +6140,6 @@ "nextL": "a[data-target='#jumpPageModal']+a", "pageE": "#img-reader", "replaceE": ".viewer-control", - "scrollD": 2000, "loadTime": 500 } },