From 2a1a3cfb22d0d5d481f2eedc2dfb590b0b7da2d7 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:04:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(UC=E6=B5=8F=E8=A7=88=E5=99=A8):=20?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B5=81=E5=B9=BF=E5=91=8A-=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BC=98=E5=8C=96,=E9=80=9A=E7=9F=A5=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=BC=B9=E7=AA=97,=E6=A1=8C=E9=9D=A2=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E6=96=B9=E5=BC=8F=E6=9D=83=E9=99=90=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=20=20(#962)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 信息流广告(优化规则) * feat 请求通知权限弹窗 * feat 请求添加桌面快捷方式权限弹窗 --- src/apps/com.UCMobile.ts | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/src/apps/com.UCMobile.ts b/src/apps/com.UCMobile.ts index 6464790c..0b6e9048 100644 --- a/src/apps/com.UCMobile.ts +++ b/src/apps/com.UCMobile.ts @@ -13,12 +13,46 @@ export default defineAppConfig({ }, { key: 0, - name: '推荐页广告', + name: '信息流广告', activityIds: 'com.uc.browser.InnerUCMobile', rules: [ - 'TextView[text=`屏蔽此条广告`]', - 'TextView[text=`广告`] +n ImageView[desc=`不感兴趣`]', + { + key: 0, + matches: + 'TextView[text="广告"] +n ImageView[desc="不感兴趣"][visibleToUser=true]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12880737', + 'https://gkd-kit.songe.li/import/12881751', // 限定 visibleToUser=true,尽量减少对正常浏览信息的干扰 + ], + }, + { + preKeys: [0], + key: 1, + matches: '[text^="屏蔽"][text$="广告"]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12880772', + 'https://gkd-kit.songe.li/import/12881307', + ], + }, ], }, + { + key: 10, + name: '请求通知权限弹窗', + activityIds: 'com.uc.browser.InnerUCMobile', + matchLauncher: true, + rules: '@ImageView - LinearLayout >n [text="开启消息通知"]', + snapshotUrls: [ + 'https://gkd-kit.songe.li/import/12880812', + 'https://gkd-kit.songe.li/import/12880802', + ], + }, + { + key: 11, + name: '请求添加桌面快捷方式权限弹窗', + activityIds: 'com.uc.browser.InnerUCMobile', + rules: '@ImageView + [text^="添加"][text$="到桌面"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12880983', + }, ], });