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