mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:17:46 +01:00
Fix-update Bloomberg (overlay)
This commit is contained in:
parent
b5ca60aa6e
commit
3762e8d098
5 changed files with 15 additions and 10 deletions
|
@ -612,7 +612,6 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
});
|
||||
}
|
||||
|
||||
if (!['image', 'font', 'stylesheet'].includes(details.type) || matchUrlDomain('afr.com', details.url)) {
|
||||
if (tabId !== -1) {
|
||||
ext_api.tabs.get(tabId, function (currentTab) {
|
||||
if (isSiteEnabled(currentTab) || medium_custom_domain) {
|
||||
|
@ -645,7 +644,6 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return { requestHeaders: requestHeaders };
|
||||
}, {
|
||||
|
@ -813,4 +811,3 @@ function getParameterByName(name, url) {
|
|||
function stripQueryStringAndHashFromPath(url) {
|
||||
return url.split("?")[0].split("#")[0];
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix-update Bloomberg (overlay)
|
||||
|
||||
* v1.8.9.0 (2020-10-04)
|
||||
Add Hannoversche Allgemeine Zeitung
|
||||
|
|
|
@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
|
|||
var domain;
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['elmundo.es', 'nknews.org', 'nrz.de', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'waz.de', 'wp.de', 'wr.de'];
|
||||
var arr_localstorage_hold = ['elmundo.es', 'nknews.org', 'nrz.de', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk', 'waz.de', 'wp.de', 'wr.de'];
|
||||
if (!matchDomain(arr_localstorage_hold)){
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -233,13 +233,20 @@ else if (matchDomain("firstthings.com")) {
|
|||
|
||||
else if (matchDomain("bloomberg.com")) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const fence = document.querySelector('.fence-body');
|
||||
if (fence){
|
||||
let fence = document.querySelector('.fence-body');
|
||||
if (fence) {
|
||||
fence.classList.remove('fence-body');
|
||||
}
|
||||
});
|
||||
const banner = document.getElementById('paywall-banner');
|
||||
removeDOMElement(banner);
|
||||
let body_overlay = document.querySelector('body[data-paywall-overlay-status="show"]');
|
||||
if (body_overlay)
|
||||
body_overlay.removeAttribute('data-paywall-overlay-status');
|
||||
let noscroll = document.querySelector('body[class*="noScroll"]');
|
||||
if (noscroll)
|
||||
removeClassesByPrefix(noscroll, 'noScroll');
|
||||
let paywall_overlay = document.querySelector('div#graphics-paywall-overlay');
|
||||
let banner = document.getElementById('paywall-banner');
|
||||
removeDOMElement(banner, paywall_overlay);
|
||||
}
|
||||
|
||||
else if (matchDomain("bloombergquint.com")) {
|
||||
|
|
|
@ -318,5 +318,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.8.9.0"
|
||||
"version": "1.8.9.1"
|
||||
}
|
|
@ -40,5 +40,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.8.9.0"
|
||||
"version": "1.8.9.1"
|
||||
}
|
Loading…
Reference in a new issue