fix: cannot adapted another watcher later url (#1286)
Some checks are pending
CI / Test (lts/*, ubuntu-latest) (push) Waiting to run
CI / Test (lts/*, windows-latest) (push) Waiting to run
CI / Test (lts/-1, ubuntu-latest) (push) Waiting to run
CI / Test (lts/-1, windows-latest) (push) Waiting to run

close #1286
This commit is contained in:
Hakadao
2025-01-26 04:16:34 +08:00
parent 33f7fed055
commit 659e859af6
3 changed files with 6 additions and 2 deletions

View File

@@ -691,7 +691,7 @@ defineExpose({
>
<ALink
:class="{ 'white-icon': forceWhiteIcon }"
href="https://www.bilibili.com/watchlater/#/list"
href="https://www.bilibili.com/watchlater/list"
:title="$t('topbar.watch_later')"
type="topBar"
>

View File

@@ -43,6 +43,7 @@ function isSupportedPages(): boolean {
|| /https?:\/\/(?:www\.)?bilibili\.com\/bangumi\/play\/.*/.test(currentUrl)
// watch later playlist
|| /https?:\/\/(?:www\.)?bilibili\.com\/list\/watchlater.*/.test(currentUrl)
|| /https?:\/\/(?:www\.)?bilibili\.com\/watchlater\/list.*/.test(currentUrl)
// favorite playlist
|| /https?:\/\/(?:www\.)?bilibili\.com\/list\/ml.*/.test(currentUrl)
// search page

View File

@@ -39,7 +39,10 @@ async function setupStyles() {
}
// watch later page 稍候再看页
else if (/https?:\/\/(?:www\.)?bilibili\.com\/watchlater\/#\/list.*/.test(currentUrl)) {
else if (
/https?:\/\/(?:www\.)?bilibili\.com\/watchlater\/list.*/.test(currentUrl)
|| /https?:\/\/(?:www\.)?bilibili\.com\/watchlater\/#\/list.*/.test(currentUrl)
) {
await import('./pages/watchLaterPage.scss')
document.documentElement.classList.add('watchLaterPage')
}