From c69344108f523148a8d44cf3b2c1339dbbcc9cbd Mon Sep 17 00:00:00 2001 From: festoney8 Date: Thu, 11 Jul 2024 14:16:57 +0800 Subject: [PATCH] update: video page hide bili guide --- src/rules/video.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rules/video.ts b/src/rules/video.ts index fc5a7f4d..efa93c4a 100644 --- a/src/rules/video.ts +++ b/src/rules/video.ts @@ -604,13 +604,15 @@ if (isPageVideo() || isPagePlaylist() || isPageFestival()) { new CheckboxItem({ itemID: 'video-page-hide-bpx-player-bili-guide-all', description: '隐藏 一键三连', - itemCSS: `.bpx-player-video-area .bili-guide, .bpx-player-video-area .bili-guide-all {display: none !important;}`, + itemCSS: `.bpx-player-video-area :is(.bili-guide-all, .bili-guide, .bili-follow-to-electric, .bili-guide-followed) { + display: none !important; + }`, }), // 隐藏 投票 new CheckboxItem({ itemID: 'video-page-hide-bpx-player-bili-vote', description: '隐藏 投票', - itemCSS: `.bpx-player-video-area .bili-vote, .bpx-player-video-area .bili-cmd-shrink {display: none !important;}`, + itemCSS: `.bpx-player-video-area :is(.bili-vote, .bili-cmd-shrink) {display: none !important;}`, }), // 隐藏 播放效果调查, 默认开启 new CheckboxItem({ @@ -1588,7 +1590,7 @@ if (isPageVideo() || isPagePlaylist()) { description: '禁用 新版评论区灰测 (临时功能)\n评论区功能失效时 开启本项并刷新', enableFunc: async () => { let origValue = unsafeWindow.__INITIAL_STATE__ - if (origValue?.abtest?.comment_next_version) { + if (origValue?.abtest) { origValue.abtest.comment_next_version = 'DEFAULT' } Object.defineProperty(unsafeWindow, '__INITIAL_STATE__', {