feat(browser-extension): allow the extension to match skips by more than one wildcard

This commit is contained in:
wanhose 2024-02-24 18:20:31 +01:00
parent 14847cc7ea
commit cf1b0e3091

View File

@ -193,7 +193,7 @@ function fix() {
}
}
if (skips.every((x) => !hostname.match(x.replace(/\*/g, '[^ ]*')))) {
if (skips.every((x) => !hostname.match(x.replaceAll(/\*/g, '[^ ]*')))) {
for (const element of [document.body, document.documentElement]) {
element?.classList.remove(...(data?.classes ?? []));
element?.style.setProperty('position', 'initial', 'important');