mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix-update Gannett Group (identify on xhr only)
This commit is contained in:
parent
364c07249e
commit
e788fa8f97
@ -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)) {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user