From 3148daac69bca727139e21557477e66e5982d847 Mon Sep 17 00:00:00 2001 From: shanlanCoding <44717382+shanlanCoding@users.noreply.github.com> Date: Sat, 28 Oct 2023 22:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=20feat(=E4=BB=8A=E6=97=A5=E5=A4=B4=E6=9D=A1):?= =?UTF-8?q?=20=E7=AB=96=E7=89=88=E8=A7=86=E9=A2=91=E5=B9=BF=E5=91=8A-?= =?UTF-8?q?=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96=20(#1452)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(今日头条): 竖版视频广告 * feat(今日头条): 竖版视频广告 * feat(今日头条): 竖屏视频广告-规则优化 --------- Co-authored-by: shanlan Co-authored-by: lisonge --- src/apps/com.ss.android.article.news.ts | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/apps/com.ss.android.article.news.ts b/src/apps/com.ss.android.article.news.ts index b80f1fb2..53bcf94e 100644 --- a/src/apps/com.ss.android.article.news.ts +++ b/src/apps/com.ss.android.article.news.ts @@ -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 TextView[text$="广告"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/13185633'], + }, + { + key: 3, + name: '第三种广告界面;点击右上角[更多]图标按钮', + matches: + '@ImageView[clickable=true][desc="更多"] TextView[text$="广告"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/13186082'], }, ], },