From a2e292b0e82f87413df24d6be91066f06ccf3a46 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 24 Dec 2023 21:09:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(QQ):=20=E5=A5=BD=E5=8F=8B=E5=8A=A8?= =?UTF-8?q?=E6=80=81-=E5=B9=BF=E5=91=8A=E5=8D=A1=E7=89=87=EF=BC=88?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=A7=84=E5=88=99=EF=BC=89=20(#3403)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.tencent.mobileqq.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/apps/com.tencent.mobileqq.ts b/src/apps/com.tencent.mobileqq.ts index 5a78da49..1b5b65bb 100644 --- a/src/apps/com.tencent.mobileqq.ts +++ b/src/apps/com.tencent.mobileqq.ts @@ -57,23 +57,30 @@ export default defineAppConfig({ enable: false, key: 2, name: '好友动态-广告卡片', - activityIds: [ - 'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity', - 'com.tencent.mobileqq.activity.SplashActivity', - ], rules: [ { key: 0, + activityIds: 'com.tencent.mobileqq.activity.SplashActivity', matches: 'View[desc="广告"] + ImageView[clickable=true]', // 1689050226722 snapshotUrls: 'https://i.gkd.li/import/12847842', }, { preKeys: 0, + key: 1, + activityIds: + 'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity', quickFind: true, - matches: - '@[clickable=true] > ImageView + TextView[text="关闭此条广告"]', + matches: '@[clickable=true] > ImageView + [text="关闭此条广告"]', snapshotUrls: 'https://i.gkd.li/import/12840889', }, + { + preKeys: 0, + key: 2, + activityIds: 'com.tencent.mobileqq.activity.SplashActivity', + quickFind: true, + matches: '@[clickable=true] > * > ImageView + [text="隐藏此条动态"]', + snapshotUrls: 'https://i.gkd.li/import/13761147', + }, ], }, {