Fix-update Bloomberg (overlay)

This commit is contained in:
magnolia1234 2020-10-05 16:31:10 +02:00
parent b5ca60aa6e
commit 3762e8d098
5 changed files with 15 additions and 10 deletions

View file

@ -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];
}

View file

@ -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

View file

@ -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")) {

View file

@ -318,5 +318,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.9.0"
"version": "1.8.9.1"
}

View file

@ -40,5 +40,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.9.0"
"version": "1.8.9.1"
}