diff --git a/background.js b/background.js index f531e93a..12e66318 100644 --- a/background.js +++ b/background.js @@ -446,7 +446,7 @@ browser.webRequest.onCompleted.addListener(function(details) { function isSiteEnabled(details) { var isEnabled = enabledSites.some(function(enabledSite) { - var useSite = details.url.indexOf("." + enabledSite) !== -1; + var useSite = (details.url.indexOf("." + enabledSite) !== -1 || details.url.indexOf("/" + enabledSite) !== -1); if (enabledSite in restrictions) { return useSite && details.url.indexOf(restrictions[enabledSite]) !== -1; }