mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add bangumi url filter
This commit is contained in:
parent
7e2a3d26cc
commit
d4b01c23f4
@ -38,7 +38,8 @@ export const init = async () => {
|
||||
if (
|
||||
unsafeWindow.bangumi_area_limit_hack &&
|
||||
coreApis.settings.getComponentSettings<{ disableOnBalh: boolean }>('compatibilities').options
|
||||
.disableOnBalh
|
||||
.disableOnBalh &&
|
||||
coreApis.utils.urls.bangumiUrls.some(url => coreApis.utils.matchUrlPattern(url))
|
||||
) {
|
||||
console.log('BALH detected, Bilibili Evolved is disabled.')
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user