[{"bookSourceComment":"\/\/搜索源不可用：本域无可用搜索接口，searchUrl 仅为导入校验占位；发现\/分类、详情、封面、目录静态首屏、正文同章分页可用；正文分页只拼接同章下一页，避免串到下一章；目录分页POST在部分阅读器会触发InvalidURLHost，暂不启用；正文会移除广告语和字体图标占位","bookSourceName":"零点文学","bookSourceType":0,"bookSourceUrl":"https:\/\/www.lingdianwx.com","bookUrlPattern":"https?:\/\/www\\.lingdianwx\\.com\/book\/[A-Za-z0-9]+(?:-\\d+(?:-\\d+)?)?\\.html","customOrder":0,"enabled":true,"enabledCookieJar":true,"enabledExplore":true,"exploreUrl":"[{\"title\":\"首页\",\"url\":\"\/\"},{\"title\":\"排行\",\"url\":\"\/rank.html\"},{\"title\":\"全部\",\"url\":\"\/list-1\/\"},{\"title\":\"玄幻\",\"url\":\"\/list-4\/\"},{\"title\":\"奇幻\",\"url\":\"\/list-5\/\"},{\"title\":\"武侠\",\"url\":\"\/list-6\/\"},{\"title\":\"仙侠\",\"url\":\"\/list-7\/\"},{\"title\":\"都市\",\"url\":\"\/list-8\/\"},{\"title\":\"军事\",\"url\":\"\/list-9\/\"},{\"title\":\"历史\",\"url\":\"\/list-10\/\"},{\"title\":\"游戏\",\"url\":\"\/list-11\/\"},{\"title\":\"体育\",\"url\":\"\/list-12\/\"},{\"title\":\"科幻\",\"url\":\"\/list-13\/\"},{\"title\":\"诸天\",\"url\":\"\/list-14\/\"},{\"title\":\"悬疑男频\",\"url\":\"\/list-15\/\"},{\"title\":\"古言\",\"url\":\"\/list-16\/\"},{\"title\":\"仙侠奇缘\",\"url\":\"\/list-17\/\"},{\"title\":\"现言\",\"url\":\"\/list-18\/\"},{\"title\":\"青春\",\"url\":\"\/list-19\/\"},{\"title\":\"幻言\",\"url\":\"\/list-20\/\"},{\"title\":\"悬疑女频\",\"url\":\"\/list-21\/\"},{\"title\":\"科幻空间\",\"url\":\"\/list-22\/\"},{\"title\":\"游戏竞技\",\"url\":\"\/list-23\/\"},{\"title\":\"短篇\",\"url\":\"\/list-24\/\"},{\"title\":\"幻想\",\"url\":\"\/list-25\/\"},{\"title\":\"日常\",\"url\":\"\/list-26\/\"},{\"title\":\"同人\",\"url\":\"\/list-27\/\"},{\"title\":\"搞笑\",\"url\":\"\/list-28\/\"},{\"title\":\"耽美\",\"url\":\"\/list-40\/\"},{\"title\":\"百合\",\"url\":\"\/list-41\/\"},{\"title\":\"二次元\",\"url\":\"\/list-42\/\"}]","header":"{\n  \"User-Agent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/126.0 Safari\/537.36\"\n}","jsLib":"var LD=(function(){var HOST='https:\/\/www.lingdianwx.com';function ent(s){return String(s||'').replace(\/&#x([0-9a-f]+);\/ig,function(a,b){return String.fromCharCode(parseInt(b,16));}).replace(\/&#(\\d+);\/g,function(a,b){return String.fromCharCode(parseInt(b,10));}).replace(\/&nbsp;|&emsp;|&#160;\/g,' ').replace(\/&lt;\/g,'<').replace(\/&gt;\/g,'>').replace(\/&quot;\/g,String.fromCharCode(34)).replace(\/&#39;|&apos;\/g,String.fromCharCode(39)).replace(\/&amp;\/g,'&');}function abs(u){u=ent(u);if(!u)return '';if(\/^https?:\\\/\\\/\/i.test(u))return u;if(\/^\\\/\\\/\/.test(u))return 'https:'+u;if(u.charAt(0)=='\/')return HOST+u;return HOST+'\/'+u.replace(\/^\\.?\\\/\/,'');}function txt(h){var s=String(h||'');s=s.replace(\/<script[\\s\\S]*?<\\\/script>\/gi,'').replace(\/<style[\\s\\S]*?<\\\/style>\/gi,'').replace(\/<i[^>]*class=[\"'][^\"']*icon[^\"']*[\"'][^>]*><\\\/i>\/gi,'');s=s.replace(\/<br\\s*\\\/?\\s*>\/gi,'\\n').replace(\/<\\\/p>\/gi,'\\n').replace(\/<p[^>]*>\/gi,'').replace(\/<\\\/div>\/gi,'\\n').replace(\/<[^>]+>\/g,'');return ent(s).replace(\/\\r\/g,'').replace(\/[ \\t]+\\n\/g,'\\n').replace(\/\\n{3,}\/g,'\\n\\n').trim();}function add(out,o){out.add?out.add(o):out.push(o);}function arr(){return typeof Packages!='undefined'?new Packages.java.util.ArrayList():[];}function encrypt(id,page){var text=JSON.stringify({id:String(id),page:parseInt(page)});var Cipher=Packages.javax.crypto.Cipher,SecretKeySpec=Packages.javax.crypto.spec.SecretKeySpec,IvParameterSpec=Packages.javax.crypto.spec.IvParameterSpec,JString=Packages.java.lang.String;var key=new SecretKeySpec(new JString('eACDbb9DktSMnjGzH4Q0tFHuclfaM9NR').getBytes('UTF-8'),'AES');var iv=new IvParameterSpec(new JString('5775747956988447').getBytes('UTF-8'));var cipher=Cipher.getInstance('AES\/CBC\/PKCS5Padding');cipher.init(Cipher.ENCRYPT_MODE,key,iv);var bytes=cipher.doFinal(new JString(text).getBytes('UTF-8'));try{return Packages.java.util.Base64.getEncoder().encodeToString(bytes);}catch(e){return Packages.android.util.Base64.encodeToString(bytes,2);}}function apiUrl(id,page){var body='data='+encodeURIComponent(encrypt(id,page));return HOST+'\/index.php?action=loadChapterPage&id='+id+'&page='+page+',{\"method\":\"POST\",\"body\":\"'+body+'\"}';}function tocList(res){var s=String(res||''),out=arr(),m;if(\/^\\s*\\{\/.test(s)){var j=JSON.parse(s),data=j&&j.data||[];for(var i=0;i<data.length;i++){var d=data[i]||{};add(out,{name:String(d.chaptername||''),url:abs(d.chapterurl||'')});}return out;}var start=s.indexOf('chapListBody'),end=start>=0?s.indexOf('<div class=\"page2',start):-1,block=start>=0?s.slice(start,end>start?end:s.length):s;var re=\/<a[^>]+href=[\"']([^\"']+)[\"'][^>]*>([\\s\\S]*?)<\\\/a>\/gi;while((m=re.exec(block))){var name=ent(m[2].replace(\/<[^>]+>\/g,'').replace(\/\\s+\/g,' ').replace(\/^\\s+|\\s+$\/g,'')),url=abs(m[1]);if(name&&\/\\\/book\\\/[A-Za-z0-9]+-\\d+\\.html(?:$|[?#])\/.test(url))add(out,{name:name,url:url});}return out;}function nextTocUrl(res,base){var s=String(res||''),b=String(base||''),m,id='',page=1;if(\/^\\s*\\{\/.test(s)){var j=JSON.parse(s),data=j&&j.data||[];if(data.length<100)return '';if(data[0]&&data[0].chapterurl){m=String(data[0].chapterurl).match(\/\\\/book\\\/([A-Za-z0-9]+)-\/);if(m)id=m[1];}m=b.match(\/[?&]page=(\\d+)\/);page=m?parseInt(m[1]):1;return id?apiUrl(id,page+1):'';}m=b.match(\/\\\/chapter\\\/([A-Za-z0-9]+)\\.html\/);if(m)id=m[1];if(!id){m=s.match(\/\\\/book\\\/([A-Za-z0-9]+)-\\d+\\.html\/);if(m)id=m[1];}var max=1,re=\/<option[^>]+value=[\"'](\\d+)[\"'][^>]*>\/g;while((m=re.exec(s))){var v=parseInt(m[1]);if(v>max)max=v;}return id&&max>1?apiUrl(id,2):'';}function content(h){var s=txt(h);s=s.replace(\/\\(https?:\\\/\\\/www\\.lingdianwx\\.com\\\/book\\\/[^\\)]+\\)[\\s\\S]*\/,'').replace(\/请记住本书首发域名[\\s\\S]*\/,'');var lines=s.split(\/\\n+\/).map(function(x){return x.replace(\/^\\s+|\\s+$\/g,'');}).filter(function(x){return x&&!\/^零点文学\\s*(更新最快|有求必应)\/.test(x)&&!\/^章节错误\/.test(x);});return lines.join('\\n').replace(\/\\n{3,}\/g,'\\n\\n').trim();}return{tocList:tocList,nextTocUrl:nextTocUrl,content:content,abs:abs};})();","lastUpdateTime":"1783475990918","respondTime":180000,"ruleBookInfo":{"author":"[property=\"og:novel:author\"]@content||.chapterCon .txt li.0 a@text","coverUrl":"@js:(function(){var h=String(result||''),m=h.match(\/<meta[^>]+property=[\"']og:image[\"'][^>]+content=[\"']([^\"']+)[\"']\/i)||h.match(\/<meta[^>]+content=[\"']([^\"']+)[\"'][^>]+property=[\"']og:image[\"']\/i),u=m?m[1]:'';if(!u){m=h.match(\/<div[^>]+class=[\"'][^\"']*picb[^\"']*[\"'][\\s\\S]*?<img[^>]+src=[\"']([^\"']+)[\"']\/i)||h.match(\/<div[^>]+class=[\"'][^\"']*chapterCon[^\"']*[\"'][\\s\\S]*?<img[^>]+src=[\"']([^\"']+)[\"']\/i);u=m?m[1]:'';}return LD.abs(u).replace(\/^http:\\\/\\\/\/i,'https:\/\/');})()","intro":"[property=\"og:description\"]@content||.introTxt@text##\\.\\.\\[展开\\][\\s\\S]*","kind":"[property~=category|status|update_time]@content||.chapterCon .txt li@text","lastChapter":"[property=\"og:novel:latest_chapter_name\"]@content","name":"[property=\"og:novel:book_name\"]@content||.chapterCon .name@text","tocUrl":"@js:(function(){var h=String(result||''),m=h.match(\/<a[^>]+class=[\"'][^\"']*all[^\"']*[\"'][^>]+href=[\"']([^\"']+)[\"']\/i)||h.match(\/<a[^>]+href=[\"']([^\"']+)[\"'][^>]*>\\s*查看全部章节\\s*<\\\/a>\/i),u=m?m[1]:'';if(!u){m=h.match(\/<meta[^>]+property=[\"']og:novel:read_url[\"'][^>]+content=[\"']([^\"']+)[\"']\/i)||h.match(\/<meta[^>]+content=[\"']([^\"']+)[\"'][^>]+property=[\"']og:novel:read_url[\"']\/i)||h.match(\/<meta[^>]+property=[\"']og:url[\"'][^>]+content=[\"']([^\"']+)[\"']\/i);u=m?m[1]:'';u=u.replace(\/^http:\\\/\\\/\/i,'https:\/\/').replace(\/\\\/book\\\/([A-Za-z0-9]+)\\.html(?:$|[?#].*)\/,'\/chapter\/$1.html');}return LD.abs(u).replace(\/^http:\\\/\\\/\/i,'https:\/\/');})()"},"ruleContent":{"content":"#content@html@js:LD.content(result)","nextContentUrl":"@js:(function(){var h=String(result||''),b=String(baseUrl||''),m=b.match(\/\\\/book\\\/([A-Za-z0-9]+)-(\\d+)(?:-(\\d+))?\\.html(?:$|[?#])\/i),id=m?m[1]:'',ch=m?m[2]:'',cur=m&&m[3]?parseInt(m[3]):1,re=\/<a[^>]+href=[\"']([^\"']+)[\"'][^>]*>\\s*下一页\\s*<\\\/a>\/gi,mm,u='';while((mm=re.exec(h))){u=mm[1];break;}if(!u)return '';u=LD.abs(u);m=u.match(\/\\\/book\\\/([A-Za-z0-9]+)-(\\d+)-(\\d+)\\.html(?:$|[?#])\/i);if(!m)return '';if(id&&(m[1]!=id||m[2]!=ch||parseInt(m[3])<=cur))return '';return u;})()"},"ruleExplore":{"author":".author a@text||.author@text##^\\s*\/\\s*##","bookList":".list2 li:has(.name a), .picList li, .picList2 li, .boxB .list li, .main3 .list li","bookUrl":".name a@href||.pic a@href||a@href","coverUrl":"img@src##^\/\/##https:\/\/##^\/##https:\/\/www.lingdianwx.com\/","intro":".intro@text","kind":".cate@text","lastChapter":".chapter a@text","name":".name a@text||a@text##^《|》$","nextUrl":".page a.next@href##^\/\/##https:\/\/##^\/##https:\/\/www.lingdianwx.com\/"},"ruleSearch":[],"searchUrl":"https:\/\/www.lingdianwx.com\/","ruleToc":{"chapterList":"+@js:LD.tocList(result)","chapterName":"name","chapterUrl":"url"},"weight":0}]