mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:37:47 +01:00
Merge pull request #335 from cimke/feature/Add-bloomberg-qunit
Add bloomberg Quint support
This commit is contained in:
commit
eb6594fca6
4 changed files with 10 additions and 1 deletions
|
@ -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)\
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -99,6 +99,12 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
@ -150,4 +156,3 @@ function removeDOMElement(...elements) {
|
|||
if (element) element.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue