From 4f842fe44772ddda2d9607ffaff30f99c2775add Mon Sep 17 00:00:00 2001 From: longm21 <145310263+longm21@users.noreply.github.com> Date: Sat, 23 Sep 2023 23:04:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BE=AE=E4=BF=A1):=20=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E5=8F=B7=E6=96=87=E7=AB=A0=E4=B8=AD=E9=97=B4=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=20(#292)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.tencent.mm.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/apps/com.tencent.mm.ts b/src/apps/com.tencent.mm.ts index 6b44c1e9..76266f52 100644 --- a/src/apps/com.tencent.mm.ts +++ b/src/apps/com.tencent.mm.ts @@ -165,5 +165,28 @@ export default defineAppConfig({ }, ], }, + { + key: 8, + name: '订阅号文章中间广告', + desc: '自动点击-关闭此广告', + activityIds: + 'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebViewMMUI', + rules: [ + { + key: 1, + matches: + 'View[childCount=1] > @[id="feedbackTagContainer"][visibleToUser=true]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12700183', + 'https://gkd-kit.gitee.io/import/12701503', // 事件完成后,采用[childCount=1]进行限定,防止频繁触发规则 + ], + }, + { + key: 2, + matches: 'TextView[id="closeBtn"][text="关闭此广告"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12700191', + }, + ], + }, ], });