From dd9065c44cb3b5236c6ac4dd15d00d4e75a0fa94 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 7 Oct 2023 22:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 41ab0015..2c6097f2 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -82,25 +82,11 @@ function selectsource(input) { return 'toast://'+runMode+' 主页源已设置为:' + input; }, input, sourcename, cfgfile, Juconfig) } -let sousuoextra = { - id: "sousuopageid", - newWindow: true, - windowId: MY_RULE.title + "搜索页", - longClick: [{ - title: "🔍搜索", - js: $.toString((sousuoextra) => { - sousuoextra.newWindow = true; - updateItem("sousuopageid",{extra:sousuoextra}); - return $("hiker://empty#noRecordHistory##noHistory##fullTheme###fypage").rule(() => { - require(config.依赖); - newsousuopage(); - }) - },sousuoextra) - }] -} + function rulePage(datatype,ispage) { if(datatype=="分类"){ - sousuoextra.newWindow = false; + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuMethod.js'); + delete sousuoextra.newWindow; updateItem("sousuopageid",{extra:sousuoextra}); } return $("hiker://empty#noRecordHistory##noHistory#" + (ispage ? "?page=fypage" : "")).rule((datatype) => {