From 47e99304d06e92306aef8adecd9b799418e1562f Mon Sep 17 00:00:00 2001 From: starknt <1431880400@qq.com> Date: Tue, 26 Mar 2024 01:16:01 +0800 Subject: [PATCH] fix: `#` suffix bilibili home uri --- src/utils/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/main.ts b/src/utils/main.ts index ca349a44..968e8b18 100644 --- a/src/utils/main.ts +++ b/src/utils/main.ts @@ -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) )