feat(大众点评): 开屏广告(优化规则)、弹窗广告 (#2783)

* feat 开屏广告(优化规则)

* feat 弹窗广告
This commit is contained in:
Kun Jinkao 2023-12-03 17:04:50 +08:00 committed by GitHub
parent c40aca69d0
commit 7e0f92099b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,14 +7,12 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
activityIds: [
'com.dianping.v1.NovaMainActivity',
'com.dianping.main.guide.SplashActivity',
],
rules: '[id=`com.dianping.v1:id/new_skip`]',
snapshotUrls: 'https://i.gkd.li/import/12726928', // 对应第二条activityIds
// 缺第一条activityIds对应的快照
// 上面两条activityIds在截快照时交替出现故都放在判定条件里
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: '[text$="跳过"][text.length<=10]',
snapshotUrls: 'https://i.gkd.li/import/12726928',
},
{
key: 1,
@ -44,5 +42,18 @@ export default defineAppConfig({
'[id="com.dianping.v1:id/float_image"] + [id="com.dianping.v1:id/close"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12727366',
},
{
key: 4,
name: '弹窗广告',
rules: [
{
key: 0,
activityIds: 'com.dianping.v1.NovaMainActivity',
quickFind: true,
matches: '[id="com.dianping.v1:id/operate_cross_icon"]',
snapshotUrls: 'https://i.gkd.li/import/13538340',
},
],
},
],
});