@@ -1,61 +1,63 @@
[
[
{
{
"bookSourceComment " : "fanqie-go 聚合书源:一个源覆盖 小说/听书/漫画/短剧。\n\n【设置入口】发现页顶部选择按钮:模式/音色/清晰度/段评/图片/频道,点选即生效; " ,
"bookSourceName " : "🔅番茄聚合 " ,
"bookSourceGroup" : "🍅 番茄 " ,
"bookSourceGroup" : "📖番茄小说 " ,
"bookSourceName" : "🍅 番茄聚合" ,
"bookSourceType" : 0 ,
"bookSourceType" : 0 ,
"bookSourceUrl" : "https://fq.20010117.xyz" ,
"bookSourceUrl" : "https://fq.20010117.xyz" ,
"customOrder" : 0 ,
"bookSourceComment" : "番茄聚合书源(fanqie-go 后端)\n\n基础使用教程:\n1、搜索:\n 1) 基础搜索:直接搜,默认搜索当前模式内容\n 2) 快捷搜索:使用特殊关键词(x,t,m,d)搜索\n x:书名 如(x:十日终焉) 搜小说(可省略)\n t:书名 如(t:十日终焉) 搜听书\n m:书名 如(m:十日终焉) 搜漫画\n d:书名 如(d:十日终焉) 搜短剧\n 冒号支持中文英文,也可在书源设置中切换默认搜索模式\n2、发现页:\n 顶部筛选选择 类型/频道/字数/更新/排序 后,点击分类宫格浏览,下拉翻页\n3、段评:\n 阅读正文时点击段尾气泡即可查看段落评论,样式可在段评设置中调整\n4、听书/漫画/短剧:\n 听书自动用播放器播放;漫画走服务端解密代理;短剧打开章节自动唤起播放\n\n更换服务器地址:只需修改源URL(bookSourceUrl),全部规则使用相对地址自动跟随" ,
"e nabled" : true ,
"bookSourceE nabled" : true ,
"enabledCookieJar" : false ,
"enabledExplore" : true ,
"enabledExplore" : true ,
"header" : "{\"User-Agent\": \"Mozilla/5.0 (Linux; Android 13; 2210132C Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.5845.92 Mobile Safari/537.36\"}" ,
"enabledCookieJar" : true ,
"jsLib" : "// ============ 源变量配置(照光遇模式:defaultConfig 兜底,全 try-catch) ============\nconst defaultConfig = {\n 模式: \"小说\",\n 音色: \"0\",\n 清晰度: \"max\",\n 段评: \"开\",\n 图片: \"保留\"\n};\n\nconst fqVarsKey = 'fq_vars';\n\nfunction getVariable(k) {\n if (k == undefined) k = \"\";\n var parsed = {};\n try {\n var raw = String(cache.get(fqVarsKey) || '');\n if (raw) parsed = JSON.parse(raw);\n } catch (e) {}\n if (k == \"\") return parsed;\n var value = parsed[k];\n if (value == undefined) value = defaultConfig[k];\n return value != undefined ? value : \"\";\n}\n\nfunction setVariable(k, v, t) {\n if (t == undefined) t = true;\n var parsed = {};\n try {\n var raw = String(cache.get(fqVarsKey) || '');\n if (raw) parsed = JSON.parse(raw);\n } catch (e) {}\n parsed[k] = v;\n try { cache.put(fqVarsKey, JSON.stringify(parsed)); } catch (e) {}\n if (t) java.toast('\\n设置 ' + k + ' 为 ' + v);\n}\n\n// 发现页筛选按钮回调:存变量并刷新发现页\nfunction show(m, t) {\n setVariable(t, m, false);\n java.toast('\\n已设置' + t + ': ' + m + '\\n已在书架的书切换模式后需刷新目录');\n try { java.refreshExplore(); } catch (e) {}\n}\n\nfunction createFilter(title, chars, defaultVal, paramKey, size, viewName) {\n if (viewName == undefined) viewName = \"'请选择类型'\";\n return {\n title: title,\n type: \"select\",\n chars: chars,\n default: defaultVal,\n \"viewName\" : v i e w N a m e , \ n a c t i o n : ` s h o w ( i n f o M a p [ ' $ { t i t l e } ' ] , ' $ { p a r a m K e y } ' ) ` , \ n s t y l e : { \ n l a y o u t _ f l e x G r o w : 1 , \ n l a y o u t _ f l e x B a s i s P e r c e n t : s i z e \ n } \ n } ; \ n } \ n \ n / / = = = = = = = = = = = = 基 础 工 具 = = = = = = = = = = = = \ n / / 服 务 地 址 : s o u r c e 可 用 时 取 书 源 地 址 , 否 则 用 常 量 兜 底 ( 部 分 阅 读 版 本 正 文 环 境 不 注 入 s o u r c e ) \ n v a r F Q _ B A S E = ' h t t p s : / / f q . 20010117 . x y z ' ; \ n \ n f u n c t i o n B a s e U r l ( ) { \ n t r y { \ n i f ( t y p e o f s o u r c e ! = ' u n d e f i n e d ' & & s o u r c e & & s o u r c e . g e t K e y ) { \ n v a r u = S t r i n g ( s o u r c e . g e t K e y ( ) ) . r e p l a c e ( / \ \ / + $ / , ' ' ) ; \ n i f ( u . i n d e x O f ( ' h t t p ' ) = = 0 ) r e t u r n u ; \ n } \ n } c a t c h ( e ) { } \ n r e t u r n F Q _ B A S E ; \ n } \ n \ n f u n c t i o n r e q u e s t ( u r l ) { \ n l e t u r l a = u r l ; \ n i f ( ! u r l . i n c l u d e s ( ' h t t p ' ) ) u r l a = t h i s . B a s e U r l ( ) + u r l ; \ n r e t u r n j a v a . a j a x ( u r l a ) ; \ n } \ n \ n f u n c t i o n p a r s e J s o n S a f e l y ( s t r , d e f a u l t V a l u e ) { \ n i f ( d e f a u l t V a l u e = = n u l l ) d e f a u l t V a l u e = n u l l ; \ n t r y { \ n r e t u r n J S O N . p a r s e ( s t r ) ; \ n } c a t c h ( e ) { \ n r e t u r n d e f a u l t V a l u e ; \ n } \ n } \ n \ n f u n c t i o n i s I O S ( ) { \ n t r y { \ n j a v a . d e v i c e I D ( ) ; \ n r e t u r n t r u e ; \ n } c a t c h ( e ) { \ n r e t u r n f a l s e ; \ n } \ n } \ n \ n f u n c t i o n i s M o d ( ) { \ n t r y { \ n i f ( t y p e o f j a v a . r e L o g i n V i e w = = ' f u n c t i o n ' ) r e t u r n t r u e ; \ n n e w P a c k a g e s . i o . l e g a t o . k a z u s a . u t i l s . T i m e o u t C a n c e l l a t i o n E x c e p t i o n ( ' ' ) ; \ n r e t u r n t r u e ; \ n } c a t c h ( e ) { \ n r e t u r n f a l s e ; \ n } \ n } \ n \ n / / 纯 J S b a s e 64 ( U T F -8 ) , 规 避 部 分 阅 读 版 本 b a s e 64 编 码 A P I 不 可 用 \ n f u n c t i o n b 64 e n c o d e ( s t r ) { \ n v a r c h a r s = ' A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + / ' ; \ n v a r b y t e s = [ ] ; \ n s t r = S t r i n g ( s t r ) ; \ n f o r ( v a r i = 0 ; i < s t r . l e n g t h ; i + + ) { \ n v a r c = s t r . c h a r C o d e A t ( i ) ; \ n i f ( c < 0 x 8 0 ) { \ n b y t e s . p u s h ( c ) ; \ n } e l s e i f ( c < 0 x 800 ) { \ n b y t e s . p u s h ( 0 x C 0 | ( c > > 6 ) , 0 x 8 0 | ( c & 6 3 ) ) ; \ n } e l s e { \ n b y t e s . p u s h ( 0 x E 0 | ( c > > 1 2 ) , 0 x 8 0 | ( ( c > > 6 ) & 6 3 ) , 0 x 8 0 | ( c & 6 3 ) ) ; \ n } \ n } \ n v a r o u t = ' ' ; \ n f o r ( v a r j = 0 ; j < b y t e s . l e n g t h ; j + = 3 ) { \ n v a r b 1 = b y t e s [ j ] ; \ n v a r b 2 = j + 1 < b y t e s . l e n g t h ? b y t e s [ j + 1 ] : u n d e f i n e d ; \ n v a r b 3 = j + 2 < b y t e s . l e n g t h ? b y t e s [ j + 2 ] : u n d e f i n e d ; \ n o u t + = c h a r s [ b 1 > > 2 ] ; \ n o u t + = c h a r s [ ( ( b 1 & 3 ) < < 4 ) | ( b 2 = = u n d e f i n e d ? 0 : b 2 > > 4 ) ] ; \ n o u t + = b 2 = = u n d e f i n e d ? ' = ' : c h a r s [ ( ( b 2 & 1 5 ) < < 2 ) | ( b 3 = = u n d e f i n e d ? 0 : b 3 > > 6 ) ] ; \ n o u t + = b 3 = = u n d e f i n e d ? ' = ' : c h a r s [ b 3 & 6 3 ] ; \ n } \ n r e t u r n o u t ; \ n } \ n \ n / / = = = = = = = = = = = = 段 评 气 泡 ( / c o n t e n t ? r e v i e w = k e e p 注 入 < c o m m e n t > 标 记 , 点 击 打 开 / r e v i e w _ h t m l 页 面 ) = = = = = = = = = = = = \ n f u n c t i o n c r e a t e S v g ( n u m b e r , u r l ) { \ n v a r t = n u m b e r > 9 9 ? ' 9 9 + ' : S t r i n g ( n u m b e r ) ; \ n v a r s v g = ` < s v g x m l n s = ' h t t p : / / w w w . w 3 . o r g / 2 0 0 0 / s v g ' w i d t h = ' 1 0 0 ' h e i g h t = ' 9 0 ' v i e w B o x = ' 0 0 2 5 1 7 ' f i l l = ' n o n e ' > < p a t h s t r o k e = ' c u r r e n t C o l o r ' s t r o k e - w i d t h = ' 1 . 0 0 ' s t r o k e - l i n e c a p = ' r o u n d ' s t r o k e - l i n e j o i n = ' r o u n d ' s t r o k e - m i t e r l i m i t = ' 4 . 0 0 ' s t y l e = ' s t r o k e : # A 7 A 7 A 7 ; s t r o k e - o p a c i t y : 0 . 5 ; s t r o k e - w i d t h : 1 p x ; s t r o k e - l i n e j o i n : r o u n d ; f i l l : t r a n s p a r e n t ; f i l l - o p a c i t y : 0 . 5 ; ' d = ' M 7 . 5 0 . 5 L 1 6 . 5 0 . 5 A 7 7 0 0 1 2 3 . 5 7 . 5 L 2 3 . 5 7 . 5 A 7 7 0 0 1 1 6 . 5 1 4 . 5 L 8 . 5 1 4 . 5 L 5 . 1 9 2 1 6 . 5 L 5 . 5 1 4 . 5 A 7 7 3 0 0 1 0 . 5 7 . 5 L 0 . 5 7 . 5 A 7 7 0 0 1 7 . 5 0 . 5 Z ' / > < t e x t f i l l = ' # A 7 A 7 A 7 ' f o n t - f a m i l y = ' A r i a l , s a n s - s e r i f ' f o n t - s i z e = ' 1 0 ' f o n t - w e i g h t = ' 5 0 0 ' t e x t - a n c h o r = ' m i d d l e ' d y = ' 0 . 3 5 e m ' x = ' 1 2 . 0 0 ' y = ' 7 . 5 0 ' > $ Line truncated
"customOrder" : 0 ,
"lastUpdateTime " : 1791569653299 ,
"weight " : 0 ,
"respondTime" : 180000 ,
"respondTime" : 180000 ,
"exploreUrl" : "<js>\nvar groups = {\"🔥 男频精选\": [{\"title\": \"玄幻\", \"url\": \"/category-landing?category_id=7&offset={{(page-1)*20}}\"}, {\"title\": \"都市\", \"url\": \"/category-landing?category_id=1&offset={{(page-1)*20}}\"}, {\"title\": \"历史\", \"url\": \"/category-landing?category_id=12&offset={{(page-1)*20}}\"}, {\"title\": \"悬疑\", \"url\": \"/category-landing?category_id=10&offset={{(page-1)*20}}\"}, {\"title\": \"衍生\", \"url\": \"/category-landing?category_id=1079&offset={{(page-1)*20}}\"}, {\"title\": \"同人\", \"url\": \"/category-landing?category_id=538&offset={{(page-1)*20}}\"}, {\"title\": \"科幻末世\", \"url\": \"/category-landing?category_id=8&offset={{(page-1)*20}}\"}, {\"title\": \"奇幻仙侠\", \"url\": \"/category-landing?category_id=259&offset={{(page-1)*20}}\"}, {\"title\": \"种田\", \"url\": \"/category-landing?category_id=23&offset={{(page-1)*20}}\"}, {\"title\": \"游戏体育\", \"url\": \"/category-landing?category_id=746&offset={{(page-1)*20}}\"}, {\"title\": \"系统\", \"url\": \"/category-landing?category_id=19&offset={{(page-1)*20}}\"}, {\"title\": \"重生\", \"url\": \"/category-landing?category_id=36&offset={{(page-1)*20}}\"}, {\"title\": \"穿越\", \"url\": \"/category-landing?category_id=37&offset={{(page-1)*20}}\"}, {\"title\": \"多女主\", \"url\": \"/category-landing?category_id=91&offset={{(page-1)*20}}\"}, {\"title\": \"修仙\", \"url\": \"/category-landing?category_id=517&offset={{(page-1)*20}}\"}, {\"title\": \"二次元\", \"url\": \"/category-landing?category_id=39&offset={{(page-1)*20}}\"}, {\"title\": \"搞笑轻松\", \"url\": \"/category-landing?category_id=778&offset={{(page-1)*20}}\"}, {\"title\": \"单女主\", \"url\": \"/category-landing?category_id=389&offset={{(page-1)*20}}\"}, {\"title\": \"悬疑灵异\", \"url\": \"/category-landing?category_id=751&offset={{(page-1)*20}}\"}, {\"title\": \"末日求生\", \"url\": \"/category-landing?category_id=515&offset={{(page-1)*20}}\"}, {\"title\": \"娱乐圈\", \"url\": \"/category-landing?category_id=43&offset={{(page-1)*20}}\"}, {\"title\": \"末世\", \"url\": \"/category-landing?category_id=68&offset={{(page-1)*20}}\"}], \"🌸 女频精选\": [{\"title\": \"现代言情\", \"url\": \"/category-landing?category_id=3&offset={{(page-1)*20}}\"}, {\"title\": \"古代言情\", \"url\": \"/category-landing?category_id=5&offset={{(page-1)*20}}\"}, {\"title\": \"纯爱\", \"url\": \"/category-landing?category_id=1012&offset={{(page-1)*20}}\"}, {\"title\": \"甜宠\", \"url\": \"/category-landing?category_id=96&offset={{(page-1)*20}}\"}, {\"title\": \"总裁\", \"url\": \"/category-landing?category_id=29&offset={{(page-1)*20}}\"}, {\"title\": \"幻想言情\", \"url\": \"/category-landing?category_id=32&offset={{(page-1)*20}}\"}, {\"title\": \"双男主\", \"url\": \"/category-landing?category_id=275&offset={{(page-1)*20}}\"}, {\"title\": \"双女主\", \"url\": \"/category-landing?category_id=704&offset={{(page-1)*20}}\"}, {\"title\": \"年代\", \"url\": \"/category-landing?category_id=79&offset={{(page-1)*20}}\"}, {\"title\": \"快穿\", \"url\": \"/category-landing?category_id=24&offset={{(page-1)*20}}\"}, {\"title\": \"豪门总裁\", \"url\": \"/category-landing?category_id=748&offset={{(page-1)*20}}\"}, {\"title\": \"追妻火葬场\", \"url\": \"/category-landing?category_id=616&offset={{(page-1)*20}}\"}, {\"title\": \"无CP\", \"url\": \"/category-landing?category_id=392&offset={{(page-1)*20}}\"}, {\"title\": \"大女主\", \"url\": \"/category-landing?category_id=760&offset={{(page-1)*20}}\"}, {\"title\": \"女强\", \"url\": \"/category-landing?category_id=86&offset={{(page-1)*20}}\"}], \"🏷️ 男频标签\": [{\"title\": \"古代\", \"url\": \"/category-landing?category_id=758&offset={{(page-1)*20}}\"}, {\"title\": \"历史古代\", \"url\": \"/category-landing?category_id=273&offset={{(page-1)*20}}\"}, {\"title\": \"轻小说\", \"url\": \"/category-landing?category_id=858&offset={{(page-1)*20}}\"}, {\"title\": \"都市生活\", \"url\": \"/category-landing?category_id=2&offset={{(page-1)*20}}\"}, {\"title\": \"都市高武\", \"url\": \"/category-landing?category_id=1014&offset={{(page-1)*20}}\"}, {\"title\": \"游戏动漫\", \"url\": \"/category-landing?category_id=57&offset={{(page-1)*20}}\"}, {\"title\": \"抗战谍战\", \"url\": \"/category-landing?category_id=504&offset={{(page-1)*20}}\"}, {\"title\": \"体育\", \"url\": \"/category-landing?category_id=15&offset={{(page-1)*20}}\"}, {\"title\": \"都市异能\", \"url\": \"/category-landing?category_id=516&offset={{(page-1)*20}}\"}, {\"title\": \"武侠\", \"url\": \"/category-landing?category_id=16&offset={{(page-1)*20}}\"}, {\"title\": \"东方仙侠\", \"url\": \"/category-landing?category_id=1140&offset={{(page-1)*20}}\"}, {\"title\": \"东方玄幻\", \"url\": \"/category-landing?category_id=511&offset={{(page-1)*20}}\"}, {\"title\": \"男频衍生\", \"url\": \" / c a t e g o r y - l a n d i n g ? c a t e g o r Line truncated
"lastUpdateTime" : 1791607295124 ,
"searchUrl" : "<js>\nvar tab = getVariable('模式');\nvar m = String(key).match(/^([xtmdXTMD])[::: ]/);\nvar q = String(key);\nif (m) {\n tab = {x: '小说', t: '听书', m: '漫画', d: '短剧'}[m[1].toLowerCase()];\n q = q.slice(2);\n}\njava.put('fq_search_tab', tab);\nvar typeMap = {'小说': 3, '听书': 2, '漫画': 8, '短剧': 11};\n`/search?query=${encodeURIComponent(q)}&tab_type=${typeMap[tab] || 3}&offset=${(page - 1) * 10}`;\n</js> ",
"bookUrlPattern" : "https?:\\/\\/(?:[a-zA-Z0-9-]+\\.)?[a-zA-Z0-9-]+(?::\\d+)?\\/detail\\?book_id=\\d+.* ",
"jsLib" : "// 当前书源版本号\nlet localVersion = '26.10.10';\n\n// 初始配置\nconst defaultConfig = {\n 发现页类型: \"小说\",\n 频道: \"男频\",\n 搜索模式: \"小说\"\n};\n\n// 获取源变量\nfunction getVariable(k) {\n if (k == undefined) k = \"\";\n const { source } = this;\n let parsed = {};\n try {\n parsed = JSON.parse(source.getVariable());\n } catch {}\n if (k == \"\") {\n return parsed;\n }\n let value = parsed[k];\n if (value == undefined) {\n value = defaultConfig[k];\n }\n return value != undefined ? value : \"\";\n}\n\n// 设置源变量\nfunction setVariable(k, v, t) {\n if (t == undefined) t = true;\n const { source, java } = this;\n const vs = this.getVariable();\n vs[k] = v;\n source.setVariable(JSON.stringify(vs, null, 4));\n if (k != '搜索关键词' && t) {\n java.toast(`\\n设置 ${k} 为 ${v}`)\n }\n}\n\n// 还原\nfunction deleteVariable() {\n const { source, java } = this;\n source.setVariable('');\n java.longToast('\\n所有设置已还原到初始化导入状态');\n}\n\n// 从 URL 提取内容类型标记(n小说/t听书/m漫画/d短剧)。\n// 注意:jsLib 函数作用域看不到规则变量 baseUrl,必须由调用方显式传入\nfunction fqTab(url, def) {\n if (def == undefined) def = 'n';\n let m = String(url).match(/fqtab=([ntmd])/);\n return m ? m[1] : def;\n}\n\n// 判断当前环境\nfunction checkEnv() {\n const {\n java,\n source\n } = this;\n\n try {\n java.qread();\n return \"轻阅读\";\n } catch (e) {}\n\n try {\n if (typeof java.reLoginView == 'function') {\n return \"改版\";\n }\n new Packages.io.legato.kazusa.utils.TimeoutCancellationException('');\n return \"改版\";\n } catch (e) {}\n try {\n java.deviceID();\n return \"苹果\";\n } catch (e) {}\n\n if (typeof source.loginUi == 'function') {\n return \"安卓\";\n }\n\n return \"改版\";\n}\n\n// 备用设置方案(登录页按钮)\nfunction ste(v) {\n const { java } = this;\n let moreSettings = this.getVariable(\"更多设置\") || {};\n let paraSettings = this.getVariable(\"段评设置\") || {};\n if (v == \"段评\") {\n if (paraSettings[\"段评开关\"] != \"false\") {\n paraSettings[\"段评开关\"] = \"false\";\n java.longToast(\"\\n❌段评已关闭\");\n } else {\n paraSettings[\"段评开关\"] = \"true\";\n java.longToast(\"\\n✅段评已开启\");\n }\n }\n if (v == \"小说\" || v == \"听书\" || v == \"漫画\" || v == \"短剧\") {\n moreSettings[\"搜索模式\"] = v;\n java.longToast(`\\n已设置搜索模式为 ${v}`);\n }\n if (v == \"图片\") {\n if (moreSettings[\"显示图片\"] != \"false\") {\n moreSettings[\"显示图片\"] = \"false\";\n java.longToast(\"\\n❌已关闭图片显示\");\n } else {\n moreSettings[\"显示图片\"] = \"true\";\n java.longToast(\"\\n✅已开启图片显示\");\n }\n }\n if (v == \"简介\") {\n if (moreSettings[\"完整简介\"] != \"false\") {\n moreSettings[\"完整简介\"] = \"false\";\n java.longToast(\"\\n❌已关闭完整简介\");\n } else {\n moreSettings[\"完整简介\"] = \"true\";\n java.longToast(\"\\n✅已开启完整简介\");\n }\n }\n this.setVariable(\"更多设置\", moreSettings, false);\n this.setVariable(\"段评设置\", paraSettings, false);\n}\n\n// 按钮切换时改变源变量并刷新发现\nfunction show(m, t) {\n const { java, source } = this;\n let data = {};\n try {\n data = JSON.parse(source.getVariable())\n } catch {}\n data[t] = m;\n if (t == \"发现页类型\") {\n data[\"频道\"] = '男频';\n }\n source.setVariable(JSON.stringify(data, null, 2));\n java.refreshExplore();\n}\n\nfunction createFilter(title, chars, defaultVal, paramKey, size, viewName) {\n if (viewName == undefined) viewName = \"'请选择类型'\";\n return {\n title: title,\n type: \"select\",\n chars: chars,\n default: defaultVal,\n \"viewName\" : v i e w N a m e , \ n a c t i o n : ` s h o w ( i n f o M a p [ ' $ { t i t l e } ' ] , ' $ { p a r a m K e y } ' ) ` , \ n s t y l e : { \ n l a y o u t _ f l e x G r o w : 1 , \ n l a y o u t _ f l e x B a s i s P e r c e n t : s i z e \ n } \ n } ; \ n } \ n \ n f u n c t i o n c r e a t e T e x t ( t i t l e , a c t i o n , d e f a u l t V a l u e , s i z e , v i e w N a m e ) { \ n r e t u r n { \ n t i t l e : t i t l e , \ n t y p e : ' t e x t ' , \ n d e f a u l t : d e f a u l t V a l u e | | ' ' , \ n a c t i o n : a c t i o n , \ n v i e w N a m e : v i e w N a m e | | t i t l e , \ n s t y l e : { \ n l a y o u t _ f l e x G r o w : 1 , \ n l a y o u t _ f l e x B a s i s P e r c e n t : s i z e \ n } \ n } ; \ n } \ n \ n f u n c t i o n c r e a t e B u t t o n ( t i t l e , a c t i o n , s i z e ) { \ n r e t u r n { \ n t i t l e : t i t l e , \ n t y p e : ' b u t Line truncated
"loginUi" : "[\n {\n \"name\": \"⚙️ 书源设置\",\n \"type\": \"button\",\n \"action\": \"getHtmlSettings()\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4 }\n }, {\n \"name\": \"🗨 段评设置\",\n \"type\": \"button\",\n \"action\": \"getSvgSettings()\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4 }\n }, {\n \"name\": \"===下方为备用设置方案===\",\n \"type\": \"button\",\n \"action\": \"\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 1 }\n }, {\n \"name\": \"📖搜索小说\",\n \"type\": \"button\",\n \"action\": \"ste('小说')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4 }\n }, {\n \"name\": \"🎧搜索听书\",\n \"type\": \"button\",\n \"action\": \"ste('听书')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4 }\n }, {\n \"name\": \"🎥搜索短剧\",\n \"type\": \"button\",\n \"action\": \"ste('短剧')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4 }\n }, {\n \"name\": \"🎨搜索漫画\",\n \"type\": \"button\",\n \"action\": \"ste('漫画')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.4 }\n }, {\n \"name\": \"段评开关\",\n \"type\": \"button\",\n \"action\": \"ste('段评')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.25 }\n }, {\n \"name\": \"图片开关\",\n \"type\": \"button\",\n \"action\": \"ste('图片')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.25 }\n }, {\n \"name\": \"简介开关\",\n \"type\": \"button\",\n \"action\": \"ste('简介')\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 0.25 }\n }, {\n \"name\": \"⛔‼️ 清空还原设置\",\n \"type\": \"button\",\n \"action\": \"deleteVariable()\",\n \"style\": { \"layout_flexGrow\": 1, \"layout_flexBasisPercent\": 1 }\n }\n]" ,
"searchUrl" : "<js>\nlet moreSettings = getVariable('更多设置');\nlet tab = moreSettings && moreSettings['搜索模式'] || '小说';\nvar k = String(key);\nlet m = k.match(/^[xtmdXTMD][:: ]\\s*/);\nif (m) {\n tab = { x: '小说', t: '听书', m: '漫画', d: '短剧' }[m[0][0].toLowerCase()];\n k = k.slice(m[0].length);\n}\nlet tabType = { 小说: 3, 听书: 2, 漫画: 8, 短剧: 11 }[tab] || 3;\n`/search?query=${encodeURIComponent(k)}&offset=${(page - 1) * 10}&tab_type=${tabType}`;\n</js>" ,
"exploreUrl" : "<js>\nvar base = String(source.getKey()).replace(/\\/$/, '');\nvar tab = getVariable('发现页类型') || '小说';\nvar channel = getVariable('频道') || '男频';\nvar wordNumMap = { '不限': '0', '30万字以内': '4', '100万字以内': '1', '30万-100万': '5', '100万-300万': '2', '300万字以上': '3', '100万字以上': '9' };\nvar updateMap = { '不限': '2', '完结': '0', '连载中': '1', '今日更新': '3' };\nvar sortMap = { '综合': '0', '热门': '24', '最新': '76', '评分': '12' };\nvar wordNum = getVariable('字数') || '不限';\nvar update = getVariable('更新') || '不限';\nvar sort = getVariable('排序') || '综合';\nvar q = `&word_number=${wordNumMap[wordNum] || '0'}&book_status=${updateMap[update] || '2'}&sort_by=${sortMap[sort] || '0'}`;\nvar tabCode = { 小说: 'n', 听书: 't', 漫画: 'm', 短剧: 'd' }[tab] || 'n';\n\nvar list = [];\nlist.push(createFilter('类型', ['小说', '听书', '短剧', '漫画'], tab, '发现页类型', 0.4));\nlist.push(createFilter('频道', ['男频', '女频'], channel, '频道', 0.4));\nlist.push(createText('搜索关键词', \"setVariable('搜索关键词',(infoMap['搜索关键词'] || (infoMap.get && infoMap.get('搜索关键词'))))\", getVariable('搜索关键词') || '', 0.5, \"'搜索书名或作者'\"));\nlist.push(createButton('🔍搜索', 'exploreSearch()', 0.3));\nlist.push({ title: '⚙️书源设置', type: 'button', action: 'getHtmlSettings()', style: { layout_flexGrow: 1, layout_flexBasisPercent: 0.25 } });\nlist.push({ title: '🗨段评设置', type: 'button', action: 'getSvgSettings()', style: { layout_flexGrow: 1, layout_flexBasisPercent: 0.25 } });\nlist.push(createFilter('字数', Object.keys(wordNumMap), wordNum, '字数', 0.4));\nlist.push(createFilter('更新', Object.keys(updateMap), update, '更新', 0.4));\nlist.push(createFilter('排序', Object.keys(sortMap), sort, '排序', 0.1));\n\nif (tab == '短剧') {\n list.push({ title: '短剧暂无分类,请使用上方搜索 🔍', url: '', style: { layout_flexGrow: 1, layout_flexBasisPercent: 1 } });\n} else {\n var ctab = tab == '小说' ? (channel == '女频' ? 0 : 1) : (tab == '听书' ? 3 : 5);\n try {\n var res = JSON.parse(java.ajax(base + '/category-front?tab=' + ctab));\n var cells = ((res.data || {}).category_tab_data || {}).cell_data || [];\n cells.forEach(function (cell) {\n (cell.atom_data || []).forEach(function (a) {\n var c = a.category_data;\n if (c && c.category_id != null) {\n list.push({\n title: c.name,\n url: base + '/category-landing?category_id=' + c.category_id + '&offset={{(page-1)*20}}' + q + '&fqtab=' + tabCode,\n style: { layout_flexGrow: 1, layout_flexBasisPercent: 0.25 }\n });\n }\n });\n });\n } catch (e) {\n java.toast('发现页分类获取失败');\n }\n}\nJSON.stringify(list);\n</js>" ,
"ruleSearch" : {
"ruleSearch" : {
"author" : "author ",
"bookList" : "<js>\nvar d = JSON.parse(result);\nvar isVideo = /tab_type=11/.test(baseUrl);\nvar arr = [];\n(d.data || []).forEach(function (b) {\n var list = isVideo ? (b.video_data || []) : (b.book_data || []);\n list.forEach(function (x) {\n if (isVideo) {\n arr.push({\n book_id: x.series_id,\n book_name: x.title,\n author: '',\n abstract: x.rec_text || '',\n thumb_url: x.horiz_cover || x.cover,\n category: '短剧',\n creation_status: '1',\n score: x.score,\n word_number: String(x.episode_cnt || '')\n });\n } else {\n arr.push(x);\n }\n });\n});\narr;\n</js> ",
"bookList" : "<js>\nvar tab = java.get('fq_search_tab') || getVariable('模式');\nvar d = parseJsonSafely(result, {});\nvar list = [];\n(d.data || []).forEach(function (b) {\n if (b.book_data) {\n b.book_data.forEach(function (x) {\n x.fq_tab = tab;\n list.push(x);\n });\n } else if (b.video_data) {\n // 短剧字段与书籍不同,归一化为 book_data 结构(book_id 用 series_id 走通 detail/catalog) \n b.video_data.forEach(function (v) {\n list.push({\n book_id: v.series_id || v.vid,\n book_name: v.title || v.raw_book_name,\n author: (v.video_detail && v.video_detail.actor) || '',\n thumb_url: v.cover || '',\n abstract: v.sub_title || '',\n category: v.sub_title || '',\n fq_tab: tab\n });\n });\n }\n});\nJSON.stringify({data: list});\n</js>$.data ",
"name" : "$.book_name ",
"bookUrl " : "<js>\n'/detail?book_id=' + result.book_id + '&tab=' + (result.fq_tab || getVariable('模式'));\n</js> " ,
"author " : "$.author " ,
"checkKeyWord" : "十日终焉 ",
"kind" : "{{$.creation_status=='0'?'完结':'连载'}},{{$.category}},{{$.score}}分 ",
"coverUrl" : "thumb_url ",
"wordCount" : "$.word_number##^0+$ ",
"intro" : "abstract" ,
"intro" : "$. abstract" ,
"kind" : "category ",
"coverUrl" : "$.thumb_url ",
"name " : "book_name " ,
"bookUrl " : "<js>\nvar t = /tab_type=11/.test(baseUrl) ? 'd' : /tab_type=2/.test(baseUrl) ? 't' : /tab_type=8/.test(baseUrl) ? 'm' : 'n';\n`/detail?book_id=${result.book_id}&fqtab=${t}`;\n</js> " ,
"wordCount" : "word_number "
"checkKeyWord" : "斗罗大陆 "
} ,
} ,
"ruleExplore" : {
"ruleExplore" : {
"author" : "author" ,
"bookList" : "$.data.book_info[*]" ,
"bookList" : "$.data.book_info[*]" ,
"bookUrl " : "<js>\n'/detail?book_id=' + result.book_id + '&tab=' + (result.fq_tab || getVariable('模式'));\n</js> " ,
"name " : "$.book_name " ,
"coverUrl" : "thumb_url ",
"author" : "$.author ",
"intro " : "abstract " ,
"k ind " : "{{$.category}},{{$.score}}分 " ,
"kind" : "category ",
"wordCount" : "$.word_number##^0+$ ",
"name " : "book_name " ,
"intro " : "$.abstract " ,
"wordCount" : "word_number"
"coverUrl" : "$.thumb_url" ,
"bookUrl" : "<js>\nvar m = String(baseUrl).match(/fqtab=([ntmd])/);\n`/detail?book_id=${result.book_id}&fqtab=${m ? m[1] : 'n'}`;\n</js>"
} ,
} ,
"ruleBookInfo" : {
"ruleBookInfo" : {
"author " : "$.data.author " ,
"init " : "$.data" ,
"canReN ame" : "1 " ,
"n ame" : "$.book_name " ,
"coverUrl " : "$.data.thumb_url " ,
"author " : "$.author " ,
"init " : "<js>\njava.put('fq_tab', (String(baseUrl).match(/[?&]tab=([^&]+)/) || [])[1] || getVariable('模式'));\nresult;\n</js> " ,
"k ind " : "{{$.creation_status=='0'?'完结':'连载'}},{{$.category}} " ,
"intro" : "<js>\nvar tab = java.get('fq_tab') || getVariable('模式');\nvar x = (parseJsonSafely(result, {}) || {}).data || {};\nfunction v(t) { return (t != undefined && t != null && String(t).length > 0 && String(t) != 'null') ? String(t) : ''; }\nfunction cats() {\n if (x.category) return x.category;\n if (Array.isArray(x.category_v2)) return x.category_v2.map(function (c) { return c.Name || c.name || ''; }).filter(String).join('/');\n return '';\n}\nvar statusMap = {'0': '连载中', '1': '连载中', '2': '已完结', 'creation_status_end': '已完结', 'creation_status_loading': '连载中'};\nvar st = statusMap[v(x.creation_status)] || v(x.creation_status);\nvar lines = ['📡 来源:番茄 | 🔄 模式:' + tab];\n[['🌈 分类', cats()],\n ['📚 最新章节', v(x.last_chapter_title)],\n ['📝 字数', v(x.word_number)],\n ['🚩 状态', st],\n ['⭐ 评分', v(x.score)],\n ['👀 阅读人数', v(x.read_count)]\n].forEach(function (p) { if (p[1]) lines.push(' ' + p[0] + ': ' + p[1]); });\nif (v(x.abstract)) lines.push('❇️─────────\\n📖 简介:\\n' + String(x.abstract).split('\\n').map(function (l) { return ' ' + l; }).join('\\n'));\nlines.join('\\n');\n</js> ",
"wordCount" : "$.word_number##^0+$ ",
"kind" : "$.data.category_v2[*].Nam e",
"lastChapter" : "$.last_chapter_titl e",
"lastChapter" : "$.data.last_chapter_title ",
"coverUrl" : "$.thumb_url ",
"name " : "$.data.book_name " ,
"intro " : "<js>\nconst { book_id, last_chapter_title, last_chapter_update_time, word_number, score, abstract, read_count, category } = result;\nlet m0 = String(baseUrl).match(/fqtab=([ntmd])/);\nconst tab = { n: '小说', t: '听书', m: '漫画', d: '短剧' }[(m0 ? m0[1] : 'n')];\nlet moreSettings = getVariable('更多设置');\nconst lightDivider = \"❇️───────❇️───────❇️\";\nconst heavyDivider = \"‎\\n‎\";\nconst isValid = (v) => String(v).length > 1;\nlet ctitle = book.durChapterTitle || '未开始';\nconst two = (n) => ('0' + n).slice(-2);\nconst fmtTime = (t) => {\n let n = parseInt(t);\n if (!n || n <= 0) return '';\n let d = new Date(n * 1000);\n return `${d.getFullYear()}-${two(d.getMonth() + 1)}-${two(d.getDate())}`;\n};\nconst formatAbstract = (text) => String(text).split(\"\\n\").map(line => ` ${line}`).join(\"\\n\");\nconst buildBasicInfo = (items) => {\n let info = \"\";\n for (let [value, prefix, icon] of items) {\n if (isValid(value)) info += ` ${icon} ${prefix} ${value}\\n`;\n }\n return info;\n};\nlet info = ` 🏷 数据来源:番茄小说(fanqie-go)\\n 🔄 当前模式:${tab}\\n 📖 阅读至:${ctitle}\\n`;\nconst fullBasicInfo = buildBasicInfo([\n [category, \"书籍分类:\", \"🌈\"],\n [last_chapter_title, \"最新章节:\", \"📚\"],\n [fmtTime(last_chapter_update_time), \"更新时间:\", \"⏳\"],\n [word_number, \"书籍字数:\", \"📝\"],\n [score, \"书籍评分:\", \"⭐\"],\n [read_count, \"今阅读人数:\", \"📃\"]\n]);\nif (fullBasicInfo) info += `${lightDivider}\\n${fullBasicInfo}`;\nif (isValid(abstract)) info += `${heavyDivider}\\n 📖 书籍简介:\\n${formatAbstract(abstract)}\\n`;\ninfo += `${lightDivider}\\n${heavyDivider}\\n 数据更新于 ${new Date().toLocaleString()}\\n`;\nconst abstractMode = moreSettings && moreSettings['完整简介'] || 'true';\nif (abstractMode == \"false\") {\n const simplifiedBasicInfo = buildBasicInfo([\n [last_chapter_title, \"最新章节:\", \"📚\"],\n [fmtTime(last_chapter_update_time), \"更新时间:\", \"⏳\"],\n [word_number, \"书籍字数:\", \"📝\"],\n [score, \"书籍评分:\", \"⭐\"]\n ]);\n info = `\\n‎${isValid(abstract) ? `📖 书籍简介:\\n${formatAbstract(abstract)}\\n${heavyDivider}` : ''}🏷 数据来源:番茄小说\\n${simplifiedBasicInfo}`;\n} else {\n info = info.split(\"\\n\").map(line => line.replace(/^ {4}/, \"\")).join(\"\\n\");\n}\ninfo;\n</js> " ,
"tocUrl" : "/catalog?book_id={{$.data .book_id}} " ,
"tocUrl" : "<js>\nvar m = String(baseUrl).match(/fqtab=([ntmd])/);\n` /catalog?book_id=${result .book_id}&fqtab=${m ? m[1] : 'n'}`;\n</js> " ,
"wordCount" : "$.data.word_number "
"canReName" : "1 "
} ,
} ,
"ruleToc" : {
"ruleToc" : {
"chapterList" : "<js>\njava.put('fq_book_id', (String(baseUrl).match(/book_id=(\\d+)/) || [])[1] || '');\n// 书籍类型按模式动态设置:安卓 8文本/32音频/64图片,iOS 0/1/2\nvar tab = java.get('fq_tab') || getVariable('模式');\nvar tMap = {'小说': 8, '听书': 32, '漫画': 64, '短剧': 8};\nvar t = tMap[tab] || 8;\nif (isIOS()) t = {'小说': 0, '听书': 1, '漫画': 2, '短剧': 0}[tab] || 0;\ntry { book. typ e = t; } catch (e) {}\nresult;\n</js>$.data.item_data_list[*]" ,
"chapterList" : "<js>\n// 类型随书切换(照光遇 typeMap:安卓用 default,苹果端用其类型体系)\nconst typeMap = {\n \"小说\": { \"苹果\": 0, \"default\": 8 },\n \"听书\": { \"苹果\": 1, \"default\": 32 },\n \"漫画\": { \"苹果\": 2, \"default\": 64 },\n \"短剧\": { \"苹果\": 3, \"default\": 8 }\n};\nconst device_type = checkEnv();\nvar tabName = { n: '小说', t: '听书', m: '漫画', d: '短剧' }[fqTab(baseUrl, 'n')];\nvar currentType = type Map[tabName ] || typeMap[\"小说\"];\nif (device_type == '苹果') {\n book.type = currentType[device_type];\n} else {\n book.type = currentType.default;\n}\ntry {\n book.imageS tyl e = checkEnv() == '改版' ? 'FULL' : 'TEXT';\n } catch (e) {}\nresult;\n</js>$.data.item_data_list[*]" ,
"chapterName" : "$.title" ,
"chapterName" : "$.title" ,
"chapterUrl" : "<js>\nvar tab = java.get('fq_tab') || getVariable('模式');\nvar id = result.item_id;\nvar url;\nif (tab == '听书') {\n url = '/audio?item_ids=' + id + '&tone_id=' + getVariable('音色') + '&output=url';\n} else if (tab == '短剧') {\n url = '/video?item_ids=' + id + '&output=proxy&quality=' + getVariable('清晰度');\n} else {\n var review = getVariable('段评') != '关' ? 'keep' : 'remove';\n var img = getVariable('图片') == '移除' ? 'remove' : 'keep';\n url = '/content?item_id=' + id + '&text_mode=' + (review == 'keep' ? 'html' : 'plain') + '&review=' + review + '&image_mode=' + img;\n} \nurl ;\n</js>"
"chapterUrl" : "<js>\nvar t = fqTab(baseUrl, 'n');\nvar id = result.item_id;\nvar u = {\n n: `/content?item_id=${id}&text_mode=html&review=keep&image_mode=keep&fqtab=n`,\n t: `/audio?item_ids=${id}&fqtab=t`,\n m: `/manga?item_ids=${id}&output=proxy&fqtab=m`,\n d: `/video?item_ids=${id}&fqtab=d`\n}[t]; \nu;\n</js>"
} ,
} ,
"ruleContent" : {
"ruleContent" : {
"content" : "<js>\nvar base = BaseUrl();\nvar u = String(baseUrl);\nvar item = (u.match(/item_ids?=(\\d+)/) || [])[1] || '';\nvar tab = java.get('fq_tab') || getVariable('模式 ');\nfunction absUrl(s) { return (s && String(s).indexOf('http') != 0) ? base + s : s; }\nfunction videoUrl() { \n var v = parseJsonSafely(request('/video?item_ids=' + item + '&output=proxy&quality=' + getVariable('清晰度')), null);\n var vl = v && v.data && v.data.video_list;\n if (vl) { var ks = Object.keys(vl); if (ks.length) return absUrl(vl[ks[0]].main_url); }\n return '';\n}\nvar out = '';\nif (u.indexOf('/video') > -1 ) {\n // 短剧:解密代理直链 ,当前章节自动打开 播放\n var d = parseJsonSafely(result, {}) ;\n var vl = d.data && d.data. video_list;\n var vu = '' ;\n if (vl) { var ks = Object.keys(vl); if (ks.length) vu = absUrl(vl[ks[0]].main_url); }\n if (vu && book.durChapterIndex == chapter.index) {\n try { java.startBrowser(vu, title || ''); } catch (e) {}\n }\n out = vu ? `▶️ 正在加载视频…\\n若未自动播放,请复制以下直链到播放器打开:\\n${vu}` : '❌ 视频获取失败,请刷新重试';\n} else if (u.indexOf('/audio') > -1) {\n // 听书:短剧视频章优先原声音轨,其余回退 TTS 音色\n out = videoUrl();\n if (!out) {\n var a = parseJsonSafely(result, {});\n if (a.data && a.data[0] && a.data[0].main_url) out = absUrl(a.data[0].main_url);\n }\n} else {\n // 小说/漫画:段评气泡 + 空正文回退图片列表\n var review = getVariable('段评') != '关';\n var c = '';\n var d = parseJsonSafely (result, {} );\n c = (d.data && d.data .content) || '';\n if (c && review) {\n // 段评 ident 域名由服务端按请求 Host 拼接,强制替换为书源地址\n c = c.replace(/(<comment ident=\")[^\"]*?\\/review_html\\?/g, '$1' + base + '/review_html?') ;\n c = isIOS() ? paraForiOS(c) : paraForAndroid(c);\n }\n if (c) {\n out = c;\n } else {\n var m = parseJsonSafely(request('/manga?item_ids=' + item + '&output=proxy'), {});\n // 兼容两种响应:data 为图片数组,或 data.images 为图片数组\n var imgs = (m && m.data && Array.isArray(m.data.images)) ? m.data.images : (m && Array.isArray(m.data) ? m.data : null);\n out = imgs ? imgs.map(function (i) { return `<img src=\"${absUrl(i.data)}\">`; }).join('\\n') : ((m && m.data && m.data.content) || '❌ 内容获取失败,请刷新重试');\n }\n}\nout; \n</js>"
"content" : "<js>\nvar t = fqTab(baseUrl, 'n');\nlet moreSettings = getVariable('更多设置');\nlet dpSettings = getVariable('段评设置 ');\nlet islyc = checkEnv();\n\nif (t == 't') {\n // 听书:直接返回音频地址\n JSON.parse(result).data[0].main_url;\n} else if (t == 'm') {\n // 漫画:拼装图片 \n var d = JSON.parse(result);\n var org = String(baseUrl).match(/^https?:\\/\\/[^\\/]+/)[0];\n var imgs = (d.data || {}).images || [];\n var out = [];\n for ( var i = 0; i < imgs.length; i++) {\n out.push('<img src=\"' + org + imgs[i].data + '\">');\n }\n out.join('\\n');\n} else if (t == 'd' ) {\n // 短剧:选最高清晰度 ,当前章节自动唤起 播放\n var d = JSON.parse(result).data || {};\n var vl = d.video_list || {} ;\n var list = [] ;\n for (var k in vl) { list.push(vl[k]); }\n list.sort(function (a, b) { return (b.vheight || 0) - (a.vheight || 0); });\n var org = String(baseUrl).match(/^https?:\\/\\/[^\\/]+/)[0];\n var url = list.length ? String(list[0].main_url) : '';\n if (url && url.indexOf('http') != 0) { url = org + url; }\n if (url && book.durChapterIndex == chapter.index) {\n java.startBrowser(url, chapter.title);\n }\n '▶️ 本集已唤起播放(菜单-刷新可重新打开):\\n' + url;\n} else {\n // 小说:正文 + 段评气泡\n var d = JSON.parse (result);\n var content = String((d.data || {}) .content || '') ;\n let show_img = moreSettings && moreSettings['显示图片'] || 'true' ;\n if (show_img == 'false') {\n content = removeAllImgTags(content);\n }\n let para = dpSettings && dpSettings['段评开关'] || 'true';\n if (para == 'true' && content.indexOf('<comment') != -1) {\n content = islyc == '苹果' ? paraForiOS(content, '番茄') : paraForAndroid(content, '番茄');\n }\n content;\n} \n</js>" ,
} ,
"title" : "$.data.title"
"weight" : 0
}
}
}
]
]