[{"bookSourceName":"🔞禁忌书屋 cool18 \n","bookSourceType":0,"bookSourceUrl":"https:\/\/www.cool18.com","customOrder":2,"enabled":true,"enabledCookieJar":true,"enabledExplore":true,"exploreUrl":"[{\"title\": \"〖书屋原创区〗\", \"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={{page}}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 1}}, {\"title\": \"『都市』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『校园』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『乡野』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『古风』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『异国』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『玄幻』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『红绿』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『伦理』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『独爱』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『暴虐』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『摄心』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}, {\"title\": \"『其他』\", \"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}}\", \"style\": {\"layout_flexGrow\": 1}}]","header":"[]","lastUpdateTime":"1784703640384","respondTime":180000,"ruleBookInfo":[],"ruleContent":{"content":"<js>\nvar document = org.jsoup.Jsoup.parse(result);\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    preElement.select('b font[size=4]').remove();\n    var innerHtml = preElement.html();\n    function convertHtmlToPlainTextWithLineBreaks(html) {\n        var text = html;\n        text = text.replaceAll(\"&nbsp;\", \" \");\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    var plainText = convertHtmlToPlainTextWithLineBreaks(innerHtml);\n    result = plainText;\n}\n<\/js>"},"ruleExplore":[],"ruleSearch":{"author":"li.l-m1 > a > b@text##^(.*?)(?:作者[：|:](.*))?$##$2","bookList":"div.container > section.section > ul.post-list.thread-list > li.l-m1","bookUrl":".l-m1 a@href","name":"li.l-m1 > a > b@text##作者.*##"},"ruleToc":{"chapterList":"<js>\nvar list=[];\nvar m=baseUrl.match(\/tid=(\\d+)\/);\nvar tid=m?m[1]:'';\ntry{\nvar api='https:\/\/www.cool18.com\/bbs4\/index.php?app=forum&act=achildlist&tid='+tid;\nvar jsonStr=org.jsoup.Jsoup.connect(api).ignoreContentType(true).execute().body();\nvar json=eval('('+jsonStr+')');\nvar chapters=[];\nfor(var i=0;i<json.length;i++){if(json[i].subject.indexOf('【')===0)chapters.push(json[i])}\nvar doc=org.jsoup.Jsoup.parse(result);\nvar selfA=doc.createElement('a');\nselfA.attr('href',baseUrl);\nselfA.text('第1章');\nvar t=doc.select('h1').first();if(t)selfA.text(t.text())\nlist.push(selfA);\nvar base='https:\/\/www.cool18.com\/bbs4\/index.php?app=forum&act=threadview&tid=';\nfor(var i=chapters.length-1;i>=0;i--){\nvar a=doc.createElement('a');\na.attr('href',base+chapters[i].tid);\na.text(chapters[i].subject);\nlist.push(a);\n}\n}catch(e){\nvar doc=org.jsoup.Jsoup.parse(result);\nvar a=doc.createElement('a');\na.attr('href',baseUrl);\na.text('第1章');\nlist.push(a);\n}\nresult=list;\n<\/js>","chapterName":"text","chapterUrl":"href"},"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}}","weight":0}]