diff --git a/background.js b/background.js index 2525093..9cf1843 100644 --- a/background.js +++ b/background.js @@ -343,7 +343,11 @@ function shouldContainInto (url, tab) { return false; } - let handleUrl = isGoogleURL(url); + let handleUrl = isGoogleURL(url) || (extensionSettings.allowlist.length!=0 && isAllowlistedURL(url)); + + if (handleUrl && extensionSettings.whitelist.length!=0 && isWhitelistedURL(url)) { + handleUrl = false; + } if (handleUrl && extensionSettings.ignore_youtube && isYouTubeURL(url)) { handleUrl = false; @@ -369,14 +373,6 @@ function shouldContainInto (url, tab) { handleUrl = false; } - if (handleUrl && extensionSettings.whitelist.length!=0 && isWhitelistedURL(url)) { - handleUrl = false; - } - - if (!handleUrl && extensionSettings.allowlist.length!=0 && isAllowlistedURL(url)) { - handleUrl = true; - } - if (handleUrl) { if (tab.cookieStoreId !== googleCookieStoreId) { if (tab.cookieStoreId !== "firefox-default" && extensionSettings.dont_override_containers) { diff --git a/options.html b/options.html index bf65ea5..3269e42 100644 --- a/options.html +++ b/options.html @@ -64,20 +64,20 @@

Settings