From ea0ea42958fab9b9f4a25bbf7b671c58181860e6 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sat, 14 Oct 2023 01:33:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=BF=85=E9=9B=B7):=20=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=86=85=E5=B9=BF=E5=91=8A=E5=BC=B9=E7=AA=97-=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BC=98=E5=8C=96,=E4=B8=8B=E8=BD=BD=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2-=E5=B9=BF=E5=91=8A=E5=8D=A1=E7=89=87-=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BC=98=E5=8C=96=20(#1011)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(迅雷) * feat 应用内广告弹窗 * feat 视频详情页广告(完善规则) * feat 搜索页面-顶部banner广告 * feat 会员续费广告(完善规则) * chore 传输界面-广告弹窗(删除冗余字段) * feat 应用内广告弹窗(完善规则) * feat(迅雷): 规则优化 * feat 应用内广告弹窗(优化规则) * feat 下载页面-广告卡片(完善规则) --------- Co-authored-by: 二刺螈 --- src/apps/com.xunlei.downloadprovider.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/apps/com.xunlei.downloadprovider.ts b/src/apps/com.xunlei.downloadprovider.ts index 0a62d1d1..b95eb11c 100644 --- a/src/apps/com.xunlei.downloadprovider.ts +++ b/src/apps/com.xunlei.downloadprovider.ts @@ -72,11 +72,12 @@ export default defineAppConfig({ key: 0, activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', matchLauncher: true, - matches: '@[text="关闭"] +n * > [text*="广告"]', + matches: '@[text="关闭"] +n * >n [text*="广告"]', snapshotUrls: [ 'https://gkd-kit.songe.li/import/12868648', 'https://gkd-kit.gitee.io/import/12879372', 'https://gkd-kit.songe.li/import/12882366', + 'https://gkd-kit.songe.li/import/12892871', ], }, @@ -121,10 +122,11 @@ export default defineAppConfig({ activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', matchLauncher: true, matches: - '@ImageView[visibleToUser=true] < ViewGroup < ViewGroup +n ViewGroup > [text="广告"]', + 'ImageView < @ViewGroup[visibleToUser=true] < ViewGroup +n ViewGroup > [text="广告"]', snapshotUrls: [ 'https://gkd-kit.songe.li/import/12882199', // n = 1 'https://gkd-kit.songe.li/import/12881911', // n = 2 + 'https://gkd-kit.songe.li/import/12892912', // 点击目标为具备 clickable=true 的 ViewGroup,防止在这个快照中点击到下落的礼物 'https://gkd-kit.songe.li/import/12881976', // 限定 visibleToUser=true,防止在这个快照中误触 ], }, @@ -155,8 +157,14 @@ export default defineAppConfig({ snapshotUrls: 'https://gkd-kit.songe.li/import/12881865', }, { - preKeys: [0], key: 1, + activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', + matches: '[id="com.xunlei.downloadprovider:id/btn_ad_feedback"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12892893', + }, + { + preKeys: [0, 1], + key: 2, activityIds: 'com.xunlei.downloadprovider.download.center.newcenter', matches: '[id="com.xunlei.downloadprovider:id/close_ad"]', snapshotUrls: 'https://gkd-kit.songe.li/import/128818775',