fix(微信): 朋友圈广告-滑动误触

This commit is contained in:
lisonge
2023-09-19 18:43:14 +08:00
parent 4267b184a2
commit 4acb29f418

View File

@@ -6,20 +6,26 @@ export default defineAppConfig({
groups: [ groups: [
{ {
key: 0, key: 0,
name: '关闭朋友圈广告', name: '朋友圈广告',
desc: '朋友圈信息流广告,点击关闭按钮,确认关闭', desc: '朋友圈信息流广告,点击关闭按钮,确认关闭',
activityIds: 'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI', activityIds: 'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
exampleUrls: [ exampleUrls: [
'https://github.com/gkd-kit/subscription/assets/38517192/c9ae4bba-a748-4755-b5e4-c7ad3d489a79', 'https://github.com/gkd-kit/subscription/assets/38517192/c9ae4bba-a748-4755-b5e4-c7ad3d489a79',
], ],
rules: [ rules: [
'TextView[text*="广告"] + TextView[text="关闭该广告"]', {
'ImageView - TextView[text="广告"][id!=null][index=0]', matches: 'TextView[text*="广告"] + TextView[text="关闭该广告"]',
'[text^="你觉得这条广告怎么样"] + FrameLayout >(2) LinearLayout > [text="关闭该广告"]', // 需要快照
], },
snapshotUrls: [ {
'https://gkd-kit.gitee.io/import/12642588', matches: 'ImageView - TextView[text="广告"][id!=null][index=0]',
'https://gkd-kit.gitee.io/import/12642584', snapshotUrls: ['https://gkd-kit.gitee.io/import/12642588'],
},
{
matches:
'[text^="你觉得这条广告怎么样"] + FrameLayout >2 @LinearLayout[clickable=true] > [text="关闭该广告"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12642584'],
},
], ],
}, },
{ {