mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-22 01:35:32 +08:00
* feat(youtube): matchLauncher * Update com.google.android.youtube.ts * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.google.android.youtube',
|
|
name: 'youtube',
|
|
groups: [
|
|
{
|
|
key: 0,
|
|
name: '视频播放-跳过广告',
|
|
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: '视频播放-赞助商广告',
|
|
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: '首页-会员广告',
|
|
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',
|
|
},
|
|
],
|
|
});
|