From cb4a38e05c876a22dea1e000f0a38a44b590aad5 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 22 Jun 2024 00:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E5=93=94=E5=93=A9?= =?UTF-8?q?=E8=BD=BB=E5=B0=8F=E8=AF=B4]=20=E8=A7=84=E5=88=99(=E5=B7=B2?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=9B=B4=E5=AE=8C=E7=BE=8E=E7=9A=84=E7=BA=AF?= =?UTF-8?q?=E9=9D=99=E6=80=81=E6=96=B9=E6=A1=88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 6a19e16..ed571ae 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -3707,13 +3707,16 @@ }, "哔哩轻小说": { "host": "www.linovelib.com", - "url": "return (fun.indexOF(/\\/novel\\/\\d+\\/.+\\.html/))", + "url": "return fun.indexOF(/\\/novel\\/\\d+\\/.+\\.html/)", "history": true, "pager": { - "type": 6, - "nextL": "//div[@class='mlfy_page']/a[contains(text(), '下一页') or contains(text(), '下一章')]", - "pageE": "#mlfy_main_text>*, head>style", + "nextL": "//div[@class='mlfy_page']/a[contains(text(),'下一页') or contains(text(),'下一章')]", + "pageE": "#TextContent>*:not(div), head>style", "replaceE": ".mlfy_page" + }, + "function": { + "bF": "if(pageE[0].tagName=='STYLE'){pageE[pageE.length-1].style='font-family: read !important;';pageE[0].textContent.replace('#TextContent p:last-of-type','666')}; return pageE", + "aF": "document.body.appendChild(document.createElement('script')).textContent='yuedu()'" } }, "哔哩轻小说 - 文库": { @@ -3745,10 +3748,12 @@ "url": "/\\/novel\\/\\d+\\/.+\\.html/", "history": true, "pager": { - "type": 6, "nextL": "js; if (ReadParams.url_next.slice(ReadParams.url_next.length-5) === '.html') return (location.origin + ReadParams.url_next)", - "pageE": "id('apage')/div | //body/script[contains(text(), 'var ReadParams')] | //head/style", + "pageE": "id('acontentz')/*[name()='p' or name()='img' or name()='br'] | //body/script[contains(text(), 'var ReadParams')] | //body/script[contains(@src, '/readtools.js')] | //head/style", "scriptT": 2 + }, + "function": { + "bF": "if(pageE[0].tagName=='STYLE'){pageE[pageE.length-2].style='font-family: read !important;';pageE[0].textContent.replace('#TextContent p:last-of-type','666')}; return pageE" } }, "哔哩轻小说 - 手机版 - 文库": {