{
"bookSourceComment": "by天天的鸟蛋蛋\nby = = \n参考by一包薯条 给的 不能直接用\n\n虽然没啥用,当个示例吧\n\n@css:#chapter-list > dd[id]\n<js>\nlet content = result\nlet indices = [];\nfor (i in result) {\n let match = String(result[i]).match(\/c(.*)?\"\/);\n indices.push(Number(match[1])-1);\n}\nfor (i in result){\tresult[i]=content[indices.indexOf(parseInt(i))]\n};\nresult\n<\/js>\n\n目录乱序参考木叶小说网\n\n\nhttps:\/\/ysqbbs.com\/thread-15279-1-1.html",
"bookSourceName": "其乐 言情小说",
"bookSourceType": 0,
"bookSourceUrl": "https:\/\/www.qilexs.com",
"customOrder": 0,
"enabled": true,
"enabledCookieJar": true,
"enabledExplore": true,
"lastUpdateTime": "1736348060900",
"respondTime": 180000,
"ruleBookInfo": {
"author": "p:nth-child(2) > a@text",
"coverUrl": "img@src",
"intro": "《{{book.name}}》\n最新章节:{{book.latestChapterTitle}}\n分类:{{book.kind}}\n{{@@.tag@text}}\n简介:\n{{@@.intro-text@p@textNodes}}",
"kind": "p:nth-child(3) > a@text&&p:nth-child(4)@text&&p:nth-child(6)@text##.*:",
"lastChapter": ".lc > a@text",
"name": "h1@text",
"tocUrl": "text.开始阅读@href",
"wordCount": "p:nth-child(5)@text##.*:"
},
"ruleContent": {
"content": ".content@html"
},
"ruleExplore": {},
"ruleSearch": {
"author": ".ro3 > a@text",
"bookList": "ul:nth-child(n+2)",
"bookUrl": ".ro1 > a@href",
"kind": ".dhh@text&&.ro4@text",
"lastChapter": ".ro2 > a@text",
"name": ".ro1 > a@text"
},
"ruleToc": {
"chapterList": "<js>\nvar JsDom = Packages.org.jsoup.Jsoup;\nvar Document = Packages.org.jsoup.nodes.Document;\nvar Element = Packages.org.jsoup.nodes.Element;\n\nvar document = JsDom.parse(src);\n\n\/\/ 获取列表 第一次需要修改的地方 修改正确的css 选择器\nvar links = document.select('#chapter-list > dd');\n\nvar list = [];\nfor (var i = 0; i < links.size(); i++) {\n var dd = links.get(i);\n var a = dd.select('a').first(); \n if (a != null) { \n list.push({\n text: a.text(),\n id: dd.attr('id').replace('c', ''), \/\/获取ID属性 需要自己手动改 第二处需要修改的地\n url: a.attr('href')\n });\n } \n}\n\n\/\/ 排序\nlist.sort(function(a, b) {\n var pageA = parseInt(a.id, 10);\n var pageB = parseInt(b.id, 10);\n return pageA - pageB;\n});\n\njava.log(JSON.stringify(list));\nlist;\n<\/js>",
"chapterName": "text",
"chapterUrl": "url"
},
"searchUrl": "{{url=source.getKey();cookie.removeCookie(url)}}\n\/modules\/article\/search.php?searchtype=all&searchkey={{key}},{\n \"charset\": \"GBK\",\n \"method\": \"GET\"\n}",
"weight": 0
}