Fix NzHerald
parent
fda5670c02
commit
d2a293ea28
|
@ -249,6 +249,7 @@ var use_google_bot = use_google_bot_default.slice();
|
||||||
var use_bing_bot_default = [
|
var use_bing_bot_default = [
|
||||||
'haaretz.co.il',
|
'haaretz.co.il',
|
||||||
'haaretz.com',
|
'haaretz.com',
|
||||||
|
'nzherald.co.nz',
|
||||||
'stratfor.com',
|
'stratfor.com',
|
||||||
'themarker.com',
|
'themarker.com',
|
||||||
];
|
];
|
||||||
|
@ -1200,7 +1201,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
|
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
|
||||||
!(matchUrlDomain('wsj.com', details.url) && enabledSites.includes('#options_disable_gb_wsj'));
|
!(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(['theaustralian.com.au', 'thetimes.co.uk'], details.url))) {
|
if (matchUrlDomain(change_headers, details.url) && (!['font', 'image', 'stylesheet'].includes(details.type) || matchUrlDomain(['thetimes.co.uk'], details.url))) {
|
||||||
// if referer exists, set it
|
// if referer exists, set it
|
||||||
requestHeaders = requestHeaders.map(function (requestHeader) {
|
requestHeaders = requestHeaders.map(function (requestHeader) {
|
||||||
if (requestHeader.name === 'Referer') {
|
if (requestHeader.name === 'Referer') {
|
||||||
|
|
|
@ -5,6 +5,7 @@ Post-release
|
||||||
Remove WirtschaftsWoche (obsolete)
|
Remove WirtschaftsWoche (obsolete)
|
||||||
Fix Estadao.com.br
|
Fix Estadao.com.br
|
||||||
Fix Handelsblatt (only non-premium articles)
|
Fix Handelsblatt (only non-premium articles)
|
||||||
|
Fix NzHerald
|
||||||
|
|
||||||
* v2.3.5.0 (2021-08-29)
|
* v2.3.5.0 (2021-08-29)
|
||||||
Add Forbes
|
Add Forbes
|
||||||
|
|
Loading…
Reference in New Issue