mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:57:48 +01:00
Fix-update Barron's (option to disable Googlebot; http error 500)
This commit is contained in:
parent
290f6b78cc
commit
445e07e07d
5 changed files with 8 additions and 2 deletions
|
@ -1070,7 +1070,9 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
var useUserAgentMobile = false;
|
var useUserAgentMobile = false;
|
||||||
var setReferer = 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(['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)) &&
|
||||||
|
!(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
|
// if referer exists, set it to google
|
||||||
requestHeaders = requestHeaders.map(function (requestHeader) {
|
requestHeaders = requestHeaders.map(function (requestHeader) {
|
||||||
if (requestHeader.name === 'Referer') {
|
if (requestHeader.name === 'Referer') {
|
||||||
|
|
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Post-release
|
Post-release
|
||||||
Add Las Provincias (Spain)
|
Add Las Provincias (Spain)
|
||||||
Add Times of India
|
Add Times of India
|
||||||
|
Fix-update Barron's (option to disable Googlebot; http error 500)
|
||||||
Fix-update Crain's Chicago Business
|
Fix-update Crain's Chicago Business
|
||||||
Fix-update Knack.be
|
Fix-update Knack.be
|
||||||
Fix-update LeScienze.it
|
Fix-update LeScienze.it
|
||||||
|
|
|
@ -1610,6 +1610,8 @@ else if (matchDomain('barrons.com')) {
|
||||||
signin_link.text = 'Click';
|
signin_link.text = 'Click';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let barrons_ads = document.querySelectorAll('.barrons-body-ad-placement');
|
||||||
|
removeDOMElement(...barrons_ads);
|
||||||
} else {
|
} else {
|
||||||
let wsj_ads = document.querySelectorAll('.wsj-ad');
|
let wsj_ads = document.querySelectorAll('.wsj-ad');
|
||||||
removeDOMElement(...wsj_ads);
|
removeDOMElement(...wsj_ads);
|
||||||
|
|
|
@ -515,5 +515,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.2.0.6"
|
"version": "2.2.0.7"
|
||||||
}
|
}
|
1
sites.js
1
sites.js
|
@ -315,6 +315,7 @@ var defaultSites =
|
||||||
"* BPC settings": "###",
|
"* BPC settings": "###",
|
||||||
"Show options on update": "#options_on_update",
|
"Show options on update": "#options_on_update",
|
||||||
"Restore opt-in for custom sites (on reload; Chrome-only)": "#options_restore_custom",
|
"Restore opt-in for custom sites (on reload; Chrome-only)": "#options_restore_custom",
|
||||||
|
"Barron's - no Googlebot (http error 500)": "#options_disable_gb_barrons",
|
||||||
"The Wall Street Journal - no Googlebot (http error 500)": "#options_disable_gb_wsj"
|
"The Wall Street Journal - no Googlebot (http error 500)": "#options_disable_gb_wsj"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue