更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent eca78904f1
commit 55d7f96790
  1. 8
      SrcJu.js

@ -111,8 +111,7 @@ function yiji() {
let stype = JSON.parse(params.params).stype; let stype = JSON.parse(params.params).stype;
if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){ if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){
let name = JSON.parse(params.params).name; let name = JSON.parse(params.params).name;
let extraData = it.extraData?JSON.parse(extraData):{}; let extraData = it.extraData?JSON.parse(it.extraData):{};
log(extraData)
let last = extraData.lastChapterStatus?extraData.lastChapterStatus:""; let last = extraData.lastChapterStatus?extraData.lastChapterStatus:"";
let mask = it.lastClick?it.lastClick.split('@@')[0]:""; let mask = it.lastClick?it.lastClick.split('@@')[0]:"";
list.push({ list.push({
@ -188,14 +187,15 @@ function yiji() {
extra: { extra: {
longClick: [{ longClick: [{
title: "切换按钮", title: "切换按钮",
js: $.toString((cfgfile, Juconfig) => { js: $.toString(() => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js');
return $(["书架", "收藏", "历史"], 1).select((cfgfile, Juconfig) => { return $(["书架", "收藏", "历史"], 1).select((cfgfile, Juconfig) => {
Juconfig["btnmenu5"] = input; Juconfig["btnmenu5"] = input;
writeFile(cfgfile, JSON.stringify(Juconfig)); writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false); refreshPage(false);
return 'toast://已切换为' + input; return 'toast://已切换为' + input;
}, cfgfile, Juconfig) }, cfgfile, Juconfig)
}, cfgfile, Juconfig) })
}] }]
} }
}) })

Loading…
Cancel
Save