🔞禁忌书屋 cool18 [uaa代餐]
https://www.cool18.com
iTryIt (13446)13小时前
禁忌书屋 cool18,可以作为uaa嗝屁期间的代餐
优点:更新进度与uaa基本一致
缺点:没有做合章,所以只能一章一章存
{
"ruleSearch": {
"bookList": "div.container > section.section > ul.post-list.thread-list > li.l-m1",
"name": "li.l-m1 > a > b@text##作者.*##",
"author": "li.l-m1 > a > b@text##^(.*?)(?:作者[:|:](.*))?$##$2",
"bookUrl": ".l-m1 a@href"
},
"ruleBookInfo": {},
"ruleToc": {
"chapterList": "<js>\n'<a href=\"'+baseUrl+'\">合一章<\/a>'\n<\/js>\ntag.a",
"chapterUrl": "href",
"chapterName": "text"
},
"ruleContent": {
"content": "<js>\n\/\/ 假设 result 变量已包含 HTML 字符串\nvar document = org.jsoup.Jsoup.parse(result);\n\nvar preElements = document.select('div#content-section.content-section > pre');\nif (preElements.isEmpty()) {\n result = '未找到 div#content-section.content-section > pre 元素';\n} else {\n var preElement = preElements.first();\n var innerHtml = preElement.html();\n \n \/\/ 定义转换函数(注意:在 Rhino 中使用 var 或 function)\n function convertHtmlToPlainTextWithLineBreaks(html) {\n var text = html;\n text = text.replaceAll(\" \", \" \");\n text = text.replaceAll(\"(?i)<p[^>]*><\\\\\/p>\", \"\\n\");\n text = text.replaceAll(\"(?i)<p[^>]*>(.*?)<\\\\\/p>\", \"\\n$1\\n\");\n text = text.replaceAll(\"(?i)<br\\\\s*\\\\\/?>\", \"\\n\");\n text = text.replaceAll(\"<[^>]+>\", \"\");\n text = text.replaceAll(\"\\\\n{3,}\", \"\\n\\n\");\n return text.trim();\n }\n \n \/\/ 调用函数,获取纯文本\n var plainText = convertHtmlToPlainTextWithLineBreaks(innerHtml);\n result = plainText;\n}\n<\/js>"
},
"ruleExplore": {},
"bookSourceType": 0,
"bookSourceUrl": "https:\/\/www.cool18.com",
"bookSourceName": "🔞禁忌书屋 cool18 [uaa代餐]",
"searchUrl": "https:\/\/www.cool18.com\/bbs4\/index.php?action=search&bbsdr=bbs4&act=threadsearch&app=forum&keywords={{key}}&submit=%E6%9F%A5%E8%AF%A2&p={{page}}",
"exploreUrl": "[\n {\n \"title\": \"〖书屋原创区〗\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?act=threadsearch&app=forum&keywords=%E5%8E%9F%E5%88%9B&submit=%E6%A0%8F%E7%9B%AE%E6%90%9C%E7%B4%A2&first=1&p=0\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": 1\n }\n },\n {\n \"title\": \"『都市』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E9%83%BD%E5%B8%82&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『校园』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E6%A0%A1%E5%9B%AD&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『乡野』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E4%B9%A1%E9%87%8E&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『古风』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E5%8F%A4%E9%A3%8E&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『异国』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E5%BC%82%E5%9B%BD&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『玄幻』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E7%8E%84%E5%B9%BB&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『红绿』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E7%BA%A2%E7%BB%BF&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『伦理』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E4%BC%A6%E7%90%86&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『独爱』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E7%8B%AC%E7%88%B1&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『暴虐』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E6%9A%B4%E8%99%90&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『摄心』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E6%91%84%E5%BF%83&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n },\n {\n \"title\": \"『其他』\",\n \"url\": \"https:\/\/www.cool18.com\/bbs4\/index.php?action=search&act=threadsearch&app=forum&type=%E5%85%B6%E4%BB%96&submit=%E6%9F%A5%E8%AF%A2&p={{page}}&p={{page}}\",\n \"style\": {\n \"layout_flexGrow\": 1\n }\n }\n]",
"header": {},
"loginCheckJs": "",
"lastUpdateTime": "1777549227866"
}