feat(YouTube): 全屏广告-会员广告 (#563)

This commit is contained in:
AIsouler
2024-12-05 12:44:23 +08:00
parent de60944468
commit 1c66e5c486
2 changed files with 11 additions and 12 deletions

View File

@@ -787,6 +787,11 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
name: '网易邮箱大师', name: '网易邮箱大师',
deprecatedKeys: [1], deprecatedKeys: [1],
}, },
{
id: 'com.google.android.youtube',
name: 'youtube',
deprecatedKeys: [2],
},
]; ];
const map: Map<string, number[]> = new Map(); const map: Map<string, number[]> = new Map();

View File

@@ -46,26 +46,20 @@ export default defineGkdApp({
}, },
], ],
}, },
{
key: 2,
name: '局部广告-首页会员广告',
activityIds:
'com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity',
rules:
'ImageView < @Button < ViewGroup +3 Button[desc*="YouTube Premium"]',
snapshotUrls: 'https://i.gkd.li/i/12877357',
},
{ {
key: 3, key: 3,
name: '全屏广告-订阅浮窗广告', name: '全屏广告-会员广告',
rules: [ rules: [
{ {
fastQuery: true, fastQuery: true,
activityIds: activityIds:
'com.google.android.apps.youtube.app.watchwhile.MainActivity', 'com.google.android.apps.youtube.app.watchwhile.MainActivity',
matches: matches:
'ViewGroup[desc="免费试用 1 个月"] < * - * > @ViewGroup[visibleToUser=true][text="不用了,谢谢"] <<n [vid="bottom_ui_container"]', // 缺少英文快照 '@[desc="不用了,谢谢" || desc="关闭"][visibleToUser=true] <<n [vid="bottom_ui_container" || vid="custom"]',
snapshotUrls: 'https://i.gkd.li/i/13797512', snapshotUrls: [
'https://i.gkd.li/i/13797512',
'https://i.gkd.li/i/18017075',
],
}, },
], ],
}, },