From 19befb9b9f298e3d0c7bbf251f144b6e69fab8e6 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 21 Oct 2024 00:20:58 +0800 Subject: [PATCH] fix: prevent changing danmaku font in specific case prevent changing the danmaku font when not overriding the original Bilibili style --- src/contentScripts/views/necessarySettingsWatchers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contentScripts/views/necessarySettingsWatchers.ts b/src/contentScripts/views/necessarySettingsWatchers.ts index fbb1743e..14672a08 100644 --- a/src/contentScripts/views/necessarySettingsWatchers.ts +++ b/src/contentScripts/views/necessarySettingsWatchers.ts @@ -87,7 +87,7 @@ export function setupNecessarySettingsWatchers() { if (settings.value.overrideDanmakuFont) { danmakuFontStyleEl = injectCSS(` - .bili-danmaku-x-dm { + .bewly-design .bili-danmaku-x-dm { font-family: var(--bew-font-family, ${fallbackFontFamily}) !important; } `)