From 644d071f1222ca3fa8e0a8d9833ee9750f536e8d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 24 Jul 2024 18:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index d9a13415..58bd4d9b 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -766,17 +766,16 @@ function jiexi(data) { title: '是否为web嗅探解析:' + (getMyVar('parsetype', data?data.type.toString():'0')=="0"?"是":"否"), col_type: 'text_1', url:$().lazyRule(()=>{ - if(/^http/.test(getMyVar('parseurl','')) && /id=|key=/.test(getMyVar('parseurl',''))){ - if(getMyVar('parsetype')=="1"){ - putMyVar('parsetype','0'); - }else{ - putMyVar('parsetype','1'); - } - refreshPage(false); - return "hiker://empty"; + if(/^function/.test(getMyVar('parseurl',''))){ + putMyVar('parsetype','0'); + }else if(getMyVar('parsetype')=="1"){ + putMyVar('parsetype','0'); }else{ - return "toast://以http开头的普通解析才能标记" + putMyVar('parsetype','1'); } + + refreshPage(false); + return "toast://是否为web解析,只用于判断进入video播放"; }) }); d.push({ @@ -805,7 +804,9 @@ function jiexi(data) { height: 3, onChange: $.toString(() => { if (/{|}/.test(input)) { - storage0.putMyVar("parseext", JSON.parse(input)) + try{ + storage0.putMyVar("parseext", JSON.parse(input)); + }catch(e){} } }) }