From 943d957a101f5b10e8b2cacac79638d39a82f093 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Fri, 8 Nov 2024 18:50:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9):=20?= =?UTF-8?q?=E5=88=86=E6=AE=B5=E5=B9=BF=E5=91=8A-=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E4=B8=8B=E6=96=B9=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=20(#477)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/tv.danmaku.bili.ts | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/apps/tv.danmaku.bili.ts b/src/apps/tv.danmaku.bili.ts index bdbb31dc..17dbced5 100644 --- a/src/apps/tv.danmaku.bili.ts +++ b/src/apps/tv.danmaku.bili.ts @@ -105,7 +105,6 @@ export default defineGkdApp({ }, ], }, - // key = 5已弃用 { key: 6, name: '更新提示', @@ -343,5 +342,36 @@ export default defineGkdApp({ }, ], }, + { + key: 15, + name: '分段广告-视频详情页下方推广', + desc: '关闭[广告/推广/直播]', + fastQuery: true, + activityIds: 'com.bilibili.ship.theseus.detail.UnitedBizDetailsActivity', + rules: [ + { + key: 0, + matches: + '@[vid="more"] -(3,5) [vid="ad_desc" || vid="live_lottie_layout"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/219c40c4-debf-40d8-889a-7eb39c87126c', + snapshotUrls: [ + 'https://i.gkd.li/i/17675629', + 'https://i.gkd.li/i/17675894', + ], + }, + { + preKeys: [0], + key: 1, + matches: + '@[clickable=true] > [text="不感兴趣" || text="相似内容过多"]', + exampleUrls: 'https://e.gkd.li/23937c2d-379c-4fb5-aaee-7295bcf0afca', + snapshotUrls: [ + 'https://i.gkd.li/i/17676025', + 'https://i.gkd.li/i/17676149', + 'https://i.gkd.li/i/17677147', + ], + }, + ], + }, ], });