This commit is contained in:
Hakadao
2024-03-27 23:03:54 +08:00

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)
)