mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:04:16 +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) {
|
if (tabId !== -1) {
|
||||||
ext_api.tabs.get(tabId, function (currentTab) {
|
ext_api.tabs.get(tabId, function (currentTab) {
|
||||||
if (isSiteEnabled(currentTab) || medium_custom_domain) {
|
if (isSiteEnabled(currentTab) || medium_custom_domain) {
|
||||||
|
@ -645,7 +644,6 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return { requestHeaders: requestHeaders };
|
return { requestHeaders: requestHeaders };
|
||||||
}, {
|
}, {
|
||||||
|
@ -813,4 +811,3 @@ function getParameterByName(name, url) {
|
||||||
function stripQueryStringAndHashFromPath(url) {
|
function stripQueryStringAndHashFromPath(url) {
|
||||||
return url.split("?")[0].split("#")[0];
|
return url.split("?")[0].split("#")[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Changelog Bypass Paywalls Clean - Firefox
|
Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Fix-update Bloomberg (overlay)
|
||||||
|
|
||||||
* v1.8.9.0 (2020-10-04)
|
* v1.8.9.0 (2020-10-04)
|
||||||
Add Hannoversche Allgemeine Zeitung
|
Add Hannoversche Allgemeine Zeitung
|
||||||
|
|
|
@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
|
||||||
var domain;
|
var domain;
|
||||||
|
|
||||||
// clean local storage of sites (with an exemption for hold-list)
|
// 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)){
|
if (!matchDomain(arr_localstorage_hold)){
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
}
|
}
|
||||||
|
@ -233,13 +233,20 @@ else if (matchDomain("firstthings.com")) {
|
||||||
|
|
||||||
else if (matchDomain("bloomberg.com")) {
|
else if (matchDomain("bloomberg.com")) {
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const fence = document.querySelector('.fence-body');
|
let fence = document.querySelector('.fence-body');
|
||||||
if (fence){
|
if (fence) {
|
||||||
fence.classList.remove('fence-body');
|
fence.classList.remove('fence-body');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const banner = document.getElementById('paywall-banner');
|
let body_overlay = document.querySelector('body[data-paywall-overlay-status="show"]');
|
||||||
removeDOMElement(banner);
|
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")) {
|
else if (matchDomain("bloombergquint.com")) {
|
||||||
|
|
|
@ -318,5 +318,5 @@
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking"
|
"webRequestBlocking"
|
||||||
],
|
],
|
||||||
"version": "1.8.9.0"
|
"version": "1.8.9.1"
|
||||||
}
|
}
|
|
@ -40,5 +40,5 @@
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking"
|
"webRequestBlocking"
|
||||||
],
|
],
|
||||||
"version": "1.8.9.0"
|
"version": "1.8.9.1"
|
||||||
}
|
}
|
Loading…
Reference in a new issue