From e2d587189058456540dda55f2fe7712dc4822936 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 14 Mar 2023 22:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyMenu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyMenu.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SrcJyMenu.js b/SrcJyMenu.js index b6ccb9ed..1da69dc7 100644 --- a/SrcJyMenu.js +++ b/SrcJyMenu.js @@ -183,6 +183,22 @@ function lookset(){ }, JYconfig, cfgfile), col_type: "text_2" }); + d.push({ + title: (JYconfig['yundiskLine']==1?getide(1):getide(0))+'云盘搜索', + url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { + if(JYconfig['yundiskLine'] != 1){ + JYconfig['yundiskLine'] = 1; + putMyVar('yundiskLine','1'); + }else{ + JYconfig['yundiskLine'] = 0; + putMyVar('yundiskLine','0'); + } + writeFile(cfgfile, JSON.stringify(JYconfig)); + refreshPage(false); + return 'toast://'+JYconfig['alistLine']?'已开启云盘搜索线路':'已关闭云盘搜索线路'; + }, JYconfig, cfgfile), + col_type: "text_2" + }); d.push({ col_type: "line_blank" });