优化 [哔哩轻小说] 规则(已改为更完美的纯静态方案)

This commit is contained in:
xiu2
2024-06-22 00:28:11 +08:00
parent 1972954fcd
commit cb4a38e05c
+11 -6
View File
@@ -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"
}
},
"哔哩轻小说 - 手机版 - 文库": {