feat(今日头条): 竖版视频广告-规则优化 (#1452)

* feat(今日头条): 竖版视频广告

* feat(今日头条): 竖版视频广告

* feat(今日头条): 竖屏视频广告-规则优化

---------

Co-authored-by: shanlan <hi@gobyte.cn>
Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
shanlanCoding 2023-10-28 22:36:31 +08:00 committed by GitHub
parent f05dcb8d4e
commit 3148daac69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,14 @@ export default defineAppConfig({
desc: '检测到广告时,点击右上角[更多]图标按钮,出现菜单,点击不感兴趣',
activityIds: 'com.ss.android.ugc.detail.activity.TikTokActivity',
rules: [
{
key: -1,
preKeys: [0, 1, 2, 3],
name: '点击不感兴趣',
matches:
'@LinearLayout[clickable=true] > RelativeLayout + TextView[text="不感兴趣"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12679277',
},
{
key: 0,
name: '点击右上角[更多]图标按钮',
@ -85,11 +93,18 @@ export default defineAppConfig({
snapshotUrls: ['https://gkd-kit.gitee.io/import/12733281'],
},
{
preKeys: [0, 1],
name: '点击不感兴趣',
key: 2,
name: '第二种广告界面;点击右上角[更多]图标按钮',
matches:
'@LinearLayout[clickable=true] > RelativeLayout + TextView[text="不感兴趣"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12679277',
'@ImageView[clickable=true][desc="更多"] <n RelativeLayout -2 RelativeLayout >n TextView[text$="广告"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/13185633'],
},
{
key: 3,
name: '第三种广告界面;点击右上角[更多]图标按钮',
matches:
'@ImageView[clickable=true][desc="更多"] <n RelativeLayout +2 LinearLayout > TextView[text$="广告"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/13186082'],
},
],
},