[{"bookSourceComment":"tenkarin大佬写的有点复杂，部分地方简单的小改了一下\n\n搜索直接跳详情页：书籍URL正则填正确就没问题\n\n修正目录链接是javascript的情况\n\n识别目录卷标","bookSourceGroup":"小说","bookSourceName":"有度中文 - 修改","bookSourceType":0,"bookSourceUrl":"https:\/\/www.yoduzw.com#修改","bookUrlPattern":"https:\/\/www.yoduzw.com\/book\/\\d+\/","customButton":false,"customOrder":124,"enabled":true,"enabledCookieJar":false,"enabledExplore":true,"eventListener":false,"exploreScreen":"","exploreUrl":"@js:\nconst flObj = {\"经典文学\":[[\"传记回忆\",\"zhuanjihuiyi\"],[\"英文读本\",\"yingwenduben\"],[\"杂文随笔\",\"zawensuibi\"],[\"经典言情\",\"jingdianyanqing\"],[\"经典历史\",\"jingdianlishi\"],[\"侦探推理\",\"zhentantuili\"],[\"惊悚悬疑\",\"jingsongxuanyi\"],[\"网络玄幻\",\"wangluoxuanhuan\"],[\"寓言童话\",\"yuyantonghua\"],[\"青春都市\",\"qingchundushi\"],[\"社会心理\",\"shehuixinli\"],[\"外国小说\",\"waiguoxiaoshuo\"],[\"经典科幻\",\"jingdiankehuan\"],[\"当代小说\",\"dangdaixiaoshuo\"],[\"经典武侠\",\"jingdianwuxia\"],[\"纪实报告\",\"jishibaogao\"],[\"世界历史\",\"shijielishi\"],[\"中国历史\",\"zhongguolishi\"],[\"科普学习\",\"kepuxuexi\"],[\"诗歌戏曲\",\"shigexiqu\"],[\"宗教哲学\",\"zongjiaozhexue\"],[\"文学理论\",\"wenxuelilun\"],[\"日语读物\",\"riyuduwu\"],[\"作品集\",\"zuopinji\"],[\"国学古籍\",\"guoxueguji\"],[\"战争军事\",\"zhanzhengjunshi\"],[\"政治经济\",\"zhengzhijingji\"],[\"古典文学\",\"gudianwenxue\"],[\"现代小说\",\"xiandaixiaoshuo\"],[\"官场小说\",\"guanchangxiaoshuo\"],[\"轻小说\",\"qingxiaoshuo\"]],\"繁体图书\":[[\"世紀百強\",\"shijibaiqiang\"],[\"隨身智囊\",\"suishenzhinang\"],[\"歷史煙雲\",\"lishiyanyun\"],[\"武俠小說\",\"wuxia\"],[\"懸疑小說\",\"xuanyi\"],[\"言情小說\",\"yanqing\"],[\"奇幻小說\",\"qihuanxiaoshuo\"]],\"网络小说\":[[\"网游小说\",\"wangyouxiaoshuo\"],[\"玄幻小说\",\"xuanhuanxiaoshuo\"],[\"穿越小说\",\"chuanyuexiaoshuo\"],[\"科幻小说\",\"kehuanxiaoshuo\"],[\"仙侠小说\",\"xianxiaxiaoshuo\"],[\"都市小说\",\"dushixiaoshuo\"],[\"武侠小说\",\"wuxiaxiaoshuo\"],[\"历史小说\",\"lishixiaoshuo\"],[\"竞技小说\",\"jingjixiaoshuo\"],[\"言情小说\",\"yanqingxiaoshuo\"],[\"悬疑小说\",\"xuanyixiaoshuo\"],[\"军事小说\",\"junshixiaoshuo\"],[\"灵异小说\",\"lingyixiaoshuo\"]],\"轻の小说\":[[\"电击文库\",\"dianjiwenku\"],[\"富士见文库\",\"fushijianwenku\"],[\"角川文库\",\"jiaochuanwenku\"],[\"MF文库J\",\"MFwenkuJ\"],[\"Fami通文库\",\"Famitongwenku\"],[\"GA文库\",\"GAwenku\"],[\"HJ文库\",\"HJwenku\"],[\"一迅社\",\"yixunshe\"],[\"集英社\",\"jiyingshe\"],[\"小学馆\",\"xiaoxueguan\"],[\"讲谈社\",\"jiangtanshe\"],[\"少女文库\",\"shaonvwenku\"],[\"其他文库\",\"qitawenku\"]]};\n\nconst list = [];\nconst push = (title, url, size) => list.push({\n  title,\n  url,\n  style: {layout_flexBasisPercent: size}\n});\n\nlet qb = infoMap[\"全本\"];\nlet fl = infoMap[\"分类\"] || \"网络小说\";\nlet qbPart = qb && qb == \"☑\" ? \"\/quanben\" : \"\";\n\n\nlist.push({\n  \"title\": \"全本\",\n  \"type\": \"toggle\",\n  \"chars\": [\"☐\", \"☑\"],\n  \"action\": \"java.refreshExplore()\",\n  \"default\": \"☐\",\n  \"style\": {\"layout_flexBasisPercent\": 1}\n});\n\nlist.push({\n  \"title\": \"分类\",\n  \"type\": \"select\",\n  \"chars\": Object.keys(flObj),\n  \"action\": \"java.refreshExplore()\",\n  \"style\": {\"layout_flexBasisPercent\": 1}\n});\n\nflObj[fl].forEach(([title, id]) => {\n    let url = qbPart + \"\/\" + id + \"\/{{page}}.html\";\n    push(title, url, 0.29)\n})\n\ninfoMap.save();\nJSON.stringify(list);","header":"{\n  \"User-Agent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/115.0.5790.166 Safari\/537.36\",\n  \"Referer\": \"https:\/\/www.yoduzw.com\/\",\n  \"Accept\": \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,*\/*;q=0.8\",\n  \"Accept-Language\": \"zh-CN,zh;q=0.9\"\n}","lastUpdateTime":"1790640319781","loginUrl":"https:\/\/www.yoduzw.com\/","respondTime":32806,"ruleBookInfo":{"author":"class.mb15 ell _tags pt2@tag.span.0@tag.a@text","coverUrl":"class.cover g_col_4@tag.img@src","intro":"class.h112 mb15 det-abt lh1d8 c_strong fs16 hm-scroll@tag.p@text","kind":"class.c_small ml10 vam ml0@text&&\nclass.mb15 ell _tags pt2@tag.span.1@text&&\nclass.mb15 ell _tags pt2@tag.span.2@text","lastChapter":"class.ell lst-chapter dib vam@text","name":"class.g_col_8 pr@tag.h1@text","wordCount":"class.mb15 ell _tags pt2@tag.span.3@text"},"ruleContent":{"content":"#TextContent p@text","replaceRegex":"@js:\n\/\/ 一一映射到unicode私有字符区间0xE800-0xE863，共100个字符\nconst hz = \"的一是了我不人在他有这个上们来到时大地为子中你说生国年着就那和要她出也得里后自以会家可下而过天去能对小多然于心学么之都好看起发当没成只如事把还用第样道想作种开美乳阴液茎欲呻肉交性胸私穴淫臀舔射脱裸骚唇\";\n\nresult.replace(\/[\\ue800-\\ue863]\/gi, m => hz[m.charCodeAt(0) - 0xe800] ?? m);"},"ruleExplore":{"author":"class.mb5 ell _tags pt2@tag.span.0@text","bookList":"class.g_row lis-mn j_bookList@tag.li","bookUrl":"class.lst-item pr lh1d5@tag.a.1@href","coverUrl":"tag.img@_src","intro":"class.lst-item pr lh1d5@tag.a.1@text","kind":"class.mb5 ell _tags pt2@tag.span.1@text||class.mb5 ell _tags pt2@tag.span.2@text","name":"class.mb5 fs20 f_mbo pt5 oh@text"},"ruleSearch":{"author":"class.c_small db mb5 ell ttc fs14@tag.span.1@text","bookList":"class.ser-ret@tag.li","bookUrl":"class.mb5 fs20 f_mbo pt5 ell@tag.a@href","coverUrl":"tag.img@_src","intro":"class.fs16 mb10 c_strong g_ells@text","kind":"class.c_small db mb5 ell ttc fs14@tag.span.2@text","lastChapter":"class.db mb5 ell ttc fs16@class.vam@tag.a@text","name":"class.mb5 fs20 f_mbo pt5 ell@tag.a@text"},"ruleToc":{"chapterList":"#chapterList li","chapterName":"text","chapterUrl":"@js:\n(() => {\n  let a = result.selectFirst(\"a\");\n  if(!a) return \"\";\n  let href = a.attr(\"href\");\n  if(!href.contains(\"javascript\")) return href;\n\n  let prev = result.previousElementSibling();\n  let prevUrl = prev.selectFirst(\"a\")?.attr(\"href\");\n  return String(prevUrl).replace(\/\\d+(?=\\.html)\/, m => +m + 1);\n})()","isVolume":".volumes@text"},"searchUrl":"\/sa,{\n\"method\": \"POST\",\n\"body\": \"searchkey={{key}}&searchtype=all\"\n}","weight":1}]