feat(今日头条): 开屏广告,更新弹窗,通知权限弹窗 - 规则优化 (#753)

* feat(今日头条): 更新弹窗-规则优化

【更新弹窗】- 规则优化

* 请求通知权限弹窗-规则优化

* chore(actions): check_format_lint

* 格式更正

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
jiuqianyuan
2023-10-08 23:27:26 +08:00
committed by GitHub
parent 653388e63e
commit aeb1d980ea

View File

@@ -7,13 +7,17 @@ export default defineAppConfig({
{ {
key: 0, key: 0,
name: '开屏广告', name: '开屏广告',
activityIds: ['com.ss.android.article.news.activity.MainActivity'], activityIds: [
'com.ss.android.article.news.activity.MainActivity',
'com.bytedance.ugc.UgcDetailInfoActivity',
],
rules: [ rules: [
{ {
matches: '[childCount=1] > [text="跳过广告"]', matches: '[childCount=1] > [text="跳过广告"]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12684954', 'https://gkd-kit.gitee.io/import/12684954',
'https://gkd-kit.gitee.io/import/12754759', 'https://gkd-kit.gitee.io/import/12754759',
'https://gkd-kit.gitee.io/import/12840189',
], ],
}, },
], ],
@@ -21,11 +25,17 @@ export default defineAppConfig({
{ {
key: 1, key: 1,
name: '更新弹窗', name: '更新弹窗',
activityIds: ['com.ss.android.mine.BaseSettingActivity'], activityIds: [
'com.ss.android.mine.BaseSettingActivity',
'com.miui.home.launcher.Launcher',
],
rules: [ rules: [
{ {
matches: '[text="升级版本"] + [desc="关闭"][clickable=true]', matches: '[text="升级版本"] +n [desc="关闭"][clickable=true]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12685000'], snapshotUrls: [
'https://gkd-kit.gitee.io/import/12685000',
'https://gkd-kit.gitee.io/import/12840104',
],
}, },
], ],
}, },
@@ -39,6 +49,11 @@ export default defineAppConfig({
matches: '[text^="开启通知"] + LinearLayout > [text="暂不开启"]', matches: '[text^="开启通知"] + LinearLayout > [text="暂不开启"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12706699'], snapshotUrls: ['https://gkd-kit.gitee.io/import/12706699'],
}, },
{
matches:
'[text^="开启通知"] < LinearLayout +2 ImageView[desc="关闭"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12840217'],
},
], ],
}, },
{ {