diff --git a/SrcJySet.js b/SrcJySet.js index c308b872..e83038e6 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -2086,6 +2086,26 @@ function manageSet(){ }), col_type: 'text_icon' }); + d.push({ + title: '本地代码运行', + img: getItem('本地代码运行')=="1"?getIcon("管理-开.svg"):getIcon("关.svg"), + url: $("#noLoading#").lazyRule(() => { + if(getItem('本地代码运行')=="1"){ + clearItem('本地代码运行'); + refreshPage(); + }else{ + if(fileExist("hiker://files/data/"+MY_RULE.title+"/libs/SrcJuying.js")){ + setItem('本地代码运行','1'); + refreshPage(); + }else{ + toast("本地依赖文件不存在,需要先下载"); + + } + } + return 'hiker://empty'; + }), + col_type: 'text_icon' + }); d.push({ col_type: "line_blank" });