From a79c43f4bade5f324fd4d40f4ed2c0b05f4746cd Mon Sep 17 00:00:00 2001 From: adproqwq <101449500+adproqwq@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:43:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BE=AE=E4=BF=A1):=20=E9=9D=92=E5=B0=91?= =?UTF-8?q?=E5=B9=B4=E6=A8=A1=E5=BC=8F=E8=87=AA=E5=8A=A8=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=AF=86=E7=A0=81=EF=BC=88=E8=A1=A5=E5=85=85?= =?UTF-8?q?8033=E7=89=88=E6=9C=AC=E9=80=82=E9=85=8D=EF=BC=89=20(#3076)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(微信): 青少年模式自动点击验证密码(补充8033版本适配) * chore(actions): check_format_lint --------- Co-authored-by: adproqwq <2757917031@qq.com> Co-authored-by: github-actions[bot] --- src/apps/com.tencent.mm.ts | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/apps/com.tencent.mm.ts b/src/apps/com.tencent.mm.ts index 04a97ab3..6869dbe4 100644 --- a/src/apps/com.tencent.mm.ts +++ b/src/apps/com.tencent.mm.ts @@ -452,16 +452,27 @@ export default defineAppConfig({ ], }, { - enable: false, key: 18, name: '青少年模式自动点击验证密码', desc: '点击“验证密码”以申请临时访问', - activityIds: 'com.tencent.mm.plugin.teenmode.ui.AuthorizationRequestUI', actionMaximum: 1, resetMatch: 'activity', matchTime: 10000, - rules: '@LinearLayout[childCount=2] > [text="验证密码"]', - snapshotUrls: 'https://i.gkd.li/import/13588338', + rules: [ + { + key: 0, + activityIds: + 'com.tencent.mm.plugin.teenmode.ui.AuthorizationRequestUI', + matches: '@LinearLayout[childCount=2] > [text="验证密码"]', + snapshotUrls: 'https://i.gkd.li/import/13588338', + }, + { + key: 1, + activityIds: 'com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI', + matches: ['View[text="申请今天临时访问"]', 'View[desc="验证密码"]'], + snapshotUrls: 'https://i.gkd.li/import/13631987', + }, + ], }, ], });