From 439386f0906c6099f6e3107d697dc6c4f4387ae0 Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 28 Mar 2019 13:33:58 +0800 Subject: [PATCH] Breaking: make exclude-by-domain command exclude sub-domain --- popup/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/popup.js b/popup/popup.js index 4201e90d..df7d0427 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -361,7 +361,7 @@ function styleExcluded({exclusions}, type) { function getExcludeRule(type) { const u = new URL(tabURL); if (type === 'domain') { - return u.origin + '/*'; + return u.protocol + '//*.' + u.host + '/*'; } return escapeGlob(u.origin + u.pathname) + '*'; }