更新 'SrcJuying.js'

master
src48597962 9 months ago
parent 5c28155697
commit 3d8bf9615c
  1. 22
      SrcJuying.js

@ -538,7 +538,6 @@ function yiji() {
})); }));
*/ */
if(getMyVar('SrcJuying-VersionCheck', '0') == '0'){ if(getMyVar('SrcJuying-VersionCheck', '0') == '0'){
let programversion = 0; let programversion = 0;
try{ try{
@ -801,7 +800,7 @@ function yiji() {
} }
}); });
d.push({ d.push({
title: "📑"+(getItem('searchrecordide')=='1'?"关":"开")+"记录", title: "📑"+(getItem('searchrecordide')=='1'?"关":"开")+"搜索记录",
url: $('#noLoading#').lazyRule(() => { url: $('#noLoading#').lazyRule(() => {
if(getItem('searchrecordide')=='1'){ if(getItem('searchrecordide')=='1'){
clearItem('searchrecordide'); clearItem('searchrecordide');
@ -813,6 +812,19 @@ function yiji() {
}), }),
col_type: 'scroll_button' 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({ d.push({
col_type: "blank_block" 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 resoufile = "hiker://files/rules/Src/Juying/resou.json";
let Juyingresou = fetch(resoufile); let Juyingresou = fetch(resoufile);
let JYresou = {}; let JYresou = {};

Loading…
Cancel
Save