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