From d72c196d49e81bfd90866015e1ed8a4e8aecb0f7 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Mon, 20 Nov 2023 20:46:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=8A=E6=97=A5=E5=A4=B4=E6=9D=A1):=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=A7=82=E7=9C=8B=E5=B9=BF=E5=91=8A=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E3=80=81=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A-?= =?UTF-8?q?=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96=20(#2263)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(今日头条):自动观看广告视频 * chore(actions): check_format_lint * Update com.ss.android.article.news.ts * Update com.ss.android.article.news.ts --------- Co-authored-by: github-actions[bot] close #2260 close #2232 --- src/apps/com.ss.android.article.news.ts | 27 ++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/apps/com.ss.android.article.news.ts b/src/apps/com.ss.android.article.news.ts index 34ed39b7..dfecd014 100644 --- a/src/apps/com.ss.android.article.news.ts +++ b/src/apps/com.ss.android.article.news.ts @@ -13,12 +13,13 @@ export default defineAppConfig({ resetMatch: 'app', rules: [ { - matches: '[childCount=1] > [text="跳过广告"]', + matches: '[text*="跳过"][text.length<=10]', snapshotUrls: [ 'https://i.gkd.li/import/12684954', 'https://i.gkd.li/import/12754759', 'https://i.gkd.li/import/12840189', 'https://i.gkd.li/import/13174224', + 'https://i.gkd.li/import/13402688', ], }, ], @@ -181,5 +182,29 @@ export default defineAppConfig({ }, ], }, + { + enable: false, + key: 14, + name: '自动观看广告视频', + desc: '自动观看广告并等待30s后关闭', + quickFind: true, + rules: [ + { + key: 0, + name: '点击【看视频】', + activityIds: 'com.ss.android.article.news.activity.MainActivity', + matches: + '[id="com.bytedance.novel.api:id/component_ad_dialog_button_video"]', + snapshotUrls: 'https://i.gkd.li/import/13402468', + }, + { + name: '等待30s点击【关闭】', + actionDelay: 30000, + activityIds: 'com.ss.android.excitingvideo.ExcitingVideoActivity', + matches: 'UIText[text="广告"] +n UIText[text="关闭"]', + snapshotUrls: 'https://i.gkd.li/import/13402480', + }, + ], + }, ], });