{
"bookSourceGroup": "",
"bookSourceName": "4G",
"bookSourceType": 0,
"bookSourceUrl": "http:\/\/www.4gxsw.com",
"bookUrlPattern": "http:\/\/www.4gxsw.com\/book\/d+.html",
"customOrder": 0,
"enabled": false,
"enabledExplore": false,
"lastUpdateTime": 0,
"ruleBookInfo": {
"author": "author",
"coverUrl": "cover",
"init": "<js> \nvar J = org.jsoup.Jsoup.parse(result);\nvar o = selector => String(J.select(selector).text()) ;\nvar book = {\n\tname: o('h2').match(\/《(.*)》.*\/)[1],\n\tauthor: o('h2').match(\/.*作者:(.*)首发.*\/)[1],\n\tkind: o('.bookIntro p strong:eq(0)') + ',' + o('.bookIntro strong:eq(1)').replace(\/中|已\/, ''),\n\tlatest: o('h4 b').replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\((【].*[求更谢乐发推].*\/g, '') + ' • ' + o('h4').match(\/.*\\((\\d+-\\d+-\\d+)\\).*\/)[1],\n\tintro: ' 最近更新:' + o('h4').match(\/.*\\((\\d+-\\d+-\\d+)\\).*\/)[1] + '\\n' + o('#newIntro').replace(\/\\[ .*\\]\/, ''),\n\tcover: J.select('.bookPic img').attr('src'),\n\turl: J.select('.viewTool a:eq(0)').attr('href'),\n};\nbook;\n<\/js>",
"intro": "intro",
"kind": "kind",
"lastChapter": "latest",
"name": "name",
"tocUrl": "url"
},
"ruleContent": {
"content": ".divimage@html||#content@textNodes",
"imageStyle": "full"
},
"ruleExplore": {},
"ruleSearch": {
"author": "author",
"bookList": ".grid tr!0\n<js>\nresult.toArray().slice(0, 3).map(el => {\n\tvar url = String(el.select('a:eq(0)').attr('href')).replace(\/^\\\/\/, baseUrl.match(\/(.+?\\\/\\\/[^\\\/]+\\\/)\/)[1]);\n\tvar J = org.jsoup.Jsoup.parse(java.ajax(url));\n\tvar o = selector => String(J.select(selector).text());\t\n\treturn {\n\t\tname: o('h2').match(\/《(.*)》.*\/)[1],\n \t author: o('h2').match(\/.*作者:(.*)首发.*\/)[1],\n\t kind: o('.bookIntro p strong:eq(0)') + ',' + o('.bookIntro strong:eq(1)').replace(\/中|已\/, ''),\n\t latest: o('h4 b').replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\((【].*[求更谢乐发推].*\/g, '') + ' • ' + o('h4').match(\/.*\\((\\d+-\\d+-\\d+)\\).*\/)[1],\n\t intro: o('#newIntro').replace(\/\\[ .*\\]|\\s+|<br>\/g, ''),\n\t cover: J.select('.bookPic img').attr('src'),\n\t url: url,\n\t};\n}); \n<\/js>",
"bookUrl": "url",
"coverUrl": "cover",
"intro": "intro",
"kind": "kind",
"lastChapter": "latest",
"name": "name"
},
"ruleToc": {
"chapterList": ".list_cont ul li a",
"chapterName": "text##www.*|4g小说网首发|[\\((【].*[求更谢乐发推].*",
"chapterUrl": "href"
},
"searchUrl": "\/modules\/article\/search.php,{\n \"charset\": \"gbk\",\n \"method\": \"POST\",\n \"body\": \"searchkey={{key}}\"\n}",
"weight": 0
}