更新 'SrcJu.js'

Ju
src48597962 2 years ago
parent c58e1befc4
commit 7a4d545e71
  1. 62
      SrcJu.js

@ -641,36 +641,38 @@ function erji() {
cls: "loadlist" cls: "loadlist"
} }
}) })
d.push({ if(stype!="影视"){
title: `““””<b><span style="color: #f47983">样式<small>🎨</small></span></b>`, d.push({
url: $(["text_1","text_2","text_3","flex_button","text_2_left","text_3_left"],2,"选集列表样式").select(() => { title: `““””<b><span style="color: #f47983">样式<small>🎨</small></span></b>`,
let 列表 = findItemsByCls('playlist') || []; url: $(["text_1","text_2","text_3","flex_button","text_2_left","text_3_left"],2,"选集列表样式").select(() => {
if(列表.length==0){ let 列表 = findItemsByCls('playlist') || [];
return 'toast://未获取到列表' if(列表.length==0){
} return 'toast://未获取到列表'
deleteItemByCls('playlist');
let list_col_type = input;
列表.forEach(item => {
item.col_type = list_col_type.replace("_left","");
if(list_col_type.indexOf("_left")>-1){
item.extra.textAlign = 'left';
}else{
delete item.extra.textAlign;
} }
}) deleteItemByCls('playlist');
addItemBefore(getMyVar("listloading","1")=="1"?"listloading":"listloading2", 列表); let list_col_type = input;
setItem('SrcJuList_col_type', input); 列表.forEach(item => {
return 'hiker://empty' item.col_type = list_col_type.replace("_left","");
}), if(list_col_type.indexOf("_left")>-1){
col_type: 'scroll_button', item.extra.textAlign = 'left';
extra: { }else{
cls: "loadlist" delete item.extra.textAlign;
} }
}) })
addItemBefore(getMyVar("listloading","1")=="1"?"listloading":"listloading2", 列表);
setItem('SrcJuList_col_type', input);
return 'hiker://empty'
}),
col_type: 'scroll_button',
extra: {
cls: "loadlist"
}
})
}
if(线路s.length>1){ if(线路s.length>1){
线路s.forEach(it=>{ 线路s.forEach((it,i)=>{
d.push({ d.push({
title: getMyVar("SrcJu_"+surl+"_line")==lineid?`““””<b><span style="color: #AABBFF">`+it+`</span></b>`:it, title: getMyVar("SrcJu_"+surl+"_line")==i?`““””<b><span style="color: #AABBFF">`+it+`</span></b>`:it,
url: $("#noLoading#").lazyRule((surl,lineid) => { url: $("#noLoading#").lazyRule((surl,lineid) => {
let index = getMyVar("SrcJu_"+surl+"_line","0"); let index = getMyVar("SrcJu_"+surl+"_line","0");
if(lineid != index){ if(lineid != index){
@ -678,7 +680,7 @@ function erji() {
refreshPage(false); refreshPage(false);
} }
return 'hiker://empty' return 'hiker://empty'
}, surl, lineid), }, surl, i),
col_type: 'scroll_button', col_type: 'scroll_button',
extra: { extra: {
cls: "loadlist" cls: "loadlist"
@ -776,7 +778,7 @@ function erji() {
url: 列表[i].url, url: 列表[i].url,
cls: "loadlist playlist" cls: "loadlist playlist"
} }
if(stype=="听书"){ if(stype=="听书"||stype=="影视"){
extra.jsLoadingInject = true; extra.jsLoadingInject = true;
let blockRules = ['.m4a', '.mp3', '.gif', '.jpeg', '.jpg', '.ico', '.png', 'hm.baidu.com', '/ads/*.js', 'cnzz.com', '51.la']; let blockRules = ['.m4a', '.mp3', '.gif', '.jpeg', '.jpg', '.ico', '.png', 'hm.baidu.com', '/ads/*.js', 'cnzz.com', '51.la'];
if(details.blockRules && $.type(details.blockRules)=="array"){ if(details.blockRules && $.type(details.blockRules)=="array"){
@ -792,7 +794,7 @@ function erji() {
d.push({ d.push({
title: 列表[i].title.trim(), title: 列表[i].title.trim(),
url: "hiker://empty##" + 列表[i].url + lazy, url: "hiker://empty##" + 列表[i].url + lazy,
col_type: list_col_type.replace("_left",""), col_type: stype!="影视"?list_col_type.replace("_left",""):列表[i].title.trim().length>=10?"text_2":"text_4",
extra: extra extra: extra
}); });
} }

Loading…
Cancel
Save