diff --git a/background.js b/background.js index 6b65aa6..774cdce 100644 --- a/background.js +++ b/background.js @@ -841,7 +841,7 @@ function site_switch() { let customSite_title = isCustomSite ? Object.keys(customSites).find(key => customSites[key].domain === isCustomSite) : ''; let site_title = defaultSite_title || customSite_title; let domain = isDefaultSite || isCustomSite; - if (domain) { + if (domain && site_title) { let added_site = []; let removed_site = []; if (enabledSites.includes(domain)) @@ -877,8 +877,7 @@ ext_api.webRequest.onCompleted.addListener(function (details) { domain: domainVar }, function (cookies) { for (let cookie of cookies) { - var cookie_domain = cookie.domain; - var rc_domain = cookie_domain.replace(/^(\.?www\.|\.)/, ''); + var rc_domain = cookie.domain.replace(/^(\.?www\.|\.)/, ''); // hold specific cookie(s) from remove_cookies domains if ((rc_domain in remove_cookies_select_hold) && remove_cookies_select_hold[rc_domain].includes(cookie.name)) { continue; // don't remove specific cookie @@ -938,7 +937,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) { domain: domainVar }, function (cookies) { for (let cookie of cookies) { - var cookie_domain = cookie.domain; + cookie.domain = cookie.domain.replace(/^\./, ''); ext_api.cookies.remove({ url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name diff --git a/changelog.txt b/changelog.txt index 090e3e0..5fa62b2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Fix-update Australian Provincial Newspapers Fix-update Haaretz/TheMarker (Bingbot) Fix-update Telegraph.co.uk (overlay) Fix Chrome-icon for dark/incognito mode (all permitted sites) +Fix clearCookies (Chrome .domain cookies) Fix updateBadge (grouped sites) * v1.9.3.0 (2020-11-01) @@ -13,6 +14,7 @@ Add Deutsche Wirtschafts Nachrichten Add WirtschaftsWoche (Germany) Fix-update Quartz (newsletter) Fix-update Sueddeutsche Zeitung (+ magazine) +Fix-update WSJ (restore Googlebot) Fix updateBadge (custom sites disabled) Icon for dark/incognito mode (Chrome) Save options to storage.local (quota exceeded) diff --git a/manifest.json b/manifest.json index bf9be1b..44fa63b 100644 --- a/manifest.json +++ b/manifest.json @@ -339,5 +339,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.9.3.3" + "version": "1.9.3.4" } \ No newline at end of file diff --git a/optin/opt-in.css b/optin/opt-in.css index 0203d7f..44636a8 100644 --- a/optin/opt-in.css +++ b/optin/opt-in.css @@ -1,5 +1,5 @@ html, body { - width: 20em; + font-size: 100%; padding-left: 0.5em; padding-right: 0.5em; } diff --git a/optin/opt-in.html b/optin/opt-in.html index 04f71ef..341779d 100644 --- a/optin/opt-in.html +++ b/optin/opt-in.html @@ -33,7 +33,7 @@
-