From f96dde634bbed23d125175683eb3f48224357194 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 22 Jul 2022 03:30:50 +0000 Subject: [PATCH] update SrcJySet.js. --- SrcJySet.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SrcJySet.js b/SrcJySet.js index f5799d01..60c8ed13 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -409,6 +409,22 @@ function SRCSet() { }, JYconfig, cfgfile), col_type: "text_3" }); + d.push({ + title: JYconfig['sousuoms']!=2?'视界搜索':'聚合搜索', + url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { + if(JYconfig['sousuoms'] == 2){ + JYconfig['sousuoms'] = 1; + var sm = "视界搜索改为调用原始搜索搜狗"; + }else{ + JYconfig['sousuoms'] = 2; + var sm = "视界搜索改为调用聚影接口聚合搜索"; + } + writeFile(cfgfile, JSON.stringify(JYconfig)); + refreshPage(false); + return 'toast://' + sm + ',返回主页后刷新生效'; + }, JYconfig, cfgfile), + col_type: "text_3" + }); d.push({ title: '其他资源', col_type: "rich_text"