fix: # suffix bilibili home uri

This commit is contained in:
starknt
2024-03-26 01:16:01 +08:00
parent 14ce82430a
commit 47e99304d0

View File

@@ -115,7 +115,7 @@ export function delay(ms: number) {
*/
export function isHomePage(): boolean {
if (
/https?:\/\/(www\.)bilibili.com\/?$/.test(location.href)
/https?:\/\/(www\.)bilibili.com\/?#?$/.test(location.href)
|| /https?:\/\/(www\.)bilibili.com\/index\.html$/.test(location.href)
|| /https?:\/\/(www\.)?bilibili.com\/\?spm_id_from=(.)*/.test(location.href)
)