diff --git a/background.js b/background.js index ea2eb8f..b60221f 100755 --- a/background.js +++ b/background.js @@ -839,7 +839,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { header_referer = details.initiator; // remove cookies for sites medium platform (custom domains) - var medium_custom_domain = (matchUrlDomain('cdn-client.medium.com', details.url) && !matchUrlDomain(['medium.com', 'towardsdatascience.com'], header_referer) && enabledSites.includes('###_medium_custom')); + var medium_custom_domain = (matchUrlDomain('cdn-client.medium.com', details.url) && ['script'].includes(details.type) && !matchUrlDomain(['medium.com', 'towardsdatascience.com'], header_referer) && enabledSites.includes('###_medium_custom')); if (medium_custom_domain) { let mc_domain = urlHost(header_referer); if (!use_twitter_referer.includes(mc_domain)) { @@ -851,7 +851,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { } // set googlebot-useragent for Gannett sites - var usa_gannett_domain = (matchUrlDomain('gannett-cdn.com', details.url) && !matchUrlDomain(['usatoday.com'], header_referer) && enabledSites.includes('###_usa_gannett')); + var usa_gannett_domain = (matchUrlDomain('gannett-cdn.com', details.url) && ['xmlhttprequest'].includes(details.type) && !matchUrlDomain(['usatoday.com'], header_referer) && enabledSites.includes('###_usa_gannett')); if (usa_gannett_domain) { let gn_domain = urlHost(header_referer); if (!use_google_bot.includes(gn_domain)) { diff --git a/changelog.txt b/changelog.txt index a097566..b5c5d81 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add Newsday (local USA) +Fix-update Gannett Group (identify on xhr only) Fix-update Gazet van Antwerpen * v2.1.1.0 (2021-03-07)