From 663eae99e2b537042c26985d1a81bb8d36f70244 Mon Sep 17 00:00:00 2001 From: cjy0812 Date: Tue, 5 May 2026 05:26:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20YouTube=20=E5=85=A8=E5=B1=8F=E5=B9=BF?= =?UTF-8?q?=E5=91=8A-Shorts-=E8=B5=9E=E5=8A=A9=E5=95=86=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.google.android.youtube.ts | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/apps/com.google.android.youtube.ts b/src/apps/com.google.android.youtube.ts index 2ab12db3..4ceb75a0 100644 --- a/src/apps/com.google.android.youtube.ts +++ b/src/apps/com.google.android.youtube.ts @@ -278,5 +278,33 @@ export default defineGkdApp({ }, ], }, + { + key: 13, + name: '全屏广告-Shorts-赞助商广告', + desc: '[赞助商Ad]视频自动划掉', + rules: [ + { + fastQuery: true, + activityIds: + 'com.google.android.apps.youtube.app.watchwhile.MainActivity', + matches: + '[text="赞助商广告"] <<3 [desc$="广告"] <<2 [childCount<=2] <2 * <<3 [vid="reel_player_delegated_overlay"]', + action: 'swipe', + swipeArg: { + start: { + left: 'width * 0.5', + top: 'width * 1.5', + }, + end: { + left: 'width * 0.6', + top: 'width * 1.0', + }, + duration: 114, + }, + snapshotUrls: 'https://i.gkd.li/i/27376863', + exampleUrls: 'https://e.gkd.li/a144a709-4fa2-492a-9776-a78a1e45b1e4', + }, + ], + }, ], });