Fix-update Gannett Group (identify on xhr only)

This commit is contained in:
magnolia1234 2021-03-10 07:30:07 +01:00
parent 364c07249e
commit e788fa8f97
2 changed files with 3 additions and 2 deletions

View File

@ -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)) {

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix-update Gannett Group (identify on xhr only)
*v2.1.1.2 (2021-03-09)
Add Newsday (local USA)