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" } }, "哔哩轻小说 - 手机版 - 文库": {