[{"bookSourceComment":"天意文学网（入口 m.tywx.com，实际服务域 m2.tyvvxw.cc，GBK 编码）v3：\n· 发现页：8 个分类 + 全本 + 总排行榜；详情\/目录\/正文全通；正文自动翻分页并净化广告水印\n· 【无搜索】站点唯一搜索入口 so.biqusoso.com 已被劫持跳广告站，站内无搜索接口，请用发现页找书\n· v3：全面兼容改造——不再依赖 jsLib（所有 JS 内联进规则，兼容旧版阅读）；发现页直连 m2.tyvvxw.cc 消除 301 依赖；强制 GBK 解码；列表解析失败时显示诊断卡（含响应字节数）\n· 仅供个人学习使用，内容版权归原站","bookSourceGroup":"小说","bookSourceName":"天意文学网-v3","bookSourceType":0,"bookSourceUrl":"https:\/\/m2.tyvvxw.cc\/","bookUrlPattern":"^https?:\/\/[^\/]+\/ty\\d+\/$","customButton":false,"customOrder":1,"enabled":true,"enabledCookieJar":false,"enabledExplore":true,"eventListener":false,"exploreUrl":"[{\"title\": \"分类\", \"url\": \"\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 1}}, {\"title\": \"玄幻\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/1_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"武侠\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/2_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"都市\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/3_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"历史\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/4_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"侦探\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/5_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"网游\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/6_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"科幻\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/7_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"恐怖\", \"url\": \"https:\/\/m2.tyvvxw.cc\/sort\/8_1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"榜单\", \"url\": \"\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 1}}, {\"title\": \"全本\", \"url\": \"https:\/\/m2.tyvvxw.cc\/full\/1\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}, {\"title\": \"总排行榜\", \"url\": \"https:\/\/m2.tyvvxw.cc\/top\/,{\\\"charset\\\":\\\"gbk\\\"}\", \"style\": {\"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.46}}]","header":"{\"user-agent\":\"Mozilla\/5.0 (Linux; Android 13; Pixel 7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/120.0.0.0 Mobile Safari\/537.36\"}","lastUpdateTime":"1796127514948","respondTime":180000,"ruleBookInfo":{"author":"div.book_box span:containsOwn(作者：)@text##作者[：:]##","coverUrl":"div.cover img@src","intro":"div.book_about dd@html@js:(function(){function kt(s){return String(s===null||s===undefined?'':s).replace(\/^[\\s\\u00a0\\u3000]+|[\\s\\u00a0\\u3000]+$\/g,'');}function ku(s){var t=String(s||'');t=t.replace(\/&nbsp;\/gi,' ').replace(\/&lt;\/gi,'<').replace(\/&gt;\/gi,'>').replace(\/&quot;\/gi,'\"').replace(\/&#39;\/g,\"'\").replace(\/&amp;\/gi,'&');return t;}var t=typeof result==='undefined'?'':String(result);t=t.replace(\/<script[\\s\\S]*?<\\\/script>\/gi,'').replace(\/<br\\s*\\\/?>\/gi,'\\n').replace(\/<[^>]+>\/g,'');t=ku(t);t=t.replace(\/最新章节推荐地址[\\s\\S]*$\/,'');var lines=t.split('\\n'),out=[],i,l;for(i=0;i<lines.length;i++){l=kt(lines[i]);if(!l||l.length<2)continue;out.push('\\u3000\\u3000'+l);}return out.join('\\n');})()","kind":"div.book_info@html@js:(function(){var t=typeof result==='undefined'?'':String(result);var cat=(t.match(\/分类[：:]\\s*([^<\\s]+)\/)||['',''])[1];var st=(t.match(\/状态[：:]\\s*([^<\\s]+)\/)||['',''])[1];var o=[];function kt(s){return String(s||'').replace(\/^[\\s\\u00a0\\u3000]+|[\\s\\u00a0\\u3000]+$\/g,'');}if(cat)o.push(kt(cat));if(\/完结|完本\/.test(st))o.push('完结');else if(\/连载\/.test(st))o.push('连载');return o.join(',');})()","lastChapter":"div.book_last dd:nth-of-type(1) a@text","name":"div.book_info dt.name@text","tocUrl":"{{baseUrl}}all.html"},"ruleContent":{"content":"#chaptercontent@html@js:(function(){function kt(s){return String(s===null||s===undefined?'':s).replace(\/^[\\s\\u00a0\\u3000]+|[\\s\\u00a0\\u3000]+$\/g,'');}function ke(s){return String(s===null||s===undefined?'':s).replace(\/&\/g,'&amp;').replace(\/<\/g,'&lt;').replace(\/>\/g,'&gt;').replace(\/\"\/g,'&quot;');}function ku(s){var t=String(s===null||s===undefined?'':s);t=t.replace(\/&nbsp;\/gi,' ').replace(\/&ensp;\/gi,' ').replace(\/&emsp;\/gi,'\\u3000');t=t.replace(\/&lt;\/gi,'<').replace(\/&gt;\/gi,'>').replace(\/&quot;\/gi,'\"').replace(\/&apos;\/gi,\"'\").replace(\/&#39;\/g,\"'\").replace(\/&amp;\/gi,'&');t=t.replace(\/&#x([0-9a-f]+);\/gi,function(m,h){return String.fromCharCode(parseInt(h,16));});t=t.replace(\/&#(\\d+);\/g,function(m,d){return String.fromCharCode(parseInt(d,10));});return t;}function tx(html){var t=String(html||'');t=t.replace(\/<script[\\s\\S]*?<\\\/script>\/gi,'').replace(\/<style[\\s\\S]*?<\\\/style>\/gi,'');t=t.replace(\/<br\\s*\\\/?>\/gi,'\\n').replace(\/<\\\/p>\/gi,'\\n').replace(\/<[^>]+>\/g,'');t=ku(t);return t.replace(\/\\r\\n?\/g,'\\n');}var t=tx(typeof result==='undefined'?'':result);var title='';try{title=kt(typeof chapter!=='undefined'&&chapter&&chapter.title?chapter.title:'');}catch(e){title='';}var AD=[\/第\\(\\d+\\\/\\d+\\)页\/,\/本章未完\/,\/请翻页\/,\/记住手机版\/,\/tyvvxw\\.cc\/i,\/tywx\\.com\/i,\/天意文学\/,\/biqusoso\/i,\/无弹窗\/,\/最新章节\/,\/章节错误\/,\/点此举报\/,\/加入书签\/,\/加入书架\/,\/我的书架\/,\/返回顶部\/,\/^www\\.\/i,\/^https?:\\\/\\\/\/i,\/^m2?\\.\/i];var lines=t.split('\\n'),out=[],i,line,k,hit;for(i=0;i<lines.length;i++){line=kt(lines[i]);if(!line||line.length<2)continue;hit=false;for(k=0;k<AD.length;k++){if(AD[k].test(line)){hit=true;break;}}if(hit)continue;if(title){var ln=line.replace(\/\\s+\/g,''),tt=title.replace(\/\\s+\/g,'');if(ln===tt)continue;}out.push('<p>'+ke(line)+'<\/p>');}if(!out.length)return '<p>△ 正文获取失败，请刷新重试<\/p>';return out.join('\\n');})()","nextContentUrl":"a#pb_next@href@js:(function(){var h=typeof result==='undefined'?'':String(result);var c=String(typeof baseUrl!=='undefined'?baseUrl:'').match(\/\\\/(\\d+)(?:_\\d+)?\\.html\/);var n=h.match(\/\\\/(\\d+)_\\d+\\.html\/);return (c&&n&&c[1]===n[1])?h:'';})()"},"ruleExplore":{"author":"span.ty-a@text","bookList":"<js>(function(){function kt(s){return String(s===null||s===undefined?'':s).replace(\/^[\\s\\u00a0\\u3000]+|[\\s\\u00a0\\u3000]+$\/g,'');}function ke(s){return String(s===null||s===undefined?'':s).replace(\/&\/g,'&amp;').replace(\/<\/g,'&lt;').replace(\/>\/g,'&gt;').replace(\/\"\/g,'&quot;');}function ol(t){t=String(t||'').replace(\/<script[\\s\\S]*?<\\\/script>\/gi,'').replace(\/<br\\s*\\\/?>\/gi,'\\n').replace(\/<[^>]+>\/g,'').replace(\/&nbsp;\/gi,' ').replace(\/&amp;\/gi,'&').replace(\/\\s+\/g,' ');t=kt(t);if(t.length>90)t=t.slice(0,90)+'…';return t;}var h=typeof result==='undefined'?'':String(result);var out=[],seen={},m;function card(n,a,u,k,i,img){return '<div class=\"ty-item\"><a class=\"ty-u\" href=\"'+ke(u)+'\"><\/a><span class=\"ty-n\">'+ke(n)+'<\/span><span class=\"ty-a\">'+ke(a||'')+'<\/span><span class=\"ty-k\">'+ke(k||'')+'<\/span><span class=\"ty-i\">'+ke(i||'')+'<\/span>'+(img?'<img class=\"ty-c\" src=\"'+ke(img)+'\"\/>':'')+'<\/div>';}function push(n,a,u,k,i,img){if(!u)return;if(!\/^\\\/ty\\d+\\\/?$\/.test(u.split('?')[0]))return;if(seen[u])return;seen[u]=1;out.push(card(n,a,u,k,i,img));}var reI=\/<div class=\"item\">[\\s\\S]*?<\\\/dl>\/g;while((m=reI.exec(h))){var b=m[0];var c=b.match(\/<dt><span>([^<]*)<\\\/span><a href=\"([^\"]+)\"[^>]*>([^<]+)<\\\/a>\/);if(c)push(kt(c[3]),kt(c[1]),c[2],'',ol((b.match(\/<dd>([\\s\\S]*?)<\\\/dd>\/)||['',''])[1]),(b.match(\/<img[^>]*src=\"([^\"]+)\"\/)||['',''])[1]||'');}var reL=\/<li[^>]*>([\\s\\S]*?)<\\\/li>\/g;while((m=reL.exec(h))){var b2=m[1];if(b2.indexOf('<a href')<0)continue;var a=b2.match(\/<a href=\"([^\"]+)\"[^>]*>([^<]+)<\\\/a>\/);if(!a)continue;var cat=(b2.match(\/class=\"s1\">\\[([^\\]]*)\\]\/)||['',''])[1];var au=(b2.match(\/class=\"s3\">([^<]*)<\\\/span>\/)||['',''])[1];var rt=(b2.match(\/class=\"rate\">([^<]*)<\\\/span>\/)||['',''])[1];push(kt(a[2]),kt(au),a[1],kt(cat||rt),'','');}if(!out.length){var head=h.substring(0,120).replace(\/\\s+\/g,' ');return '<div class=\"ty-item\"><span class=\"ty-n\">△ 列表解析失败<\/span><span class=\"ty-i\">响应'+h.length+'字节，开头：'+ke(head)+'<\/span><a class=\"ty-u\" href=\"\"><\/a><\/div>';}var buf='';for(var j=0;j<out.length;j++)buf+=out[j];return buf;})()<\/js>div.ty-item","bookUrl":"a.ty-u@href","coverUrl":"img.ty-c@src","intro":"span.ty-i@text","kind":"span.ty-k@text","name":"span.ty-n@text"},"ruleSearch":[],"ruleToc":{"chapterList":"div.book_last dd a[href*=html]","chapterName":"@text@js:(function(){var t=typeof result==='undefined'?'':String(result);t=t.replace(\/^[\\s\\u00a0\\u3000]+|[\\s\\u00a0\\u3000]+$\/g,'');t=t.replace(\/[（(【]\\s*(求|感谢|本章|PS|ps|未完)[^）)】\\]]*[）)】\\]]\/g,'');return t.replace(\/\\s+\/g,' ');})()","chapterUrl":"@href"},"weight":0}]