Greasy Fork is available in English.

My Novel Reader

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

< Valutazione su My Novel Reader

Domanda/commento

§
Pubblicato: 14/09/2020
https://www.oldtimescc.cc/
有没有大佬可以教一下这个网站要怎么添加啊?
§
Pubblicato: 29/09/2020
Modificato: 29/09/2020
{
    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

§
Pubblicato: 14/11/2020
就一行代码的事情

*://*.oldtimescc.cc/*

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

Pubblica risposta

Accedi per pubblicare una risposta.