//二级统一菜单 var erjimenu = [ { title: "剧情简介", url: /\.sogou\./.test(MY_URL)?$('hiker://empty#noRecordHistory##noHistory#').rule((url) => { var d=[]; var html = fetch(url.split('##')[1]); var story=parseDomForHtml(html, 'body&&.srch-result-info&&Html').replace(/<\/a>0){ d.push({ title: '剧照:', col_type: 'rich_text' }); d.push({ col_type: 'line' }); } for(var i in photos){ d.push({ pic_url: parseDomForHtml(photos[i], 'img&&data-src'), url: 'hiker://empty', col_type: 'pic_1_full' }); d.push({ col_type: 'line' }); } }catch(e){}; setHomeResult(d); }, MY_URL): $('hiker://empty#noHistory#').rule(() => { setHomeResult([{ title: '影片简介:\n' + getMyVar('moviedesc',''), col_type: 'long_text' }]); }), pic_url: 'https://lanmeiguojiang.com/tubiao/messy/32.svg', col_type: 'icon_small_3' }, { title: "观影设置", url: $('hiker://empty#noRecordHistory##noHistory#').rule(() => { function getide(is) { if(is==1){ return '‘‘’’'; }else{ return '‘‘’’'; } } function setupPages(type) { switch (type) { case "设置": return $("hiker://empty#noRecordHistory#").rule(() => { setPageTitle("断插配置"); this.d = []; eval(fetch('hiker://files/cache/fileLinksᴰⁿ.txt')); if (!getVar('jxItemV')) { require(fLinks.jxItUrl); } d.push({ desc: 'auto', url: fLinks.x5Route + 'Parse_Dn.html', col_type: 'x5_webview_single' }); var jxItNewV = getVar('jxItNewV', ''), jxItemV = getVar('jxItemV', ''); var versionTips = jxItNewV == '' ? '‘‘' : '‘‘' + jxItNewV + '\n'; var pics = [ 'https://tva1.sinaimg.cn/large/9bd9b167gy1fwri56wjhqj21hc0u0arr.jpg', 'https://cdn.seovx.com/img/seovx-20-10%20(92).jpg', 'https://cdn.seovx.com/img/mom2018%20(207).jpg', 'https://tva4.sinaimg.cn/large/9bd9b167gy1fwrh5xoltdj21hc0u0tax.jpg', 'https://tva1.sinaimg.cn/large/005BYqpggy1fwreyu4nl6j31hc0u0ahr.jpg', 'https://s3.bmp.ovh/imgs/2021/10/d7e60b990742093d.jpeg', 'https://s3.bmp.ovh/imgs/2021/10/91ad6d6538bf8689.jpg', 'https://tva1.sinaimg.cn/large/005BYqpggy1fwresl5pmlj31hc0xcwka.jpg', 'https://tva3.sinaimg.cn/large/005BYqpggy1fwrgjdk74oj31hc0u0dqn.jpg', 'https://cdn.seovx.com/img/mom2018%20(803).jpg' ]; d.push({ img: pics[Math.floor(Math.random() * 10)], title: versionTips + '’’  点击此处查看操作指引
点击上方头像进入编辑', desc: '当前版本: ' + jxItemV, url: fLinks.czzy, col_type: 'movie_1' }); setResult(d); }) break; case "编辑": return $("hiker://empty#noRecordHistory#").rule(() => { setPageTitle("解析管理"); this.d = []; eval(fetch('hiker://files/cache/fileLinksᴰⁿ.txt')); require(fLinks.jxItUrl); jxItem.jxList(); setResult(d); }) break; default: return 'toast://需要传入正确参数' break; } } setPageTitle("♥观影设置"); var d = []; var cfgfile = "hiker://files/rules/Src/Juying/config.json"; var Juyingcfg=fetch(cfgfile); if(Juyingcfg != ""){ eval("var JYconfig=" + Juyingcfg+ ";"); }else{ var JYconfig= {}; } putMyVar('superwebM3U8',JYconfig.cachem3u8==1&&JYconfig.superweb==1?'1':'0'); d.push({ title: '功能开关', col_type: "rich_text" }); d.push({ col_type: "line_blank" }); d.push({ title: (JYconfig['printlog']==1?getide(1):getide(0))+'打印日志', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { if(JYconfig['printlog'] != 1){ JYconfig['printlog'] = 1; }else{ JYconfig['printlog'] = 0; } writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://切换成功'; }, JYconfig, cfgfile), col_type: "text_2" }); d.push({ title: (JYconfig['cachem3u8']!=0?getide(1):getide(0))+'m3u8缓存', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { if(JYconfig['cachem3u8'] == 0){ JYconfig['cachem3u8'] = 1; putMyVar('SrcM3U8','1'); }else{ JYconfig['cachem3u8'] = 0; putMyVar('SrcM3U8','0'); } writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://切换成功'; }, JYconfig, cfgfile), col_type: "text_2" }); d.push({ title: '屏蔽操作', col_type: "rich_text" }); d.push({ col_type: "line_blank" }); d.push({ title: '无效播放地址', url: $("","屏蔽无效播放地址\n多数为跳舞小姐姐播放链接").input(()=>{ var recordfile = "hiker://files/rules/Src/Juying/parse.json"; var recordparse=fetch(recordfile); if(recordparse != ""){ eval("var recordlist=" + recordparse+ ";"); }else{ var recordlist = {}; } recordlist['excludeurl'] = recordlist['excludeurl']||[]; let url = input.split(';{')[0].replace('file:///storage/emulated/0/Android/data/com.example.hikerview/files/Documents/cache/video.m3u8##','').replace('#isVideo=true#',''); if(recordlist['excludeurl'].indexOf(url)==-1){ recordlist['excludeurl'].push(url); } writeFile(recordfile, JSON.stringify(recordlist)); return 'toast://屏蔽无效播放地址成功'; }), col_type: "text_2" }); d.push({ title: '清除播放拦载记录', url: $("清除拦截跳舞小姐姐视频记录?").confirm(()=>{ var recordfile = "hiker://files/rules/Src/Juying/parse.json"; var recordparse=fetch(recordfile); if(recordparse != ""){ eval("var recordlist=" + recordparse+ ";"); recordlist['exclude'] = []; writeFile(recordfile, JSON.stringify(recordlist)); return 'toast://已清除跳舞小姐姐视频拦截记录'; }else{ return 'toast://无记录'; } }), col_type: "text_2" }); d.push({ col_type: "line" }); var parsefrom = []; var recordfile = "hiker://files/rules/Src/Juying/parse.json"; var recordparse=fetch(recordfile); if(recordparse != ""){ eval("var recordlist=" + recordparse+ ";"); try{ for(var key in recordlist.parse){ parsefrom.push(key); } }catch(e){ } } d.push({ title: '屏蔽优先解析', url: parsefrom.length==0?'toast://没有优先解析,无需操作':$(parsefrom,3,"选择片源屏蔽优先解析").select(()=>{ var recordfile = "hiker://files/rules/Src/Juying/parse.json"; var recordparse=fetch(recordfile); eval("var recordlist=" + recordparse+ ";"); var parseurl = recordlist.parse[input]; var parsename = recordlist.name[input]; delete recordlist.parse[input]; var filepath = "hiker://files/rules/Src/Juying/myjiexi.json"; var datafile = fetch(filepath); if(datafile != ""){ eval("var datalist=" + datafile+ ";"); }else{ var datalist = []; } if(datalist.some(item => item.parse == parseurl)){ //私有解析在屏蔽优先时,仅排除片源 for(var j=0;j排除片源>'+input; }else{ //app自带的解析在屏蔽优先时,直接加入黑名单 recordlist['excludeparse'] = recordlist['excludeparse']||[]; if(parseurl&&recordlist['excludeparse'].indexOf(parseurl)==-1){ recordlist['excludeparse'].push(parseurl); } var sm = parsename+'>加入全局黑名单'; } writeFile(recordfile, JSON.stringify(recordlist)); refreshPage(false); log('已屏蔽'+input+' 优先解析:'+sm); return 'toast://已屏蔽'+input+'优先解析'; }), col_type: "text_2" }); d.push({ title: '清除优先拦截记录', url: $("清除接口自带解析拦截黑名单记录?").confirm(()=>{ var recordfile = "hiker://files/rules/Src/Juying/parse.json"; var recordparse=fetch(recordfile); if(recordparse != ""){ eval("var recordlist=" + recordparse+ ";"); recordlist['excludeparse'] = []; writeFile(recordfile, JSON.stringify(recordlist)); refreshPage(false); return 'toast://已清除app自带解析拦截黑名单记录'; }else{ return 'toast://无记录'; } }), col_type: "text_2" }); d.push({ title: '解析设置', col_type: "rich_text" }); d.push({ col_type: "line_blank" }); let parsemode = JYconfig.parsemode || 1; if(fileExist('hiker://files/rules/DuanNian/MyParse.json')||JYconfig.dnfile){ var haveDN = 1 var isdn = JYconfig.isdn==0?0:1; }else{ var haveDN = 0 var isdn = 0; }; d.push({ title: '当前解析模式:' + (parsemode==1?'聚影智能':parsemode==2?'强制断插':'强制嗅探'), desc: parsemode==1?'上次优先>app解析+私有解析'+(haveDN&&isdn?'+断插解析':'')+'+嗅探保底':parsemode==2?'走断插(含魔断)或帅助手设置的解析逻辑':'app和私有解析中的直链+保底解析进行聚合嗅探', url: 'hiker://empty', col_type: "text_center_1" }); d.push({ title: (parsemode==1?getide(1):getide(0))+'聚影智能', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { JYconfig['parsemode'] = 1; writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://解析模式:聚影智能'; }, JYconfig, cfgfile), col_type: "text_3" }); d.push({ title: (haveDN&&isdn&&parsemode==1?getide(1):getide(0))+'断插辅助', url: haveDN==0?'toast://没有断插?无法开启!':$('#noLoading#').lazyRule((JYconfig,cfgfile) => { if(JYconfig['isdn'] == 0){ JYconfig['isdn'] = 1; var sm = "开启断插同步并发解析"; }else{ JYconfig['isdn'] = 0; var sm = "断插辅助解析已关闭"; } writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://切换成功:' + sm; }, JYconfig, cfgfile), col_type: "text_3" }); d.push({ title: '📝解析文件', url: $(JYconfig.dnfile?JYconfig.dnfile:"","指定断插解析文件路径\n默认可以留空").input((JYconfig,cfgfile) => { JYconfig['dnfile'] = input; writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://解析文件设置成功'; }, JYconfig, cfgfile), col_type: "text_3" }); d.push({ col_type: "line" }); d.push({ title: (parsemode==2?getide(1):getide(0))+'强制断插', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { JYconfig['parsemode'] = 2; writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://解析模式:强制断插'; }, JYconfig, cfgfile), col_type: "text_3" }); d.push({ title: '🍧断插配置', url: fileExist('hiker://files/cache/fileLinksᴰⁿ.txt') ? setupPages("设置") : "hiker://page/Route?rule=MyFieldᴰⁿ&type=设置#noHistory#", col_type: "text_3" }); d.push({ title: '🍦解析管理', url: fileExist('hiker://files/cache/fileLinksᴰⁿ.txt') ? setupPages("编辑") : "hiker://page/Route?rule=MyFieldᴰⁿ&type=编辑#noRecordHistory#", col_type: "text_3" }); d.push({ col_type: "line" }); d.push({ title: (parsemode==3?getide(1):getide(0))+'强制嗅探', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { JYconfig['parsemode'] = 3; writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://解析模式:强制嗅探'; }, JYconfig, cfgfile), col_type: "text_3" }); d.push({ title: (parsemode!=2&&JYconfig.xiutannh!='x5'?getide(1):getide(0))+'web内核', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { JYconfig['xiutannh'] = 'web'; writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://嗅探内核:web'; }, JYconfig, cfgfile), col_type: "text_3" }); d.push({ title: (parsemode!=2&&JYconfig.xiutannh=='x5'?getide(1):getide(0))+'x5内核', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { JYconfig['xiutannh'] = 'x5'; writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://嗅探内核:x5'; }, JYconfig, cfgfile), col_type: "text_3" }); if((MY_NAME=="海阔视界"&&getAppVersion()>=3369)||(MY_NAME=="嗅觉浏览器"&&getAppVersion()>=798)){ d.push({ col_type: "line" }); d.push({ title: (JYconfig.superweb==1?getide(1):getide(0)) + '播放器超级嗅探:' + (JYconfig.superweb==1?'开启':'关闭'), desc: JYconfig.superweb==1?'无法在选集页下载,无法预加载,但是可以多线路':'普通模式先嗅探到播放地址再进播放器', url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { if(JYconfig['superweb'] != 1){ JYconfig['superweb'] = 1; }else{ JYconfig['superweb'] = 0; } writeFile(cfgfile, JSON.stringify(JYconfig)); refreshPage(false); return 'toast://切换成功'; }, JYconfig, cfgfile), col_type: "text_center_1" }); } setHomeResult(d); }), pic_url: 'https://lanmeiguojiang.com/tubiao/messy/37.svg', col_type: 'icon_small_3' }, { title: "更多片源", url: !fileExist('hiker://files/rules/Src/Juying/jiekou.json')?"toast://分享页面或没有接口,无法扩展更多片源":getMyVar('SrcJy$back')=='1'?`#noLoading#@lazyRule=.js:back(false);'hiker://empty'`:$('hiker://empty#noRecordHistory##noHistory#').rule((name) => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyXunmi.js'); xunmi(name); }, MY_PARAMS.name), pic_url: 'https://lanmeiguojiang.com/tubiao/messy/25.svg', col_type: 'icon_small_3' } ]