perf(微信): 朋友圈广告

This commit is contained in:
AIsouler
2024-03-21 17:09:34 +08:00
parent c8e5da2a1a
commit 9945d2d82d

View File

@@ -19,18 +19,28 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
name: '点击广告卡片右上角', name: '点击广告卡片右上角',
matches:
'@LinearLayout[clickable=true] > [text="广告" || text="Sponsored" || text="廣告"]',
snapshotUrls: [
'https://i.gkd.li/i/13000395', // text="广告"
'https://i.gkd.li/i/12905837', // text="Sponsored"
'https://i.gkd.li/i/13791200', // text="廣告"
],
},
{
key: 1,
name: '点击广告卡片右上角',
actionCd: 3000, actionCd: 3000,
position: { position: {
left: 'width * 0.0569', left: 'width * 0.0569',
top: 'width * 0.9083', top: 'width * 0.9083',
}, },
excludeMatches:
'@LinearLayout[clickable=true] > [text="广告" || text="Sponsored" || text="廣告"]',
matches: matches:
'@RelativeLayout >5 LinearLayout[childCount=2] > TextView[text!=null] + LinearLayout', '@RelativeLayout >5 LinearLayout[childCount=2] > TextView[text!=null] + LinearLayout',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/i/14476135', 'https://i.gkd.li/i/14476135',
'https://i.gkd.li/i/13000395', // text="广告"
'https://i.gkd.li/i/12905837', // text="Sponsored"
'https://i.gkd.li/i/13791200', // text="廣告"
'https://i.gkd.li/i/14647413', 'https://i.gkd.li/i/14647413',
], ],
}, },
@@ -38,7 +48,7 @@ export default defineAppConfig({
// 预留key // 预留key
// 第二段 // 第二段
{ {
preKeys: [0], preKeys: [0, 1],
key: 25, key: 25,
name: '点击[关闭]', name: '点击[关闭]',
quickFind: true, quickFind: true,
@@ -49,7 +59,7 @@ export default defineAppConfig({
], ],
}, },
{ {
preKeys: [0], preKeys: [0, 1],
key: 26, key: 26,
name: '点击[Close the ad]', name: '点击[Close the ad]',
quickFind: true, quickFind: true,
@@ -57,7 +67,7 @@ export default defineAppConfig({
snapshotUrls: 'https://i.gkd.li/i/14207480', snapshotUrls: 'https://i.gkd.li/i/14207480',
}, },
{ {
preKeys: [0], preKeys: [0, 1],
key: 27, key: 27,
name: '点击[關閉此廣告]', name: '点击[關閉此廣告]',
quickFind: true, quickFind: true,
@@ -65,7 +75,7 @@ export default defineAppConfig({
snapshotUrls: 'https://i.gkd.li/i/13791202', snapshotUrls: 'https://i.gkd.li/i/13791202',
}, },
{ {
preKeys: [0], preKeys: [0, 1],
key: 28, key: 28,
name: '点击[关闭该广告]', name: '点击[关闭该广告]',
quickFind: true, quickFind: true,
@@ -77,7 +87,7 @@ export default defineAppConfig({
], ],
}, },
{ {
preKeys: [0], preKeys: [0, 1],
key: 29, key: 29,
name: '点击[Close the ad]', name: '点击[Close the ad]',
quickFind: true, quickFind: true,