mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: # suffix bilibili home uri
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user