fix(AdaptedStyles): support unadapted articles page style (#846)

* fix(AdaptedStyles): support unadapted articles page style

* remove pcpreview page support

* 更新 index.ts

* 更新 index.ts

* Update index.ts

---------

Co-authored-by: Hakadao <a578457889743@gmail.com>
This commit is contained in:
MidnightCrowing
2024-06-18 16:53:49 +08:00
committed by GitHub
parent fe9f95ef0b
commit b9b7fb9765
6 changed files with 38 additions and 14 deletions

View File

@@ -63,7 +63,8 @@ function isSupportedPages() {
// channel page e.g. tv shows, movie, variety shows, mooc page
|| /https?:\/\/(?:www\.)?bilibili\.com\/(?:tv|movie|variety|mooc|documentary).*/.test(currentUrl)
// article page
|| /https?:\/\/(?:www\.)?bilibili\.com\/read.*/.test(currentUrl)
// www.bilibili.com/read/pcpreview 是专栏浏览页, 因布局问题不做适配 #846
|| /https?:\/\/(?:www\.)?bilibili\.com\/read\/(?!pcpreview).*/.test(currentUrl)
// 404 page
|| /^https?:\/\/(?:www\.)?bilibili\.com\/404.*$/.test(currentUrl)
) {