From 81cc4b599a3aa77eb0f0a0a63fa2787cedc0d4ad Mon Sep 17 00:00:00 2001 From: aisouler Date: Thu, 1 Feb 2024 18:40:04 +0800 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 530293feb86f0f73b5370f55d29a61f14dc7c333 Author: github-actions[bot] Date: Fri Jan 19 14:03:56 2024 +0000 chore(actions): check_format_lint commit d0c0d9c2c8829ad5d28bf103dcbbb00df9e4a92f Author: aisouler Date: Fri Jan 19 22:03:18 2024 +0800 feat:优化规则 commit c0275deb8315442429cfb1b723754f05d5ea5935 Author: github-actions[bot] Date: Wed Jan 17 14:30:36 2024 +0000 chore(actions): check_format_lint commit d60c00c80f0a09d3c3fe6bc5be298480a12faaf2 Author: aisouler Date: Wed Jan 17 22:29:56 2024 +0800 feat(今日头条):视频广告(优化规则,提高通用性) --- src/apps/com.ss.android.article.news.ts | 37 ++++++------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/src/apps/com.ss.android.article.news.ts b/src/apps/com.ss.android.article.news.ts index e55d6005..dcb4521e 100644 --- a/src/apps/com.ss.android.article.news.ts +++ b/src/apps/com.ss.android.article.news.ts @@ -58,13 +58,13 @@ export default defineAppConfig({ { enable: false, key: 11, - name: '竖屏视频广告', - desc: '检测到广告时,点击右上角[更多]图标按钮,出现菜单,点击不感兴趣', + name: '全屏广告-竖屏视频广告', + desc: '点击右上角[更多]图标按钮,点击不感兴趣', activityIds: 'com.ss.android.ugc.detail.activity.TikTokActivity', rules: [ { key: -1, - preKeys: [0, 1, 2, 3], + preKeys: 0, actionCd: 35000, //APP更新后点击不感兴趣不会跳过当前视频了,所以需要冷却一下等下一次重新跳过广告视频 name: '点击不感兴趣', matches: @@ -74,36 +74,18 @@ export default defineAppConfig({ { key: 0, name: '点击右上角[更多]图标按钮', - matches: - '@ImageView[clickable=true][desc="更多"] 4 LynxFlattenUI[text="头条优惠券无门槛全平台通用"]', + matches: 'ImageView[clickable=true][desc="更多"]', snapshotUrls: [ 'https://i.gkd.li/import/12679280', 'https://i.gkd.li/import/12733282', 'https://i.gkd.li/import/12763251', 'https://i.gkd.li/import/12763252', + 'https://i.gkd.li/import/12733281', + 'https://i.gkd.li/import/13185633', + 'https://i.gkd.li/import/13186082', + 'https://i.gkd.li/import/13930050', ], }, - { - key: 1, - name: '点击右上角[更多]图标按钮-抖音直播', - matches: - '@ImageView[clickable=true][desc="更多"] <4 RelativeLayout -2 RelativeLayout >4 LinearLayout[childCount=3] > ScrollView[childCount=1] > TextView[text$="广告"][clickable=true]', - snapshotUrls: ['https://i.gkd.li/import/12733281'], - }, - { - key: 2, - name: '第二种广告界面;点击右上角[更多]图标按钮', - matches: - '@ImageView[clickable=true][desc="更多"] n TextView[text$="广告"]', - snapshotUrls: ['https://i.gkd.li/import/13185633'], - }, - { - key: 3, - name: '第三种广告界面;点击右上角[更多]图标按钮', - matches: - '@ImageView[clickable=true][desc="更多"] TextView[text$="广告"]', - snapshotUrls: ['https://i.gkd.li/import/13186082'], - }, ], }, { @@ -197,8 +179,7 @@ export default defineAppConfig({ rules: [ { activityIds: 'com.ss.android.article.news.activity.MainActivity', - matches: - '@FlattenUIImage[clickable=true] FlattenUIImage[index=7]', snapshotUrls: 'https://i.gkd.li/import/13828331', }, ],