Improve exclude rule matching
This commit is contained in:
parent
edce348050
commit
642db1c680
|
@ -359,9 +359,9 @@ function styleExcluded({exclusions}, type) {
|
|||
|
||||
function getExcludeRule(type) {
|
||||
if (type === 'domain') {
|
||||
return new URL(tabURL).origin + '/*';
|
||||
return new URL(tabURL).origin + '*';
|
||||
}
|
||||
return tabURL + '*';
|
||||
return tabURL.split(/#|\?/)[0].replace(/\/$/, '') + '*';
|
||||
}
|
||||
|
||||
Object.assign(handleEvent, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user