From 00cef87f8038c893df4a3609a3a1cd250ac4001d Mon Sep 17 00:00:00 2001 From: AIsouler Date: Wed, 13 Nov 2024 15:10:07 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E8=BF=85=E9=9B=B7):=20=E5=B1=80=E9=83=A8?= =?UTF-8?q?=E5=B9=BF=E5=91=8A-=E5=8D=A1=E7=89=87=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/appDeprecatedKeys.ts | 6 +++++- src/apps/com.xunlei.downloadprovider.ts | 18 +++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/appDeprecatedKeys.ts b/src/appDeprecatedKeys.ts index fa0be8b9..3e4c364f 100644 --- a/src/appDeprecatedKeys.ts +++ b/src/appDeprecatedKeys.ts @@ -487,7 +487,11 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [ name: '腾讯视频', deprecatedKeys: [5, 19], }, - { id: 'com.xunlei.downloadprovider', name: '迅雷', deprecatedKeys: [11] }, + { + id: 'com.xunlei.downloadprovider', + name: '迅雷', + deprecatedKeys: [5, 11], + }, { id: 'com.xyhui', name: 'PU口袋校园', diff --git a/src/apps/com.xunlei.downloadprovider.ts b/src/apps/com.xunlei.downloadprovider.ts index 32397044..e756778e 100644 --- a/src/apps/com.xunlei.downloadprovider.ts +++ b/src/apps/com.xunlei.downloadprovider.ts @@ -255,15 +255,6 @@ export default defineGkdApp({ }, ], }, - { - key: 5, - name: '局部广告-搜索页面顶部广告', - fastQuery: true, - activityIds: - 'com.xunlei.downloadprovider.search.ui.search.SearchOperateActivity', - rules: '[id="com.xunlei.downloadprovider:id/search_banner_ad_close"]', - snapshotUrls: 'https://i.gkd.li/i/12882892', - }, { key: 6, name: '更新提示', @@ -333,6 +324,7 @@ export default defineGkdApp({ desc: '点击关闭', rules: [ { + key: 0, fastQuery: true, activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', matches: @@ -344,6 +336,14 @@ export default defineGkdApp({ 'https://i.gkd.li/i/15048357', ], }, + { + key: 1, + fastQuery: true, + activityIds: '.search.ui.search.SearchOperateActivity', + matches: '[vid="search_banner_ad_close"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/d9e25fc3-249f-4fb9-8606-606ed0c9c893', + snapshotUrls: 'https://i.gkd.li/i/17725350', + }, ], }, {