Improve exclude rule matching

This commit is contained in:
narcolepticinsomniac 2019-03-08 03:51:22 -05:00 committed by GitHub
parent edce348050
commit 642db1c680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, {