书包书库
https://www.shubaoku.org
qi-mo-heng-he_0 (12943)06/07 18:04
@author: syiism
{
"bookSourceComment": "@author: syiism",
"bookSourceGroup": "3",
"bookSourceName": "书包书库",
"bookSourceType": 0,
"bookSourceUrl": "https:\/\/www.shubaoku.org",
"bookUrlPattern": "(https?:\/\/)?(www\\.)?shubaoku\\.org",
"customButton": false,
"customOrder": 45,
"enabled": true,
"enabledCookieJar": true,
"enabledExplore": true,
"eventListener": false,
"exploreUrl": "玄幻修真::https:\/\/www.shubaoku.org\/list\/1\/{{page}}\/\n重生穿越::https:\/\/www.shubaoku.org\/list\/2\/{{page}}\/\n都市小说::https:\/\/www.shubaoku.org\/list\/3\/{{page}}\/\n军史小说::https:\/\/www.shubaoku.org\/list\/4\/{{page}}\/\n网游小说::https:\/\/www.shubaoku.org\/list\/5\/{{page}}\/\n科幻小说::https:\/\/www.shubaoku.org\/list\/6\/{{page}}\/\n灵异小说::https:\/\/www.shubaoku.org\/list\/7\/{{page}}\/\n言情小说::https:\/\/www.shubaoku.org\/list\/8\/{{page}}\/\n其他小说::https:\/\/www.shubaoku.org\/list\/9\/{{page}}\/",
"header": "{\n \"Accept\": \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7\",\n \"Accept-Language\": \"zh-CN,zh;q=0.9,en;q=0.8\",\n \"Cache-Control\": \"no-cache\",\n \"Connection\": \"keep-alive\",\n \"Content-Type\": \"application\/x-www-form-urlencoded\",\n \"Origin\": \"https:\/\/www.shubaoku.org\",\n \"Pragma\": \"no-cache\",\n \"Referer\": \"https:\/\/www.shubaoku.org\/login.html\",\n \"Sec-Fetch-Dest\": \"document\",\n \"Sec-Fetch-Mode\": \"navigate\",\n \"Sec-Fetch-Site\": \"same-origin\",\n \"Sec-Fetch-User\": \"?1\",\n \"Upgrade-Insecure-Requests\": \"1\",\n \"User-Agent\": \"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/149.0.0.0 Safari\/537.36\",\n \"sec-ch-ua\": \"\\\"Google Chrome\\\";v=\\\"149\\\", \\\"Chromium\\\";v=\\\"149\\\", \\\"Not)A;Brand\\\";v=\\\"24\\\"\",\n \"sec-ch-ua-mobile\": \"?0\",\n \"sec-ch-ua-platform\": \"\\\"Linux\\\"\",\n \"Cookie\": \"user_id=98101; user_name=syiism; f4606260fbda49db503ecad3eb67cc8e=8c8bf418229bd2b43d75f3d9ee799363\"\n}",
"lastUpdateTime": "1780826695119",
"loginUrl": "https:\/\/www.shubaoku.org\/login.html",
"respondTime": 180000,
"ruleBookInfo": {
"intro": "div.first_txt > p@text",
"tocUrl": "@js: baseUrl+'1\/'"
},
"ruleContent": {
"content": ".txt@html||.word_read@p@html",
"nextContentUrl": "text.下一章@href"
},
"ruleExplore": {
"author": ".s4@text",
"bookList": "ul.txt-list.txt-list-row5@li ||ul.sort_list@li",
"bookUrl": "span.s2 > a@href",
"coverUrl": "<js>\nvar uri = java.getString('a.0@href');\nvar id = uri.match(\/\\\/\\d+\\\/(\\d+)\\\/\/)[1];\n`\/img\/${id}.jpg`;\n<\/js>",
"kind": ".s1@text",
"lastChapter": "span.s3 > a@text",
"name": "span.s2 > a@text"
},
"ruleSearch": {
"author": "span.s3 > a@text",
"bookList": "ul.txt-list.txt-list-row5 > li",
"bookUrl": "span.s2 > a@href",
"checkKeyWord": "系统",
"coverUrl": "<js>\nvar uri = java.getString('a.0@href');\nvar id = uri.match(\/\\\/\\d+\\\/(\\d+)\\\/\/)[1];\n`\/img\/${id}.jpg`;\n<\/js>",
"kind": ".s1@text&&.s5@text",
"lastChapter": "span.s4 > a@text",
"name": "span.s2 > a@text"
},
"ruleToc": {
"chapterList": "<js>\nvar pages = java.getElements('tag.select@option');\npages = Math.floor(pages.length \/ 2);\njava.log(\"pages: \" + pages);\nvar res = [];\nvar set = {}; \/\/ 去重\n\nfor (let i = 1; i <= pages; i ++) {\n var url = baseUrl.replace('\/1\/', '\/' + i + '\/');\n var resp = java.ajax(url);\n java.setContent(resp);\n resp = java.getStringList('\/\/ul[@class=\"section-list fix ycxsid\"]\/li\/a');\n\n for (let j = 0; j < resp.length; j ++) {\n var rr = resp[j].match(\/<a href=\"(.*?)\">(.*?)<\\\/a>\/);\n var title = rr[2], href = rr[1];\n if (set[title]) continue;\n var order = href.match(\/\\\/(\\d+)\\.html\/)[1];\n res.push(JSON.stringify({ title, href, order }));\n set[title] = true;\n }\n}\nres.sort((a, b) => {\n a = JSON.parse(a);\n b = JSON.parse(b);\n return a.order - b.order;\n});\nres;\n<\/js>",
"chapterName": "$.title",
"chapterUrl": "$.href"
},
"searchUrl": "@js:\ncookie.removeCookie(source.key)\n'https:\/\/www.shubaoku.org\/search.html,'+`{\"method\":\"POST\",\"body\":\"s={{key}}\"}`",
"weight": 0
}