Fix-update WaPo (comments)
This commit is contained in:
parent
6946656344
commit
4888f94432
@ -396,7 +396,6 @@ var blockedRegexes = {
|
||||
'variety.com': /cdn\.cxense\.com\//,
|
||||
'velonews.com': /\.velonews\.com\/.+\/scripts\/contentGate.+\.js/,
|
||||
'venturebeat.com': /\.wallkit\.net\/js\//,
|
||||
'washingtonpost.com': /\.washingtonpost\.com\/.+\/pwapi-proxy\.min\.js/,
|
||||
'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js|cdn\.cxense\.com\/)/
|
||||
};
|
||||
|
||||
@ -1136,9 +1135,10 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
var useUserAgentMobile = false;
|
||||
var setReferer = false;
|
||||
|
||||
if (matchUrlDomain(change_headers, details.url) && (['main_frame', 'sub_frame', 'xmlhttprequest'].includes(details.type) || matchUrlDomain(['thetimes.co.uk'], details.url)) &&
|
||||
!(matchUrlDomain(['barrons.com'], details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
|
||||
!(matchUrlDomain(['wsj.com'], details.url) && enabledSites.includes('#options_disable_gb_wsj'))) {
|
||||
if (matchUrlDomain(change_headers, details.url) && (['main_frame', 'sub_frame', 'xmlhttprequest'].includes(details.type) || matchUrlDomain('thetimes.co.uk', details.url)) &&
|
||||
!(details.url.includes('.washingtonpost.com/talk/api/') && ['xmlhttprequest'].includes(details.type)) &&
|
||||
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
|
||||
!(matchUrlDomain('wsj.com', details.url) && enabledSites.includes('#options_disable_gb_wsj'))) {
|
||||
// if referer exists, set it to google
|
||||
requestHeaders = requestHeaders.map(function (requestHeader) {
|
||||
if (requestHeader.name === 'Referer') {
|
||||
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
Post-release
|
||||
Add Hindustan Times (India)
|
||||
Fix-update GElocal.it (social)
|
||||
Fix-update WaPo (comments)
|
||||
|
||||
* v2.2.2.0 (2021-05-23)
|
||||
Add MediaNama (India)
|
||||
|
@ -30,5 +30,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.2.2.1"
|
||||
"version": "2.2.2.2"
|
||||
}
|
@ -506,5 +506,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.2.1"
|
||||
"version": "2.2.2.2"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user