From 1e42e31d77d819e04fe9eef16e5f39bad90da398 Mon Sep 17 00:00:00 2001 From: aoguai <34203474+aoguai@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:18:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(WPS):=20=E6=96=87=E6=A1=A3=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=B9=BF=E5=91=8A=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96?= =?UTF-8?q?,=E5=8D=87=E7=BA=A7=E6=8F=90=E7=A4=BA,=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=B9=BF=E5=91=8A,=E8=B7=B3=E8=BF=87=E5=BC=80=E5=90=AFWPS?= =?UTF-8?q?=E4=BA=91=E6=9C=8D=E5=8A=A1=20(#972)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(WPS): 一些规则(gkd-kit#967) - 首页-文档列表广告规则优化 - 升级提示 * feat(WPS): 首页-弹窗广告、开启WPS云服务 close #967 --- src/apps/cn.wps.moffice_eng.ts | 58 ++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/src/apps/cn.wps.moffice_eng.ts b/src/apps/cn.wps.moffice_eng.ts index 02f3a372..6c3cb055 100644 --- a/src/apps/cn.wps.moffice_eng.ts +++ b/src/apps/cn.wps.moffice_eng.ts @@ -22,8 +22,11 @@ export default defineAppConfig({ ], rules: [ { - matches: '[text="关闭当前广告"]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12505365', + matches: '[text="关闭当前广告"||text="不喜欢此广告"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12505365', + 'https://gkd-kit.songe.li/import/12882277', + ], }, { matches: '[id$="/nativeclose"]', @@ -34,5 +37,56 @@ export default defineAppConfig({ }, ], }, + { + key: 2, + name: '首页-弹窗广告', + activityIds: [ + 'cn.wps.moffice.main.AfterLoginActivity', + 'com.android.packageinstaller.permission.ui.GrantPermissionsActivity', + ], + rules: '[id="cn.wps.moffice_eng:id/afterlogin_cancel"]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12882589', + 'https://gkd-kit.songe.li/import/12882712', + ], + }, + { + enable: false, + key: 3, + name: '升级提示', + activityIds: [ + 'com.android.packageinstaller.permission.ui.GrantPermissionsActivity', + 'cn.wps.moffice.main.local.HomeRootActivity', + ], + rules: + '[id="cn.wps.moffice_eng:id/close_new_func_guide_dialog_imageView"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12882371', + }, + { + enable: false, + key: 4, + name: '开启WPS云服务', + desc: '自动点击不开启', + activityIds: [ + 'cn.wps.moffice.main.cloud.roaming.login.core.QingLoginActivity', + 'com.tencent.mm.plugin.webview.ui.tools.SDKOAuthUI', + 'com.tencent.mm.ui.base.w', + ], + rules: [ + { + matches: + '[id="cn.wps.moffice_eng:id/cloud_protocol_dialog_not_start_btn"]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12882536', + 'https://gkd-kit.songe.li/import/12882610', + 'https://gkd-kit.songe.li/import/12882678', + ], + }, + { + matches: '[id="cn.wps.moffice_eng:id/dialog_button_positive"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12882554', + }, + ], + }, ], });