Files
AIsouler-GKD_subscription/src/apps/com.UCMobile.ts
jiuqianyuan d2753397bf feat: 删除问题quickFind (#2985)
删除开屏规则[id="com.byted.pangle:id/tt_splash_skip_btn"]的quickFind属性。
快照中[id="com.byted.pangle:id/tt_splash_skip_btn"]可快速查找系GKD标识错误。
- https://github.com/gkd-kit/gkd/issues/369
2023-12-11 21:21:01 +08:00

71 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.UCMobile',
name: 'UC浏览器',
groups: [
{
key: -1,
name: '开屏广告',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]',
snapshotUrls: 'https://i.gkd.li/import/13188653',
},
{
quickFind: true,
matches:
'@View[clickable=true] < RelativeLayout <2 FrameLayout < FrameLayout < FrameLayout <4 FrameLayout < [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/import/13197655',
},
],
},
{
key: 0,
name: '信息流广告',
activityIds: 'com.uc.browser.InnerUCMobile',
rules: [
{
key: 0,
matches:
'TextView[text="广告"] +n ImageView[desc="不感兴趣"][visibleToUser=true]',
snapshotUrls: [
'https://i.gkd.li/import/12880737',
'https://i.gkd.li/import/12881751', // 限定 visibleToUser=true尽量减少对正常浏览信息的干扰
],
},
{
preKeys: [0],
key: 1,
matches: '[text^="屏蔽"][text$="广告"]',
snapshotUrls: [
'https://i.gkd.li/import/12880772',
'https://i.gkd.li/import/12881307',
],
},
],
},
{
key: 10,
name: '请求通知权限弹窗',
activityIds: 'com.uc.browser.InnerUCMobile',
matchLauncher: true,
rules: '@ImageView - LinearLayout >n [text="开启消息通知"]',
snapshotUrls: [
'https://i.gkd.li/import/12880812',
'https://i.gkd.li/import/12880802',
],
},
{
key: 11,
name: '请求添加桌面快捷方式权限弹窗',
activityIds: 'com.uc.browser.InnerUCMobile',
rules: '@ImageView + [text^="添加"][text$="到桌面"]',
snapshotUrls: 'https://i.gkd.li/import/12880983',
},
],
});