UserScripts icon indicating copy to clipboard operation
UserScripts copied to clipboard

抱大佬腿,求适配乐文网站

Open NyaaGitty opened this issue 2 years ago • 2 comments

网址https://www.mylewen.com/ 使用本脚本的初始设置下载小说,或者禁止加载所有js浏览网页会导致文章后半截出现“Loading...内容未加载完成,请尝试” 可能就是大佬怠惰心法第六层。 但是小白不会改设置。

我用控制台看了下完全加载的正文在body>>div class=container>>section class=RBGSectionThree>>div id=C0NTENT 不是content,而是c0n,不是字母0是数字0

求大佬降下光辉,大慈大悲,感谢~~~

NyaaGitty avatar Jul 16 '23 15:07 NyaaGitty

.BCsectionTwo-top-chapter>a@@@@@@let content=doc.querySelector("#C0NTENT");let r="\n",ps=content.querySelectorAll("p");for(let i=0;i<ps.length;i++){let p=ps[i];if(p.style.cssText)break;else r+=p.innerText+"\n"};let script=content.nextElementSibling;let other=script.innerText.match(/html\(d\((".*?"), "(.*?)"\)\);/);let a=JSON.parse(other[1]),b=other[2];let cryptojs=document.createElement("script");cryptojs.src="/assets/js/cryptojs.min.js";cryptojs.charset="UTF-8";cryptojs.onload=()=>{function d(a, b) { b = CryptoJS.MD5(b).toString(); var d = CryptoJS.enc.Utf8.parse(b.substring(0, 16)); var e = CryptoJS.enc.Utf8.parse(b.substring(16)); return CryptoJS.AES.decrypt(a, e, { iv: d, padding: CryptoJS.pad.Pkcs7 }).toString(CryptoJS.enc.Utf8) };cb(r+d(a,b).replace(/<p>/g,"").replace(/<\/p>/g,"\n"));};document.head.appendChild(cryptojs);return false;

茯年.txt 测试小说是这个https://www.mylewen.com/book/183921/catalog/ ,其他小说可能有其他情况,没空去一一测试覆盖所有情况了,你自己看着编辑吧;-)。

hoothin avatar Jul 17 '23 05:07 hoothin

伪父女,1v3H 图片描述

cabudon avatar Dec 09 '23 10:12 cabudon