feat: adapt articles page (WIP)

This commit is contained in:
Hakadao
2024-01-12 00:22:30 +08:00
parent 4831bd3d20
commit 017c1c9d3d
6 changed files with 145 additions and 5 deletions

View File

@@ -57,8 +57,8 @@ function isSupportedPages() {
|| /https?:\/\/www.bilibili.com\/v\/.*/.test(currentUrl)
// anime page & chinese anime page
|| /https?:\/\/www.bilibili.com\/(anime|guochuang).*/.test(currentUrl)
// tv shows, movie, variety shows, mooc page
|| /https?:\/\/(www.)?bilibili.com\/(tv|movie|variety|mooc).*/.test(currentUrl))
// tv shows, movie, variety shows, mooc, article page
|| /https?:\/\/(www.)?bilibili.com\/(tv|movie|variety|mooc|read).*/.test(currentUrl))
return true
else
return false

View File

@@ -48,8 +48,10 @@ const isTopBarFixed = computed(() => {
|| /https?:\/\/(www.)?bilibili.com\/bangumi\/play\/.*/.test(location.href)
// moment page
|| /https?:\/\/t.bilibili.com.*/.test(location.href)
// channel, anime, chinese anime, tv shows, movie, variety shows, mooc page
// channel, anime, chinese anime, tv shows, movie, variety shows, mooc
|| /https?:\/\/(www.)?bilibili.com\/(v|anime|guochuang|tv|movie|variety|mooc).*/.test(location.href)
// articles page
|| /https?:\/\/(www.)?bilibili.com\/read\/home.*/.test(location.href)
)
return true
return false