feat(开屏广告): 开屏广告-规则优化 (#933)

This commit is contained in:
二刺螈 2023-10-11 23:17:15 +08:00
parent d73bab27bc
commit ed9e20ea34

View File

@ -8,6 +8,7 @@ export default defineAppConfig({
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
desc: '数字倒计时广告,圆形倒计时广告', desc: '数字倒计时广告,圆形倒计时广告',
quickFind: true,
activityIds: [ activityIds: [
'com.baidu.tieba.tblauncher.MainTabActivity', 'com.baidu.tieba.tblauncher.MainTabActivity',
'com.baidu.tieba.pb.pb.main.PbActivity', 'com.baidu.tieba.pb.pb.main.PbActivity',
@ -21,13 +22,18 @@ export default defineAppConfig({
{ key: 1, matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]' }, // 需要补充快照 { key: 1, matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]' }, // 需要补充快照
{ {
key: 2, key: 2,
matches: 'TextView[text*="广告"] - TextView[text^="跳过"]', matches:
snapshotUrls: 'https://gkd-kit.songe.li/import/12775906', 'TextView[text*="广告"||text.length=1] - TextView[text^="跳过"][text.length=5||text.length=2]',
snapshotUrls: [
'https://gkd-kit.songe.li/import/12775906',
'https://gkd-kit.gitee.io/import/12566191',
],
}, },
{ {
key: 3, key: 3,
matches: '@TextView[text="跳过"] + TextView[text.length=1]', matches:
snapshotUrls: ['https://gkd-kit.gitee.io/import/12566191'], '@FrameLayout[childCount=1][clickable=true][id!=null] > TextView[text="跳过"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12870916',
}, },
], ],
}, },