|
|
|
@ -1,13 +1,8 @@ |
|
|
|
|
////本代码仅用于个人学习,请勿用于其他作用,下载后请24小时内删除,代码虽然是公开学习的,但请尊重作者,应留下说明
|
|
|
|
|
function SRCSet() { |
|
|
|
|
setPageTitle('聚漫接口 | ♥管理'); |
|
|
|
|
let filepath = "hiker://files/rules/Src/Juman/jiekou.json"; |
|
|
|
|
let datafile = fetch(filepath); |
|
|
|
|
if(datafile != ""){ |
|
|
|
|
eval("var datalist=" + datafile+ ";"); |
|
|
|
|
}else{ |
|
|
|
|
var datalist = []; |
|
|
|
|
} |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJmPublic.js'); |
|
|
|
|
|
|
|
|
|
function manhuaapi(filepath, data) { |
|
|
|
|
addListener("onClose", $.toString(() => { |
|
|
|
|
clearMyVar('manhuaname'); |
|
|
|
@ -118,6 +113,20 @@ function SRCSet() { |
|
|
|
|
setResult(d); |
|
|
|
|
} |
|
|
|
|
var d = []; |
|
|
|
|
let sourcenames = yidatalist.map(it=>{ |
|
|
|
|
return it.name; |
|
|
|
|
}) |
|
|
|
|
d.push({ |
|
|
|
|
title: yijisource?"主页源:"+yijisource:'设置主页源', |
|
|
|
|
url: $(sourcenames,2).select((cfgfile,JMconfig) => { |
|
|
|
|
JMconfig["yijisource"] = input; |
|
|
|
|
writeFile(cfgfile, JSON.stringify(JMconfig)); |
|
|
|
|
refreshPage(false); |
|
|
|
|
return 'toast://主页源已设置为:' + input; |
|
|
|
|
}, cfgfile, JMconfig), |
|
|
|
|
img: "https://lanmeiguojiang.com/tubiao/messy/145.svg", |
|
|
|
|
col_type: "icon_2" |
|
|
|
|
}); |
|
|
|
|
d.push({ |
|
|
|
|
title: '增加', |
|
|
|
|
url: $('hiker://empty#noRecordHistory##noHistory#').rule((filepath, manhuaapi) => { |
|
|
|
|