diff --git a/SrcJuying.js b/SrcJuying.js index 74d74b51..cca1215d 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -538,7 +538,6 @@ function yiji() { })); */ - if(getMyVar('SrcJuying-VersionCheck', '0') == '0'){ let programversion = 0; try{ @@ -801,7 +800,7 @@ function yiji() { } }); d.push({ - title: "📑"+(getItem('searchrecordide')=='1'?"关闭":"开启")+"记录", + title: "📑"+(getItem('searchrecordide')=='1'?"关":"开")+"搜索记录", url: $('#noLoading#').lazyRule(() => { if(getItem('searchrecordide')=='1'){ clearItem('searchrecordide'); @@ -813,6 +812,19 @@ function yiji() { }), col_type: 'scroll_button' }); + d.push({ + title: "🎥"+(getItem('historyEnable')=='1'?"关":"开")+"观看记录", + url: $('#noLoading#').lazyRule(() => { + if(getItem('historyEnable')=='1'){ + clearItem('historyEnable'); + }else{ + setItem('historyEnable','1'); + } + refreshPage(false); + return "toast://已切换" + }), + col_type: 'scroll_button' + }); d.push({ col_type: "blank_block" }); @@ -847,6 +859,12 @@ function yiji() { }) } + if(getItem('historyEnable')=='1'){ + let items = fetch('hiker://history?rule='+MY_RULE.title); + log(items); + + } + let resoufile = "hiker://files/rules/Src/Juying/resou.json"; let Juyingresou = fetch(resoufile); let JYresou = {};