diff --git a/popup/popup.js b/popup/popup.js index 64b04f68..62fa4f60 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -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, {