Merge branch 'master' into feature/remove-medium-footer

This commit is contained in:
Tom 2019-11-10 21:34:01 +02:00 committed by GitHub
commit e0264cfeb4
4 changed files with 10 additions and 0 deletions

View file

@ -8,6 +8,7 @@
[Baltimore Sun](https://www.baltimoresun.com)\
[Barron's](https://www.barrons.com)\
[Bloomberg](https://www.bloomberg.com)\
[Bloomberg Quint]('https://www.bloombergquint.com)\
[Business Insider](https://www.businessinsider.com)\
[Caixin](https://www.caixinglobal.com)\
[Chemical & Engineering News](https://cen.acs.org)\

View file

@ -5,6 +5,7 @@ var defaultSites = {
'Baltimore Sun': 'baltimoresun.com',
'Barron\'s': 'barrons.com',
'Bloomberg': 'bloomberg.com',
'Bloomberg Quint': 'bloombergquint.com',
'Business Insider': 'businessinsider.com',
'Caixin': 'caixinglobal.com',
'Chemical & Engineering News': 'cen.acs.org',
@ -162,6 +163,7 @@ const remove_cookies = [
'vn.nl',
'washingtonpost.com',
'wsj.com',
'bloombergquint.com'
]
// select specific cookie(s) to hold from remove_cookies domains

View file

@ -106,6 +106,12 @@ if (window.location.href.indexOf("medium.com") !== -1) {
if(DOMElementsToTextDiv[2]) removeDOMElement(DOMElementsToTextDiv[2]);
}
if (window.location.href.indexOf("bloombergquint.com") !== -1) {
const articlesLeftModal = document.getElementsByClassName('paywall-meter-module__story-paywall-container__1UgCE')[0];
const paywall = document.getElementById('paywallDmp');
removeDOMElement(articlesLeftModal, paywall);
}
if (window.location.href.indexOf("bloomberg.com") !== -1) {
const paywall = document.getElementById('paywall-banner');
removeDOMElement(paywall);

View file

@ -3,6 +3,7 @@ var defaultSites = {
'Baltimore Sun': 'baltimoresun.com',
'Barron\'s': 'barrons.com',
'Bloomberg': 'bloomberg.com',
'Bloomberg Quint': 'bloombergquint.com',
'Business Insider': 'businessinsider.com',
'Caixin': 'caixinglobal.com',
'Chemical & Engineering News': 'cen.acs.org',