Greasy Fork is available in English.

My Novel Reader

小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页

< Feedback on My Novel Reader

Question/comment

§
Posted:
https://www.oldtimescc.cc/
有没有大佬可以教一下这个网站要怎么添加啊?
§
Posted:
Edited:
{
    siteName: "刺猬猫",
    url: /^https?:\/\/www\.ciweimao.com\/chapter\/\d+/,
    titleSelector: "h3.chapter",
    prevSelector: "#J_BtnPagePrev",
    nextSelector: "#J_BtnPageNext",
    indexSelector: ".btn.mulu",
    contentSelector: "#J_BookRead",
    contentRemove: ".watermark,p.chapter > span,p.chapter > i",
    // contentPatch: function (fakeStub) {
    // fakeStub.find(".book-read-page").appendTo(fakeStub.find("body"));
    // }
}, {
    siteName: "旧时光文学",
    url: /^https?:\/\/www\.oldtimescc\.cc.+\d+\.html/,
    titleSelector: "h1.pt10",
    prevSelector: "#linkPrev",
    nextSelector: "#linkNext",
    indexSelector: "#linkIndex",
    contentSelector: ".readcontent",
    contentRemove: ".readmiddle,.kongwen,p.text-danger",
    // nDelay: 500,
}, {
    siteName: "长佩文学网",
    url: /^https?:\/\/www\.gongzicp\.com\/read\-\d+\.html/,
    mutationSelector: "#cpReadMain", // 内容生成监视器
    mutationChildCount: 5,
    contentSelector: '#cpReadContent',
    contentRemove: 'p.cp-hidden',
    titleSelector: "h3.cp-read-name",
    indexSelector: "#cpReadSetting > a:eq(0)",
    prevSelector: "#cpReadSetting > a:eq(2)",
    nextSelector: "#cpReadSetting > a:eq(3)",
    //useiframe: true,
}

写好了规则,可问题不少,有时不显示正文或下一页!!这三个站点都有相似的问题

问问作者看看有没有办法吧

@ywzhaiqi

§
Posted:
就一行代码的事情

*://*.oldtimescc.cc/*

再重新进去那个网站就可以看到右下角有个阅读模式
添加站点还是简单,就自定义规则,添加背景图片稍微有点难

Post reply

Sign in to post a reply.