This commit is contained in:
Hakadao
2025-01-26 06:29:57 +08:00
parent 91840f6f06
commit 138e2f99c5
2 changed files with 5 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ function isSupportedPages(): boolean {
// homepage
isHomePage()
// popular page https://www.bilibili.com/v/popular/all
|| /https?:\/\/(?:www\.)?bilibili\.com\/v\/popular\/all.*/.test(currentUrl)
// video page
|| /https?:\/\/(?:www\.)?bilibili\.com\/(?:video|list)\/.*/.test(currentUrl)
// anime playback & movie page

View File

@@ -12,6 +12,7 @@ import { useSettingsStore } from '~/stores/settingsStore'
import { isHomePage, isInIframe, isVideoOrBangumiPage, openLinkToNewTab, queryDomUntilFound, scrollToTop } from '~/utils/main'
import emitter from '~/utils/mitt'
import { isSupportedIframePages } from '..'
import { setupNecessarySettingsWatchers } from './necessarySettingsWatchers'
const mainStore = useMainStore()
@@ -125,7 +126,7 @@ watch(
// Remove the original Bilibili top bar when using original bilibili page to avoid two top bars showing
const biliHeader = document.querySelector('.bili-header') as HTMLElement | null
if (biliHeader) {
if (biliHeader && isSupportedIframePages()) {
if (settingsStore.getDockItemIsUseOriginalBiliPage(activatedPage.value) && !isInIframe()) {
biliHeader.style.visibility = 'hidden'
}