你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/292-my-novel-reader/discussions/5289,源站連結 點此以跳轉。
小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页
这是很早前写的规则,由于##书库这个网站不统一,需要好几个规则,所以放弃了。以下个规则仅部分支持。
// {siteName: "##在线书库(部分支持)",
// url: /www\.tianyabook\.com\/.*\.htm/,
// titleSelector: ".max, h1:first",
// bookTitleSelector: "td[width='70%'] > a[href$='index.htm']",
// contentSelector: "div > span.middle, #texts",
// contentHandle: false,
// },
大佬,还是不行!请注意网址是:tianyabook.org
取目录、上一页都没问题,就是取不到一页!我调试时发现用jQuery的选择符:contains无效,在控制台都报错
我的规则:
siteName: "##书库",
url: /www\.tianyabook\.org\/.+\.html$/,
titleSelector: "h1",
indexSelector: "td a[href='./']",
bookTitleSelector: ".crumb a[href='./']",
contentSelector: "h1 +p+p",
nextSelector: "td[width='28%'] a",
contentHandle: false,
useiframe: true,
取目录、上一页都没问题,就是取不到一页!我调试时发现用jQuery的选择符:contains无效,在控制台都报错
我的规则:
siteName: "##书库",
url: /www\.tianyabook\.org\/.+\.html$/,
titleSelector: "h1",
indexSelector: "td a[href='./']",
bookTitleSelector: ".crumb a[href='./']",
contentSelector: "h1 +p+p",
nextSelector: "td[width='28%'] a",
contentHandle: false,
useiframe: true,
测试链接:http://www.ty2016.com/book/th04/25933.html
[{
siteName: "##书库",
url: /www\.ty2016\.com\/.+\.html$/,
titleSelector: "h1",
bookTitleSelector: ".crumb a[href='./']",
indexSelector: "td a[href='./']",
nextSelector: "td[width='28%'] a",
contentSelector: "#main",
contentRemove: '.crumb, table',
contentHandle: false,
}]
终于OK了,谢谢
##书库 死活取不到下一页,加id属性、改DOM、useiframe等等办法都用了,不管用!!求助.........
自定义规则如下:
{
siteName: "##书库",
url: "^http://www\\.tianyabook\\.org/\\w+/\\w+/\\d+\\.html$",
titleSelector: "h1",
contentSelector: "h1 +p +p",
indexSelector: "a[href='./']",
prevSelector: "#main > table:nth-child(6) table:nth-child(1) a:first-child",
nextSelector: "a:contains('下一页')"
}