mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: extension not working on https://www.bilibili.com/index.html
This commit is contained in:
@@ -52,6 +52,8 @@ onMessage('get-current-tab', async () => {
|
||||
browser.tabs.onUpdated.addListener((tabId: number, changInfo: Tabs.OnUpdatedChangeInfoType, tab: Tabs.Tab) => {
|
||||
if (
|
||||
/https?:\/\/bilibili.com\/?$/.test(`${tab.url}`)
|
||||
|| /https?:\/\/bilibili.com\/index.html\/?$/.test(`${tab.url}`)
|
||||
|| /https?:\/\/www.bilibili.com\/index.html\/?$/.test(`${tab.url}`)
|
||||
|| /https?:\/\/www.bilibili.com\/?$/.test(`${tab.url}`)
|
||||
|| /https?:\/\/bilibili.com\/\?spm_id_from=.*/.test(`${tab.url}`)
|
||||
|| /https?:\/\/www.bilibili.com\/\?spm_id_from=(.)*/.test(`${tab.url}`)
|
||||
|
||||
Reference in New Issue
Block a user