feat(迅雷): 应用内广告弹窗-规则优化,下载页面-广告卡片-规则优化 (#1011)

* feat(迅雷)

* feat 应用内广告弹窗

* feat 视频详情页广告(完善规则)

* feat 搜索页面-顶部banner广告

* feat 会员续费广告(完善规则)

* chore 传输界面-广告弹窗(删除冗余字段)

* feat 应用内广告弹窗(完善规则)

* feat(迅雷): 规则优化

* feat 应用内广告弹窗(优化规则)

* feat 下载页面-广告卡片(完善规则)

---------

Co-authored-by: 二刺螈 <i@songe.li>
This commit is contained in:
Kun Jinkao 2023-10-14 01:33:46 +08:00 committed by GitHub
parent 9b05e1c73b
commit ea0ea42958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',