From 17ef4be09cf8feb59a0eab94e5e61df69167c9c6 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 1 Sep 2024 15:55:54 +0800 Subject: [PATCH] fix(home-page): banner shaking issue when using the original bilibili homepage --- src/contentScripts/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index 8f753bdf..59cbb684 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -117,7 +117,7 @@ if (settings.value.adaptToOtherPageStyles && isHomePage()) { // see: https://github.com/BewlyBewly/BewlyBewly/issues/967 let removeOriginalTopBar: HTMLStyleElement | null = null if (!settings.value.useOriginalBilibiliTopBar && isSupportedPages()) - removeOriginalTopBar = injectCSS(`.bili-header { display: none !important; }`) + removeOriginalTopBar = injectCSS(`.bili-header { visibility: hidden !important; }`) async function onDOMLoaded() { let originalTopBar: HTMLElement | null = null @@ -144,7 +144,7 @@ async function onDOMLoaded() { if (isSupportedPages()) { // Then inject the app - if (isHomePage()) { + if (isHomePage() && !settings.value.useOriginalBilibiliHomepage) { injectApp() } else {