更新 'SrcJyPublic.js'

master
src48597962 6 months ago
parent 47f78eded2
commit b9dec5ca75
  1. 8
      SrcJyPublic.js

@ -785,9 +785,11 @@ function getHistory(i){
let h = []; let h = [];
let ruleTitle = MY_RULE._title || MY_RULE.title; let ruleTitle = MY_RULE._title || MY_RULE.title;
i = i ? i*3 : 0; i = i ? i*3 : 0;
log(i); let items = JSON.parse(fetch('hiker://history')).filter(v=> v.type!="网页浏览" && JSON.parse(v.params).title==ruleTitle);
let items = JSON.parse(fetch('hiker://history')).filter(v=> v.type!="网页浏览" && JSON.parse(v.params).title==ruleTitle).slice(i, i+3); if(i+3 > items.length){
items.forEach(item=>{ i = 0;
}
items.slice(i, i+3).forEach(item=>{
try{ try{
let extra = JSON.parse(JSON.parse(item.params).params) || {}; let extra = JSON.parse(JSON.parse(item.params).params) || {};
extra["cls"] = "historylist"; extra["cls"] = "historylist";

Loading…
Cancel
Save