小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页
< Spätná väzba na My Novel Reader
请问自定义站点规则是在编辑器里吗?
具体添加在哪一行,我添加上,不管用
{
siteName: "黄金书屋",
url: /^https:\/\/www\.dduxs\.com.+\d+\.html/,
titleSelector: "h1.post-title",
prevSelector: ".prev a",
nextSelector: ".next a",
indexSelector: ".bcrumb a:last",
contentSelector: "#nr1"
}
前面那位大佬多发了个,
请问自定义站点规则是在编辑器里吗?
具体添加在哪一行,我添加上,不管用
自定义站点规则只能生效一个,所以需要你自己在脚本里添加
感谢大佬,东西很好用
能不能适配一下https://www.69shu.com/
我模仿你上面的操作试了一下,获取不到正文内容
{
siteName: "69书吧",
url: /^https://www.69shu.com/txt/.*/.*,
titleSelector: "h1.hide720",
prevSelector: ".page1 a:contains('上一章')",
nextSelector: ".page1 a:contains('下一章')",
indexSelector: ".page1 a:contains('目录')",
contentSelector: ".txtnav"
}
能不能适配一下https://www.69shu.com/
我模仿你上面的操作试了一下,获取不到正文内容
{
siteName: "69书吧",
url: "^https:\/\/www\.69shu\.com\/\w+\/\d+\/\d+",
titleSelector: "h1.hide720",
prevSelector: ".page1 a:contains('上一章')",
nextSelector: ".page1 a:contains('下一章')",
indexSelector: ".page1 a:contains('目录')",
contentSelector: ".txtnav"
}
能不能适配一下https://www.69shu.com/我模仿你上面的操作试了一下,获取不到正文内容{siteName: "69书吧",url: "^https:\/\/www.69shu.com\/\w+\/\d+\/\d+",titleSelector: "h1.hide720",prevSelector: ".page1 a:contains('上一章')",nextSelector: ".page1 a:contains('下一章')",indexSelector: ".page1 a:contains('目录')",contentSelector: ".txtnav"}
按下面的样式添加到上面 @xinggsf 所说的“小说阅读脚本设置”里面的“自定义站点规则”。 注意一定要加到“[]”括号对中。
[
{
siteName: "黄金书屋",
url: /^https:\/\/www\.dduxs\.com.+\d+\.html/,
titleSelector: "h1.post-title",
prevSelector: ".prev a",
nextSelector: ".next a",
indexSelector: ".bcrumb a:last",
contentSelector: "#nr1"
},
{
siteName: "69书吧",
url: /^https:\/\/www\.69shu\.com\/txt\/\d+\/\d+/,
titleSelector: "h1.hide720",
prevSelector: ".page1 a:contains('上一章')",
nextSelector: ".page1 a:contains('下一章')",
indexSelector: ".page1 a:contains('目录')",
contentSelector: ".txtnav",
contentRemove: ".txtinfo"
},
]
[
{
siteName: "黄金书屋",
url: /^https:\/\/www\.dduxs\.com.+\d+\.html/,
titleSelector: "h1.post-title",
prevSelector: ".prev a",
nextSelector: ".next a",
indexSelector: ".bcrumb a:last",
contentSelector: "#nr1"
},
{
siteName: "69书吧",
url: /^https:\/\/www\.69shu\.com\/txt\/\d+\/\d+/,
titleSelector: "h1.hide720",
prevSelector: ".page1 a:contains('上一章')",
nextSelector: ".page1 a:contains('下一章')",
indexSelector: ".page1 a:contains('目录')",
contentSelector: ".txtnav",
contentRemove: ".txtinfo"
},
]
谢谢你!
新增站点支持: 黄金书屋