[{"bookSourceComment":"哔哩小说 www.bilixs.com\n⚠️ 搜索接口受 Cloudflare 安全检查保护：搜索走 WebView 通道；首次搜索或检查过期时会自动弹出内置浏览器（数秒自动通过），通过后自动继续完成搜索。若弹窗被设置拦截，请到「登录」面板点「打开浏览器过盾」。\n浏览\/详情\/目录\/正文均无需登录。\n⚠️ 若搜索时弹出验证页面（Turnstile 交互挑战），请在弹出页面手动点一下验证按钮，通过后自动继续。\n★261118修复：发现页榜单\/分类 URL 随站点改版更新（\/book\/ 路径由9段变10段结构，页码前多插一段）。周推荐\/新书连载为站点空榜（URL有效无数据）。\n★261118二次修复（搜索空结果根因）：站点搜索限频呈「正常页\/错误页」交替，原 2.5 秒单次重试命中率低；改为三态区分（结果页\/CF挑战页\/限频错误页），限频页不弹浏览器、4 秒间隔温和重试 3 次，挑战页才弹浏览器过盾。\n★261118三次补充：搜索项补配简介（div.novel-info-main）；搜索结果页无作者字段（站点数据限制，作者在详情页正常显示）。\n★261118五次修复（发现页超时根因）：E\/LT版 exploreBookAwait\/详情\/目录都会执行 loginCheckJs，原 loginCheckJs 里抓搜索页（webView+CF）会拖垮发现页导致超时；改为免登录直接原样 return result（★返回值即后续解析的 body，绝不能造新 StrResponse(\"OK\") 否则列表为空），搜索过盾由 bookList 内部处理。\n★261118四次修复（E版兼容）：E版 JsExtensions 无 java.setContent\/java.getElement，搜索\/目录解析改为 org.jsoup.Jsoup.parse + java.util.ArrayList（规避 E 版 NativeArray 强转坑），字段规则保持 CSS 选择器，LT\/E 双版本通吃。\n制作：legado-book-source-tamer 2026-11-18","bookSourceGroup":"综合","bookSourceName":"哔哩小说","bookSourceType":0,"bookSourceUrl":"https:\/\/www.bilixs.com","bookUrlPattern":".*bilixs\\.com\/novel\/.+\\.html","concurrentRate":"1000","customButton":false,"customOrder":0,"enabled":true,"enabledCookieJar":true,"enabledExplore":true,"eventListener":false,"exploreUrl":"人气榜::https:\/\/www.bilixs.com\/book\/weekvisit_0_0_0_0_0_0_0_{{page}}_0.html\n月点击::https:\/\/www.bilixs.com\/book\/monthvisit_0_0_0_0_0_0_0_{{page}}_0.html\n周推荐::https:\/\/www.bilixs.com\/book\/weekvote_0_0_0_0_0_0_0_{{page}}_0.html\n月推荐::https:\/\/www.bilixs.com\/book\/monthvote_0_0_0_0_0_0_0_{{page}}_0.html\n新书榜::https:\/\/www.bilixs.com\/book\/newhot_0_0_0_0_0_0_0_{{page}}_0.html\n字数榜::https:\/\/www.bilixs.com\/book\/words_0_0_0_0_0_0_0_{{page}}_0.html\n收藏榜::https:\/\/www.bilixs.com\/book\/goodnum_0_0_0_0_0_0_0_{{page}}_0.html\n最新更新::https:\/\/www.bilixs.com\/book\/lastupdate_0_0_0_0_0_0_0_{{page}}_0.html\n近日入库::https:\/\/www.bilixs.com\/book\/postdate_0_0_0_0_0_0_0_{{page}}_0.html\n完本::https:\/\/www.bilixs.com\/book\/lastupdate_0_0_0_0_0_0_5_{{page}}_0.html\n连载::https:\/\/www.bilixs.com\/book\/lastupdate_0_0_0_0_0_0_1_{{page}}_0.html\n言情::https:\/\/www.bilixs.com\/book\/lastupdate_0_1_0_0_0_0_0_{{page}}_0.html\n都市::https:\/\/www.bilixs.com\/book\/lastupdate_0_2_0_0_0_0_0_{{page}}_0.html\n耽美百合::https:\/\/www.bilixs.com\/book\/lastupdate_0_3_0_0_0_0_0_{{page}}_0.html\n穿越转生::https:\/\/www.bilixs.com\/book\/lastupdate_0_4_0_0_0_0_0_{{page}}_0.html\n青春校园::https:\/\/www.bilixs.com\/book\/lastupdate_0_5_0_0_0_0_0_{{page}}_0.html\n玄幻魔法::https:\/\/www.bilixs.com\/book\/lastupdate_0_6_0_0_0_0_0_{{page}}_0.html\n修真武侠::https:\/\/www.bilixs.com\/book\/lastupdate_0_7_0_0_0_0_0_{{page}}_0.html\n历史军事::https:\/\/www.bilixs.com\/book\/lastupdate_0_8_0_0_0_0_0_{{page}}_0.html\n游戏竞技::https:\/\/www.bilixs.com\/book\/lastupdate_0_9_0_0_0_0_0_{{page}}_0.html\n科幻空间::https:\/\/www.bilixs.com\/book\/lastupdate_0_10_0_0_0_0_0_{{page}}_0.html\n悬疑惊悚::https:\/\/www.bilixs.com\/book\/lastupdate_0_11_0_0_0_0_0_{{page}}_0.html\n同人小说::https:\/\/www.bilixs.com\/book\/lastupdate_0_12_0_0_0_0_0_{{page}}_0.html\n官场职场::https:\/\/www.bilixs.com\/book\/lastupdate_0_13_0_0_0_0_0_{{page}}_0.html","header":"{\"User-Agent\": \"Mozilla\/5.0 (Linux; Android 10; MI 8 Build\/QKQ1.190828.002; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/154.0.8037.22 Mobile Safari\/537.36\"}","lastUpdateTime":"1795018905212","loginCheckJs":"(function (r) {\n  \/\/ 本站全免登录；loginCheckJs 的返回值会成为后续解析的响应体，\n  \/\/ 必须原样返回 result（原始 StrResponse）——造新 StrResponse('OK') 会把 body 变成 'OK' 导致列表为空。\n  \/\/ 搜索的 CF 过盾由 bookList 内部处理，此处不做任何网络请求。\n  try { return result; } catch (e) { return r; }\n})(result)","loginUi":"[{\"name\":\"哔哩小说：搜索接口受 Cloudflare 安全检查保护。搜索时会自动弹出检查页过盾并自动继续；若搜索无结果，点「打开浏览器过盾」后重搜；「检查搜索通道」可随时确认状态。若弹出页面需手动点击验证，点一下即可。\",\"type\":\"label\",\"style\":{\"layout_flexBasisPercent\":1,\"layout_wrapBefore\":true}},{\"name\":\"打开浏览器过盾\",\"type\":\"button\",\"action\":\"BLX_open()\",\"style\":{\"layout_flexBasisPercent\":0.48}},{\"name\":\"检查搜索通道\",\"type\":\"button\",\"action\":\"BLX_check()\",\"style\":{\"layout_flexBasisPercent\":0.48,\"layout_wrapBefore\":true}}]","loginUrl":"function BLX_open() {\n  var u = 'https:\/\/www.bilixs.com\/search.html?searchkey=' + encodeURIComponent('斗破苍穹');\n  try {\n    java.startBrowser(u, '哔哩小说·安全检查（通过后回阅读重搜）');\n    java.toast('已打开浏览器：等待安全检查通过（如出现验证按钮请手动点一下），页面显示出搜索结果即为成功');\n  } catch (e) {\n    java.toast('浏览器打开失败：' + e);\n  }\n}\nfunction BLX_check() {\n  var u = 'https:\/\/www.bilixs.com\/search.html?searchkey=' + encodeURIComponent('斗破苍穹');\n  var body = '';\n  try { body = String(java.ajax(u + ',{\"webView\":true}')); } catch (e) {}\n  if (body.indexOf('module-search-item') >= 0) {\n    java.toast('✅ 搜索通道正常（WebView 通道已通），可直接搜索');\n  } else if (body.indexOf('请稍候') >= 0 || body.indexOf('Just a moment') >= 0 || body.indexOf('challenge-platform') >= 0) {\n    java.toast('⛔ WebView 通道仍被拦：请点「打开浏览器过盾」，如出现验证按钮请手动点一下');\n  } else {\n    java.toast('⚠️ 搜索通道异常：响应 ' + (body ? body.length + ' 字符（非盾页）' : '为空'));\n  }\n}\nfunction login() {}","respondTime":180000,"ruleBookInfo":{"author":"span.novel-tag-icon@text##^作者：##","coverUrl":"meta[property=og:image]@content","init":"@js:(function(){\n  var body = String(result || '');\n  if (body.length < 5000) {\n    var fresh = '';\n    try { fresh = String(java.ajax(baseUrl)); } catch (e) {}\n    if (fresh.length > 5000) {\n      var m2 = fresh.match(\/property=\"og:novel:read_url\" content=\"([^\"]*)\"\/);\n      if (m2) { try { source.put('blxToc', m2[1]); } catch (e2) {} }\n      return baseUrl;\n    }\n  }\n  var m = body.match(\/property=\"og:novel:read_url\" content=\"([^\"]*)\"\/);\n  if (m) { try { source.put('blxToc', m[1]); } catch (e1) {} }\n  return '';\n})()","intro":"div.novel-info-content@text","kind":"meta[property=og:novel:tags]@content##\\s+##,&&meta[property=og:novel:status]@content","lastChapter":"meta[property=og:novel:latest_chapter_name]@content","name":"h1.page-title@text","tocUrl":"meta[property=og:novel:read_url]@content||a.catalog-more@href","wordCount":"span.tag-link@text"},"ruleContent":{"content":"@js:(function(){\n  var h = String(result || '');\n  try {\n    if (h.length < 1000) { h = String(java.ajax(baseUrl)); }\n    var c = org.jsoup.Jsoup.parse(h).select('div.article-content');\n    if (c.size() > 0) { return c.first().html(); }\n  } catch (e) {}\n  return h;\n})()"},"ruleExplore":{"author":"div.module-item-text@text","bookList":"div.module-items > div.module-item","bookUrl":"a.module-item-title@href","coverUrl":"img@data-src","kind":"div.module-item-caption span@text","name":"a.module-item-title@text"},"ruleSearch":{"bookList":"@js:(function(){\n  var body = String(result || '');\n  var u = '';\n  try { u = String(java.get('blxUrl') || ''); } catch (e0) {}\n  if (!u || u == 'null' || u == 'undefined') { u = String(baseUrl); }\n  var diag = [];\n  function D(k, v) { diag.push(k + '=' + v); try { source.put('blxDiag', new Date().toLocaleString() + ' || ' + diag.join(' | ')); } catch (e) {} }\n  function hasList(h) { return String(h || '').indexOf('module-search-item') >= 0; }\n  function isChallenge(h) {\n    return h.indexOf('请稍候') >= 0 || h.indexOf('Just a moment') >= 0\n      || h.indexOf('challenge-platform') >= 0 || h.indexOf('cf-chl') >= 0;\n  }\n  function parse(h) {\n    var doc = org.jsoup.Jsoup.parse(h);\n    var els = doc.select('div.module-search-item');\n    var list = new Packages.java.util.ArrayList();\n    for (var i = 0; i < els.size(); i++) { list.add(els.get(i)); }\n    return list;\n  }\n  function grab() { try { return String(java.webView(null, u, null)); } catch (e) { D('grabErr', String(e).slice(0, 60)); return ''; } }\n  \/\/ 温和重试：站点限频呈「正常页\/错误页」交替出现，间隔拉长后大概率命中正常页\n  function retryGrab(times, gap) {\n    for (var i = 0; i < times; i++) {\n      try { Packages.java.lang.Thread.sleep(gap); } catch (eS) {}\n      var h = grab();\n      D('retry' + i + 'Len', h.length);\n      D('retry' + i + 'HasList', hasList(h));\n      if (hasList(h)) { return h; }\n    }\n    return '';\n  }\n  D('upstreamLen', body.length);\n  D('upstreamHasList', hasList(body));\n  \/\/ 快路径：上游已是结果页\n  if (hasList(body)) { D('path', 'upstream'); return parse(body); }\n  \/\/ 常规：主动走 WebView（带书源 header 与过盾 Cookie）\n  var h = grab();\n  D('grabLen', h.length);\n  D('grabHasList', hasList(h));\n  D('grabChallenge', isChallenge(h));\n  if (hasList(h)) { D('path', 'webview'); return parse(h); }\n  \/\/ 非挑战页且无列表 → 限频\/错误页（非 CF 挑战，弹浏览器无效）：温和重试 3 次、间隔 4 秒\n  if (!isChallenge(h)) {\n    h = retryGrab(3, 4000);\n    if (hasList(h)) { D('path', 'retry-ok'); return parse(h); }\n    \/\/ 温和重试仍无列表：确认是否已转成挑战页\n    h = grab();\n    if (isChallenge(h)) { D('path', 'now-challenge'); }\n  }\n  \/\/ 挑战页 → 弹内置浏览器过盾 → 再取（过盾后再温和重试兜底限频）\n  if (isChallenge(h)) {\n    try {\n      java.toast('搜索通道安全检查中：弹出页面过盾（如出现验证按钮请手动点一下），完成后自动继续搜索');\n      java.startBrowserAwait(u, '哔哩小说·安全检查（如出现验证按钮请手动点一下）');\n      D('await', 'done');\n      h = grab();\n      D('regrabHasList', hasList(h));\n      if (!hasList(h) && !isChallenge(h)) { h = retryGrab(2, 4000); }\n      if (hasList(h)) { D('path', 'await+webview'); return parse(h); }\n      java.toast('安全检查未完成：请重新搜索一次');\n    } catch (e) {\n      D('awaitErr', String(e).slice(0, 80));\n      java.toast('安全检查未能自动打开：请到书源菜单「登录」点「打开浏览器过盾」后再搜索');\n    }\n  }\n  return [];\n})()","bookUrl":"h3 a@href","checkKeyWord":"蛊真人","coverUrl":"div.module-item-pic img@data-src","intro":"div.novel-info-main@text","kind":"div.novel-info-aux span@text","name":"h3 a@text"},"ruleToc":{"chapterList":"@js:(function(){\n  var u = String(baseUrl || '');\n  try { var t = String(source.get('blxToc') || ''); if (t.indexOf('catalog') >= 0) { u = t; } } catch (e0) {}\n  if (u.indexOf('catalog') < 0) { u = u.replace(\/\\.html$\/, '\/catalog'); }\n  var body = String(result || '');\n  if (body.indexOf('module-row-info') < 0) { try { body = String(java.ajax(u)); } catch (e1) {} }\n  var doc = org.jsoup.Jsoup.parse(body);\n  var els = doc.select('div.module-row-info');\n  var list = new Packages.java.util.ArrayList();\n  for (var i = 0; i < els.size(); i++) { list.add(els.get(i)); }\n  return list;\n})()","chapterName":"div.module-row-title span@text","chapterUrl":"a@href"},"searchUrl":"@js:(function(){\n  var u = 'https:\/\/www.bilixs.com\/search.html?searchkey=' + encodeURIComponent(String(key));\n  try { java.put('blxUrl', u); } catch (e) {}\n  return u;\n})()","weight":0}]