69书吧-改

https://www.69shuba.com/

dukege (8566)03/21 15:36

首先感谢大佬zylim

我在大佬的基础上修改了一下,之前一直不知道为啥正文空,大佬解决了这个问题(应该是很基础的,可惜我不太懂html)

这个书源有两个功能,一个是添加网址的方式添加书籍,还有一个是在搜索里用#54554这样的方式搜索添加书籍…

其次去掉了发现页面,以及@标签这种方式的搜索标签类别下的书籍。

另外,这个书源可以显示封面啥的
二维码导入
{
    "bookSourceComment": "",
    "bookSourceName": "69书吧-改",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/www.69shuba.com\/",
    "bookUrlPattern": "https:\/\/www.69shuba.com\/book\/[0-9]+\\.htm",
    "concurrentRate": "20\/60000",
    "customOrder": 0,
    "enabled": true,
    "enabledCookieJar": false,
    "enabledExplore": true,
    "header": "@js:\nJSON.stringify({\n\t    \"User-Agent\": \"Mobile 111\",\n\t    \"Referer\": baseUrl\n })",
    "jsLib": "function getSearchUrl(key, baseUrl) {\n\t return baseUrl || \"\" + \"\/modules\/article\/search.php,\" + JSON.stringify({\"charset\": \"gbk\",\"method\": \"POST\",\"body\": `searchkey=${key}&submit=Search`})\n}\n\nfunction getCoverUrl(s) {\n\t var ret = \"\"\n\t if (Number(s)) ret = `\/fengmian\/${s.slice(0,-3)}\/${s}\/${s}s.jpg`\n\t return ret\n}",
    "lastUpdateTime": "1742542578752",
    "loginUrl": "",
    "respondTime": 180000,
    "ruleBookInfo": {
        "author": "[property$=author]@content",
        "coverUrl": "[property$=image]@content",
        "intro": "更新:\n{{@@[property$=update_time]@content}}\n简介:\n{{@@[email protected]@html}}",
        "kind": "[property~=category|status|update_time]@content&&[email protected]@text##节数",
        "lastChapter": "[property$=chapter_name]@content\n##\\d+\\.|(.*|\\(.*|【.*|(零|一|二|三|四|五|六|七|八|九|十|百|千|万)(.|\\s)*章|“|”\n@js:result\n.replace(\"••\",\"\")\n.replace(\/^(\\d+).第\/,'第')\n.replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\(\\{({【].*[求更谢乐发推票盟补加字Kk\\\/].*[\\)\\})}】]\/g,'')\n.replace(\/^(\\d+)[、.]第.+章\/,'第$1章')\n.replace(\/^(\\d+)、\\d+、\/,'第$1章 ')\n.replace(\/^(\\d+)、\\d+\/,'第$1章')\n.replace(\/^(第.+章)\\s?\\d+\/,'$1')\n.replace(\/^(\\d+)、\/,'第$1章 ')\n.replace(\/^(第.+章)\\s?第.+章\/,'$1')\n.replace(\/第\\s(.+)\\s章\/,'第$1章')\n.replace(\/.*(chapter|Chapter)\\s?(\\d+)\\s?\/,'$1 $2 ')\n.replace(\/\\(.+\\)\/,'')\n.replace(\/\\[|。\/,'')\n.replace(\/第([零一二三四五六七八九十百千]+)章\/g,java.toNumChapter(result))\n##(章)([^\\s]+)(\\s·)##$1 $2$3",
        "name": "[property$=book_name]@content",
        "tocUrl": "text.完整目录@href||class.btn more-btn@href##.*?com",
        "wordCount": "[email protected]@textNodes"
    },
    "ruleContent": {
        "content": "@js:\nvar txtnav = java.getElement(\".txtnav\")\ntxtnav.select(\"*:not(p,br)\").remove()\ntxtnav.html()",
        "replaceRegex": "##\\s*({{ book.durChapterTitle }}|.*作者:.*|\\(本章完\\)|PS:.*求推荐!|PS:.*求收藏!|感谢.*打赏.*|感谢.*推荐票.*|感谢.*月票.*|(.*月票.*)|(为大家的.*票加更.*)|第二更在.*|loadAdv.*)\\s*",
        "title": ""
    },
    "ruleExplore": {},
    "ruleSearch": {
        "author": "tag.label.0@text",
        "bookList": "<js>\nif(result.match(\/Just a moment\/)){\ncookie.removeCookie(source.bookSourceUrl)\nvar x=baseUrl;\nvar s=java.startBrowserAwait(x,\"验证\").body()\nresult=s;\n\t}else{\n\t\tresult=result;\n\t\t}\nresult\n<\/js>\nclass.newbox@ul@li\n#article_list_content ul@li||#[email protected]@div.0@ul@li||class.newlistbox@ul@li",
        "bookUrl": "class.btn btn-tp@href",
        "coverUrl": "tag.img@src\n<js>\nif(baseUrl.match(\"cdn\/images\/nc.jpg\")){baseUrl=\"\";}<\/js>",
        "intro": "tag.ol.0@text",
        "kind": "tag.label.1@text&&tag.label.2@text",
        "name": "h3@text"
    },
    "ruleToc": {
        "chapterList": "-id.catalog@ul@li@a",
        "chapterName": "text",
        "chapterUrl": "href"
    },
    "searchUrl": "<js>\nif(key.match(\/#\/)){\nresult='https:\/\/www.69shuba.com\/book\/'+encodeURI(key.match(\/^(?:#|#)(.*)\/)[1])+'.htm';}\nelse{\tresult='https:\/\/www.69shuba.com\/modules\/article\/search.php,{\"charset\": \"gbk\", \"method\": \"POST\", \"body\": \"searchkey='+key+'&searchtype=all\"}';}\nresult<\/js>",
    "weight": 0
}
广告