mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: bewlybewly does not work on the "www.bilibili.com/index.html" page
This commit is contained in:
@@ -115,11 +115,9 @@ export function delay(ms: number) {
|
||||
*/
|
||||
export function isHomePage(): boolean {
|
||||
if (
|
||||
/https?:\/\/bilibili.com\/?$/.test(location.href)
|
||||
|| /https?:\/\/www.bilibili.com\/?$/.test(location.href)
|
||||
|| /https?:\/\/www.bilibili.com\/index.html$/.test(location.href)
|
||||
|| /https?:\/\/bilibili.com\/\?spm_id_from=.*/.test(location.href)
|
||||
|| /https?:\/\/www.bilibili.com\/\?spm_id_from=(.)*/.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)
|
||||
)
|
||||
return true
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user