From c4acf49634a13dd800d2d9cdf8950d90ee52d700 Mon Sep 17 00:00:00 2001 From: Ze-Zheng Wu Date: Sun, 3 Sep 2023 21:57:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E8=AF=BB=E4=B9=A6=E7=BD=91=E9=A1=B5=E7=89=88=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.tencent.mm.ts | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/apps/com.tencent.mm.ts b/src/apps/com.tencent.mm.ts index 22241ac3..1d4a8615 100644 --- a/src/apps/com.tencent.mm.ts +++ b/src/apps/com.tencent.mm.ts @@ -2,7 +2,7 @@ import { defineAppConfig } from '../types'; export default defineAppConfig({ id: 'com.tencent.mm', - name: `微信`, + name: '微信', groups: [ { key: 0, @@ -10,32 +10,50 @@ export default defineAppConfig({ desc: '朋友圈信息流广告,点击关闭按钮,确认关闭', activityIds: 'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI', 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: [ - 'TextView[text*=`广告`] + TextView[text=`关闭该广告`]', - 'ImageView - TextView[text=`广告`][id!=null][index=0]', + 'TextView[text*="广告"] + TextView[text="关闭该广告"]', + 'ImageView - TextView[text="广告"][id!=null][index=0]', ], }, { key: 1, name: '电脑微信快捷自动登录', activityIds: '.plugin.webwx.ui.ExtDeviceWXLoginUI', - rules: 'TextView[text=`取消登录`] - Button[text=`登录`]', + rules: 'TextView[text="取消登录"] - Button[text="登录"]', }, { key: 2, name: '浏览器扫码微信登录自动授权', activityIds: ['com.tencent.mm.plugin.webview.ui.tools.SDKOAuthUI'], - rules: 'Button[text=`拒绝`] - Button[text=`允许`]', + rules: 'Button[text="拒绝"] - Button[text="允许"]', }, { key: 3, name: '微信手机第三方APP申请使用', desc: '自动点击同意', rules: [ - 'TextView + TextView[text=`申请使用`]', - 'Button[text=`拒绝`] - Button[text=`允许`]', + 'TextView + TextView[text="申请使用"]', + 'Button[text="拒绝"] - Button[text="允许"]', + ], + }, + { + key: 4, + name: '微信读书网页版扫码登录自动授权', + activityIds: ['com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI'], + rules: [ + { + matches: 'Button[text="登 录"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12506197', + }, + { + matches: [ + '[text="登录成功"]', + '[id="com.tencent.mm:id/g1"][desc="返回"]', + ], + snapshotUrls: 'https://gkd-kit.songe.li/import/12506201', + }, ], }, ],