Add CNBC (Pro text)

This commit is contained in:
magnolia1234 2022-11-14 18:41:18 +01:00
parent b3a472a647
commit 79cb52d6b9
6 changed files with 43 additions and 2 deletions

View File

@ -96,6 +96,7 @@ _* free articles only._
[Barron's](https://www.barrons.com) -
[Bloomberg](https://www.bloomberg.com) -
[Business Insider](https://www.businessinsider.com) -
[CNBC](https://www.cnbc.com) -
[Digiday](https://digiday.com) -
[Entrepreneur](https://www.entrepreneur.com) -
[Forbes](https://www.forbes.com) -

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add CNBC (Pro text)
Fix The Hill Times (text)
* v2.9.3.0 (2022-11-13)

View File

@ -2738,6 +2738,21 @@ else if (matchDomain(['chronicle.com', 'philanthropy.com'])) {
}
}
else if (matchDomain('cnbc.com')) {
let paywall = document.querySelector('div.ArticleGate-proGate');
if (paywall) {
removeDOMElement(paywall);
let article = document.querySelector('div.ArticleBody-articleBody');
if (article)
article.style = "margin: 20px 0px; font-family: Lyon,Helvetica,Arial,sans-serif; font-size: 18px; line-height: 1.66";
let span_hidden = document.querySelectorAll('span[hidden]');
for (let elem of span_hidden) {
elem.removeAttribute('hidden');
elem.removeAttribute('class');
}
}
}
else if (matchDomain('csmonitor.com')) {
let paywall = document.querySelector('div.paywall');
removeDOMElement(paywall);

View File

@ -144,6 +144,7 @@
"*://*.cleveland.com/*",
"*://*.climbing.com/*",
"*://*.cmjornal.pt/*",
"*://*.cnbc.com/*",
"*://*.codesports.com.au/*",
"*://*.commentary.org/*",
"*://*.commercialappeal.com/*",
@ -729,5 +730,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.9.3.1"
"version": "2.9.3.2"
}

View File

@ -290,6 +290,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.clarin\.com\/.+\/auth\d\.js/
},
"CNBC": {
domain: "cnbc.com",
allow_cookies: 1,
block_regex: /\.tinypass\.com\//
},
"Commentary Magazine": {
domain: "commentary.org",
block_regex: /\.commentary\.org\/.+\/js\/dg-locker-public\.js/
@ -2402,4 +2407,4 @@ init_custom_domains();
// sites with no fix (background)
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be'];
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com'];
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains);
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, it_gedi_nofix_domains);

View File

@ -1,4 +1,22 @@
{
"CNBC": {
"domain": "cnbc.com",
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"cs_code": [{
"cond": "div.ArticleGate-proGate",
"rm_elem": 1,
"elems": [{
"cond": "span[hidden]",
"rm_attrib": "class"
}, {
"cond": "span[hidden]",
"rm_attrib": "hidden"
}
]
}],
"new_site": 1
},
"Correio da Manhã": {
"domain": "cmjornal.pt",
"allow_cookies": 1,