diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index 237f66d2..a3254815 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -128,9 +128,11 @@ onMounted(() => { }, 1200) }) - // Force overwrite Bilibili Evolved body tag & html tag background color - document.body.style.setProperty('background-color', 'unset', 'important'); - document.documentElement.style.setProperty('background-color', 'unset', 'important'); + if (isBilibiliHomePage.value) { + // Force overwrite Bilibili Evolved body tag & html tag background color + document.body.style.setProperty('background-color', 'unset', 'important'); + document.documentElement.style.setProperty('background-color', 'unset', 'important'); + } if (mainAppRef.value) { mainAppRef.value.addEventListener('scroll', () => {