From eff19811207ec9f87edd93302b60c6325339cfe0 Mon Sep 17 00:00:00 2001 From: walklty <47232102+walklty@users.noreply.github.com> Date: Thu, 19 Oct 2023 00:49:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(youtube):=20=E8=A7=84=E5=88=99=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20(#1207)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(youtube): matchLauncher * Update com.google.android.youtube.ts * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] --- src/apps/com.google.android.youtube.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/apps/com.google.android.youtube.ts b/src/apps/com.google.android.youtube.ts index 4afcc03b..d9b60853 100644 --- a/src/apps/com.google.android.youtube.ts +++ b/src/apps/com.google.android.youtube.ts @@ -7,27 +7,34 @@ export default defineAppConfig({ { key: 0, name: '视频播放-跳过广告', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12565261', activityIds: 'com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity', + matchLauncher: true, + quickFind: true, rules: '[id=`com.google.android.youtube:id/skip_ad_button`]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12565261', + 'https://gkd-kit.gitee.io/import/13024980', // matchLauncher + ], }, { key: 1, name: '视频播放-赞助商广告', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12877346', activityIds: 'com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity', + matchLauncher: true, rules: 'ImageView[desc="更多选项"] + @ImageView[desc="关闭广告面板"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12877346', }, { key: 2, name: '首页-会员广告', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12877357', activityIds: 'com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity', + matchLauncher: true, rules: 'ImageView < @Button < ViewGroup +3 Button[desc*="YouTube Premium"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12877357', }, ], });