群小说网-v1
http://www.qunxs.com
huangmeng258 (15493)11/21 12:52
ai神力
{
"bookSourceComment": "群小说网 www.qunxs.com · v1(2026-11-19)\n站点形态:Laravel HTML 服务端渲染(UTF-8)。搜索为 POST \/search\/ + CSRF _token,searchUrl 用 js 先取首页 token 再 POST,需开启 CookieJar。\n目录 \/txt\/{bid}.html 每页 100 章,nextTocUrl 翻页;正文 \/txt\/{bid}\/{cid}.html 内部分页,页地址藏在 dean packer 混淆 eval 块里,jsLib 运行时解码(qsNext),并有三重守卫:h1 页码到顶停、章节 id 不变、末页无 eval 块自然停。\n正文水印逐请求随机(符号\/分隔符变体 + 句内注入 + 整行广告句),qsClean 按骨架净化,残留骨架词的整段按广告句丢弃。\n「热门」榜单站方无分页(\/rank\/1 为空壳),故该格不带页码,翻页会重复同一批书;分类\/推荐\/全本分页正常(每页 6 张卡片)。\n失效表现:若搜索总为空,多为首页取 token 失败(检查网络\/换源);若目录 0 章,多为站点改版,需更新选择器。",
"bookSourceGroup": "群小说网",
"bookSourceName": "群小说网-v1",
"bookSourceType": 0,
"bookSourceUrl": "http:\/\/www.qunxs.com",
"bookUrlPattern": "^https?:\/\/www\\.qunxs\\.com\/xiaoshuo_\\d+\\.html$",
"customButton": false,
"customOrder": 0,
"enabled": true,
"enabledCookieJar": true,
"enabledExplore": true,
"eventListener": false,
"exploreUrl": "[{\"title\":\"分类\",\"url\":\"\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":1}},{\"title\":\"玄幻\",\"url\":\"http:\/\/www.qunxs.com\/xuanhuan\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"仙侠\",\"url\":\"http:\/\/www.qunxs.com\/xianxia\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"都市\",\"url\":\"http:\/\/www.qunxs.com\/dushi\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"历史\",\"url\":\"http:\/\/www.qunxs.com\/lishi\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"网游\",\"url\":\"http:\/\/www.qunxs.com\/wangyou\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"科幻\",\"url\":\"http:\/\/www.qunxs.com\/kehuan\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"恐怖\",\"url\":\"http:\/\/www.qunxs.com\/kongbu\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"榜单\",\"url\":\"\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":1}},{\"title\":\"热门\",\"url\":\"http:\/\/www.qunxs.com\/rank\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"推荐\",\"url\":\"http:\/\/www.qunxs.com\/votelist\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}},{\"title\":\"全本\",\"url\":\"http:\/\/www.qunxs.com\/quanben\/{{page}}\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.46}}]",
"header": "{\"User-Agent\":\"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/120.0.0.0 Safari\/537.36\"}",
"jsLib": "\/* ============================================================\n * 群小说网 (www.qunxs.com) 小说书源 jsLib —— 纯 ES5(Rhino 兼容)\n * 站点形态:Laravel HTML 服务端渲染\n * 详情 \/xiaoshuo_{bid}.html\n * 目录 \/txt\/{bid}.html、\/txt\/{bid}_{p}.html(每页 100 章)\n * 正文 \/txt\/{bid}\/{cid}.html、\/txt\/{bid}\/{cid}_{p}.html\n * 翻页地址藏在 dean packer 混淆的 eval 块里,需运行时解码\n * 章节末页无 eval 块(\"下一页\"直接指下一章,绝不能跟)\n * 水印:句内注入「(<a>…<\/a>)来…看最新章节…完整章节(qunxs)•(com)」\n * ============================================================ *\/\n\n\/* ---------------- 基础工具(与通用 jsLib 同实现) ---------------- *\/\nfunction kbTrim(s) {\n return String(s === null || s === undefined ? '' : s).replace(\/^[\\s\\u00a0\\u3000]+|[\\s\\u00a0\\u3000]+$\/g, '');\n}\n\nfunction kbUnescape(s) {\n var t = String(s === null || s === undefined ? '' : s);\n t = t.replace(\/ \/gi, ' ').replace(\/ \/gi, ' ').replace(\/ \/gi, '\\u3000');\n t = t.replace(\/<\/gi, '<').replace(\/>\/gi, '>').replace(\/"\/gi, '\"');\n t = t.replace(\/'\/gi, \"'\").replace(\/'\/g, \"'\");\n t = t.replace(\/&#x([0-9a-f]+);\/gi, function (m, h) { return String.fromCharCode(parseInt(h, 16)); });\n t = t.replace(\/&#(\\d+);\/g, function (m, d) { return String.fromCharCode(parseInt(d, 10)); });\n t = t.replace(\/&\/gi, '&');\n return t;\n}\n\nfunction kbDate(v) {\n if (v === null || v === undefined || v === '') return '';\n var m = String(v).match(\/(\\d{4})[-\/年](\\d{1,2})[-\/月](\\d{1,2})\/);\n if (m) return m[1] + '-' + (m[2].length < 2 ? '0' + m[2] : m[2]) + '-' + (m[3].length < 2 ? '0' + m[3] : m[3]);\n return '';\n}\n\n\/* ---------------- 水印净化(句内注入,不能按行丢) ----------------\n * 实测三种变体(均在句中\/句尾插入):\n * ⑿(<a href=\"…qunxs.com\">[(qunxs.com)]<\/a>)◀来⑿群小?♧说网⑿?♧看最新章节?♧完整章节⑿(qunxs)•(com)\n * ⒏(<a href=\"…\">[群小说@▧网]<\/a>)⒏⅕来⒏群小说@▧网⒏@▧看最新章节@▧完整章节⒏(qunxs)•(com)\n * ✏(<a href=\"…\">[(qunxs.com)]<\/a>)⊕来✏群?♧小说网✏?♧看最新章节?♧完整章节✏(qunxs)•(com)\n * 步骤:① 摘含水印标记的 <a> 整块 ② 删噪声符号 ③ 删水印短语骨架 ④ 删残留域名\n *\/\nfunction qsClean(s) {\n var t = String(s === null || s === undefined ? '' : s);\n \/\/ ① <a> 锚点:配对的整块摘除;未闭合的开标签也剥掉(水印 href 会被混淆)\n t = t.replace(\/<a[^>]*>[\\s\\S]*?<\\\/a>\/gi, '');\n t = t.replace(\/<a[^>]*>\/gi, '');\n \/\/ ② 噪声装饰符号(带圈数字\/几何形状\/手写符号\/卍 等水印专用字符,正文几乎不用)\n t = t.replace(\/[\\u2460-\\u24ff\\u2150-\\u215f\\u2500-\\u25ff\\u2200-\\u22ff\\u2600-\\u27bf\\u2102\\u2117\\u2121\\u534d\\u5350]\/gi, '');\n \/\/ ③′ 更新提醒句(骨架 + 有界窗口):…提醒您《书名》第一时间在…更新…看最新章节…完整章节…\n t = t.replace(\/[^。!?\\n]{0,40}提醒您[\\s\\S]{0,200}?完整章节[\\s\\S]{0,15}?\/g, '');\n \/\/ ③ 水印域名全角拉丁归一(qunxs com . → 半角;仅限这几个字符,不动中文标点)\n t = t.replace(\/[qunxscom@]\/g, function (c) { return String.fromCharCode(c.charCodeAt(0) - 0xFEE0); });\n t = t.replace(\/.\/g, '.');\n \/\/ ④ 站名\/域名括块(锚点被剥后留下的纯文本块,[()] 括号形态不定)\n t = t.replace(\/[\\[((]\\s*群[^\\n。!?]{0,4}网\\s*[\\]))]\/g, '');\n t = t.replace(\/[\\[((]\\s*qunxs[.._@@\\s]{0,4}com\\s*[\\]))]\/gi, '');\n t = t.replace(\/[((]\\s*qunxs\\s*[))]\\s*[•·]?\\s*[((]\\s*com\\s*[))]\/gi, '');\n t = t.replace(\/qunxs[.._@@\\s]{0,3}com\/gi, '');\n \/\/ ⑤ 水印短语骨架(骨架词:看最新章节\/完整章节,正文不会出现)\n \/\/ WS = 水印间隔符(随机符号字,不含字母数字与汉字);SW = 间隔符或站名词片段\n var WS = '[^0-9A-Za-z\\\\u4e00-\\\\u9fa5\\\\n]';\n var SW = '(?:' + WS + '|群|小说|小说网|小|说|网)';\n \/\/ a. 带引导\"来\"(最常见):来…群…看最新章节…完整章节(首个间隔不含\"来\",贴水印自己的\"来\"起切)\n t = t.replace(new RegExp('来' + WS + '{0,4}群' + SW + '{0,8}看最新章节' + WS + '{0,6}完整章节', 'g'), '');\n \/\/ b. 其他引导(域名\/网址\/记住\/裸符号串):…看最新章节…完整章节\n t = t.replace(new RegExp('(?:' + SW + '|域名|网址|地址|记住|网站){1,16}看最新章节' + WS + '{0,6}完整章节', 'g'), '');\n \/\/ c. 悬在句尾的裸站名残渣:群(小)说网…,\/。\n t = t.replace(new RegExp('群' + WS + '{0,2}小' + WS + '{0,2}说?' + WS + '{0,2}网(?=[,,。!?\\\\n]|$)', 'g'), '');\n \/\/ ⑥ 清尾:空括号、残留标签、首部残渣;尾部只剥水印符号(不动正文的句读)\n t = t.replace(\/[((\\[{]\\s*[)\\]}\\t]\/g, '');\n t = t.replace(\/<[^>]+>\/g, '');\n t = t.replace(\/^[、。.,,_@@*#$%•·…℡ℂ℗卍卐Θ]{1,6}\/g, '');\n t = t.replace(\/[_@@*#$%℡ℂ℗卍卐Θ]{1,6}$\/g, '');\n t = t.replace(\/\\s{2,}\/g, ' ');\n return kbTrim(t);\n}\n\n\/* 整段都是水印广告句的判定(qClean 后仍残留骨架词 → 弃整段) *\/\nfunction qsIsAdLine(s) {\n return \/看最新章节|完整章节|提醒您|全网首发|记住[^。!?\\n]{0,8}(?:域名|网址|群|小说)|qunxs|qunxs\/i.test(String(s || ''));\n}\n\n\/* ---------------- 正文 ---------------- *\/\nfunction qsParasOf(html) {\n var t = String(html === null || html === undefined ? '' : html);\n var m = t.match(\/<div\\s+id=\"booktxt\">([\\s\\S]*?)<div\\s+id=\"nr_page\"\/i);\n if (!m) m = t.match(\/<div\\s+id=\"booktxt\">([\\s\\S]*?)<\\\/div>\\s*<\\\/div>\/i);\n if (!m) return [];\n var blk = m[1], out = [], re = \/<p[^>]*>([\\s\\S]*?)<\\\/p>\/gi, mm;\n while ((mm = re.exec(blk))) {\n var line = qsClean(mm[1]); \/\/ 整块原样交给 qsClean(含 <a> 水印锚点)\n if (line && line.length > 1 && !qsIsAdLine(line)) out.push(line);\n }\n return out;\n}\n\nfunction qsContent(html) {\n var ps = qsParasOf(html);\n if (!ps.length) return '△ 正文获取失败';\n return ps.join('\\n');\n}\n\n\/* ---------------- 正文翻页:解码 dean packer 混淆的 eval 块 ----------------\n * 原文形态:\n * }('4 2 = \"3\"+\"5\/0.1\";',62,6,'8488079_2|html|u6afecdb0338d1|\/txt\/|var|14014'.split('|'),0,{})\n * 解码即把模板里的 \\b\\w+\\b 按词表下标还原 → var x = \"\/txt\/14014\/8488079_2.html\";\n * 仅当本页确有同章下一页时返回 URL;章节末页无 eval 块、h1 页码到顶,均返回 ''。\n *\/\nfunction qIdx(tok, base) {\n var r = 0, i, c, v;\n for (i = 0; i < tok.length; i++) {\n c = tok.charAt(i);\n if (c >= '0' && c <= '9') v = c.charCodeAt(0) - 48;\n else if (c >= 'a' && c <= 'z') v = c.charCodeAt(0) - 87;\n else v = c.charCodeAt(0) - 29; \/\/ 'A'..'Z' → 36..61\n r = r * base + v;\n }\n return r;\n}\n\nfunction qsNext(html, baseUrl) {\n var t = String(html === null || html === undefined ? '' : html);\n var u = String(baseUrl === null || baseUrl === undefined ? '' : baseUrl);\n if (!t || !u) return '';\n \/\/ 守卫 1:h1 页码 (cur\/total),到顶不再翻\n var pm = t.match(\/[((]\\s*(\\d+)\\s*\\\/\\s*(\\d+)\\s*[))]\\s*<\\\/h1>\/);\n if (pm) {\n var cur = parseInt(pm[1], 10), tot = parseInt(pm[2], 10);\n if (tot && cur >= tot) return '';\n }\n \/\/ 找 eval packer 块\n var m = t.match(\/\\}\\('([^{']*)'\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*'([^']*)'\\s*\\.\\s*split\\s*\\(\\s*'\\|'\\s*\\)\/);\n if (!m) return '';\n var words = m[4].split('|'), tpl = m[1], base = parseInt(m[2], 10) || 62;\n var dec = tpl.replace(\/\\b\\w+\\b\/g, function (tok) {\n var i = qIdx(tok, base);\n return words[i] === undefined ? tok : words[i];\n });\n var vm2 = dec.match(\/=\\s*((?:\"[^\"]*\"\\s*\\+\\s*)*\"[^\"]*\")\/);\n if (!vm2) return '';\n var segs = vm2[1].match(\/\"([^\"]*)\"\/g) || []; \/\/ 值可能是多段字符串拼接\n var path = '', si;\n for (si = 0; si < segs.length; si++) path += segs[si].slice(1, -1);\n if (!path) return '';\n \/\/ 守卫 2:下一页必须仍是本章(同章节 id + 同书 id)\n var curM = u.match(\/\\\/txt\\\/(\\d+)\\\/(\\d+)(?:_(\\d+))?\\.html\/);\n var nxtM = path.match(\/\\\/txt\\\/(\\d+)\\\/(\\d+)(?:_(\\d+))?\\.html\/);\n if (curM && nxtM) {\n if (curM[1] !== nxtM[1] || curM[2] !== nxtM[2]) return ''; \/\/ 书号\/章号变了 = 指向下一章,拒跟\n if (nxtM[3] && curM[3] && parseInt(nxtM[3], 10) <= parseInt(curM[3], 10)) return '';\n }\n var host = u.match(\/^https?:\\\/\\\/[^\\\/]+\/);\n if (!host) return '';\n return path.charAt(0) === '\/' ? host[0] + path : host[0] + '\/' + path;\n}\n\n\/* ---------------- 详情页 ---------------- *\/\nfunction qsTocUrl(html, baseUrl) {\n var h = String(html === null || html === undefined ? '' : html);\n var u = String(baseUrl === null || baseUrl === undefined ? '' : baseUrl);\n var m = h.match(\/href=\"(\\\/txt\\\/\\d+\\.html)\"\/); \/\/ 详情页\"全部章节目录\"锚点\n if (!m) {\n var b = u.match(\/xiaoshuo_(\\d+)\/) || h.match(\/xiaoshuo_(\\d+)\/);\n if (b) m = [null, '\/txt\/' + b[1] + '.html'];\n }\n if (!m) return u; \/\/ 兜底:目录规则回退到详情页本身\n var host = u.match(\/^https?:\\\/\\\/[^\\\/]+\/);\n return host ? host[0] + m[1] : m[1];\n}\n\nfunction qsCleanChip(v) {\n var t = String(v === null || v === undefined ? '' : v);\n t = t.replace(\/<[^>]+>\/g, '');\n t = t.replace(\/[\\[\\]【】()()「」『』《》]\/g, '');\n t = kbTrim(t.replace(\/\\s+\/g, ' '));\n return t;\n}\n\nfunction qsKind(html) {\n var t = String(html === null || html === undefined ? '' : html), chips = [];\n var top = t.match(\/class=\"con_top\"([\\s\\S]*?)<\\\/div>\/);\n if (top) {\n var as = top[1].match(\/<a[^>]*>([^<]*)<\\\/a>\/g) || [];\n if (as.length > 1) {\n var c = qsCleanChip(String(as[1]).replace(\/<[^>]+>\/g, ''));\n if (c) chips.push(c);\n }\n }\n var st = t.match(\/状态[::]\\s*([^\\s<]{1,6})\/);\n if (st) {\n var s2 = st[1].indexOf('完结') > -1 ? '完结' : '连载';\n chips.push(s2);\n } else if (\/ \\| \\s*连载\/.test(t)) chips.push('连载');\n else if (\/ \\| \\s*完结\/.test(t)) chips.push('完结');\n var wc = t.match(\/([\\d.]+)\\s*万字\/);\n if (wc) chips.push(wc[1] + '万字');\n return chips.join(',');\n}\n\nfunction qsWord(html) {\n var t = String(html === null || html === undefined ? '' : html);\n var m = t.match(\/字数[::]\\s*([\\d.]+\\s*万字?)\/) || t.match(\/([\\d.]+)\\s*万字\/);\n return m ? m[1].replace(\/\\s+\/g, '') : '';\n}\n\nfunction qsIntro(html) {\n var t = String(html === null || html === undefined ? '' : html);\n var m = t.match(\/<div\\s+id=\"intro\"([\\s\\S]*?)<\\\/div>\/i);\n if (m) t = m[1];\n t = t.replace(\/<[^>]+>\/g, '\\n');\n t = kbUnescape(t);\n t = t.replace(\/\\r\\n?\/g, '\\n');\n var lines = t.split('\\n'), out = [], i, l;\n for (i = 0; i < lines.length; i++) {\n l = qsClean(lines[i]);\n if (!l || l.length < 2) continue;\n out.push('\\u3000\\u3000' + l); \/\/ 简介区不自动缩进,手加两个全角空格\n }\n return out.join('\\n');\n}\n\n\/* ---------------- 列表字段(搜索\/发现\/详情通用) ---------------- *\/\nfunction qsListIntro(v) {\n return qsClean(v);\n}\n",
"lastUpdateTime": "1795236739147",
"respondTime": 180000,
"ruleBookInfo": {
"author": "#info p a@text",
"canReName": "1",
"coverUrl": "#fmimg img@data-original||#fmimg img@src",
"intro": "#intro@html@js:qsIntro(result)",
"kind": "@js:qsKind(String(typeof result==='undefined'?'':result))",
"lastChapter": ".lastchapter a@text",
"name": "#info h1@text",
"tocUrl": "@js:qsTocUrl(String(typeof result==='undefined'?'':result), typeof baseUrl==='undefined'?'':baseUrl)",
"wordCount": "@js:qsWord(String(typeof result==='undefined'?'':result))"
},
"ruleContent": {
"content": "<js>(function(){var r=String(typeof result==='undefined'?'':result);return qsContent(r);})()<\/js>",
"nextContentUrl": "@js:qsNext(String(typeof result==='undefined'?'':result), typeof baseUrl==='undefined'?'':baseUrl)"
},
"ruleExplore": {
"author": ".btm a@text",
"bookList": "#hotcontent .item",
"bookUrl": "dt a@href",
"coverUrl": "img@data-original||img@src",
"intro": "dd@text@js:qsClean(result)",
"name": "dt a@text",
"wordCount": "em.orange@text"
},
"ruleSearch": {
"author": ".btm a@text",
"bookList": "#hotcontent .item",
"bookUrl": "dt a@href",
"checkKeyWord": "斗破苍穹",
"coverUrl": "img@data-original||img@src",
"intro": "dd@text@js:qsClean(result)",
"name": "dt a@text",
"wordCount": "em.orange@text"
},
"ruleToc": {
"chapterList": "a[rel=chapter]",
"chapterName": "a@title||a@text",
"chapterUrl": "a@href",
"nextTocUrl": "a.index-container-btn:containsOwn(下一页)@href"
},
"searchUrl": "<js>(function(){try{var h=String(java.ajax('http:\/\/www.qunxs.com\/'));var m=h.match(\/name=\"_token\" value=\"([^\"]+)\"\/);var t=m?m[1]:'';if(!t){return 'http:\/\/www.qunxs.com\/';}return 'http:\/\/www.qunxs.com\/search\/,{\"method\":\"POST\",\"body\":\"_token='+t+'&keyword='+encodeURIComponent(String(key))+'\"}';}catch(e){return 'http:\/\/www.qunxs.com\/';}})()<\/js>",
"weight": 0
}