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', + }, + ], + }, ], });