Add group Crain's Business

This commit is contained in:
magnolia1234 2021-06-03 08:54:44 +02:00
parent 0ac6bc5e43
commit 4d40f51e2b
6 changed files with 22 additions and 7 deletions

View File

@ -133,7 +133,6 @@ _* free articles only._
[VeloNews](https://www.velonews.com)
##### Local USA news
[Crain's Chicago Business](https://www.chicagobusiness.com) -
[Honolulu Star-Advertiser](https://www.staradvertiser.com) -
[Houston Chronicle](https://www.houstonchronicle.com) -
[Los Angeles Business Journal](https://labusinessjournal.com) -
@ -154,7 +153,13 @@ _* free articles only._
[The Mercury News](https://www.mercurynews.com) -
[The Seattle Times](https://www.seattletimes.com) -
[The Philadelphia Inquirer](https://www.inquirer.com) -
[Winston-Salem Journal](https://www.journalnow.com)
[Winston-Salem Journal](https://www.journalnow.com)\
Grouped in options:\
Crain's Business sites like
[Crain's Chicago Business](https://www.chicagobusiness.com) -
[Crain's Cleveland Business](https://www.crainscleveland.com) -
[Crain's Detroit Business](https://www.crainsdetroit.com) -
[Crain's New York Business](https://www.crainsnewyork.com)
[USA Today](https://www.usatoday.com)\
Grouped in options:\

View File

@ -282,7 +282,6 @@ var blockedRegexes = {
'businessinsider.com': /\.tinypass\.com\//,
'challenges.fr': /\.poool\.fr\//,
'charliehebdo.fr': /\.poool\.fr\//,
'chicagobusiness.com': /(\.tinypass\.com\/|\.chicagobusiness\.com\/.+\/js\/js_.+\.js)/,
'chronicle.com': /(\.blueconic\.net\/|\.chronicle\.com\/(common\/)?(che-auth0-user|script)\.js)/,
'clarin.com': /js\.matheranalytics\.com\//,
'cmjornal.pt': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js/,
@ -449,6 +448,7 @@ var grouped_sites = {
'###_it_ilmessaggero': it_ilmessaggero_domains,
'###_nl_ad_region': nl_ad_region_domains,
'###_timesofindia': timesofindia_domains,
'###_usa_crainsbiz': usa_crainsbiz_domains,
'###_usa_mcc': usa_mcc_domains,
'###_usa_nymag': usa_nymag_domains,
'###_usa_tribune': usa_tribune_domains,
@ -538,6 +538,10 @@ function add_grouped_sites(init_rules) {
else
blockedRegexes[domain] = /timesofindia\.indiatimes\.com\/jsrender\/version-1\.cms/;
}
for (let domain of usa_crainsbiz_domains) {
allow_cookies.push(domain);
blockedRegexes[domain] = /(\.tinypass\.com\/|\.(crains.+|.+business)\.com\/.+\/js\/js_.+\.js)/;
}
for (let domain of usa_mcc_domains)
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/;
for (let domain of usa_tribune_domains) {

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add group Crain's Business
Fix-update Modern Healthcare
* v2.2.3.0 (2021-05-30)

View File

@ -11,6 +11,7 @@ var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.e
var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', 'lalsace.fr', 'ledauphine.com', 'lejsl.com', 'leprogres.fr', 'republicain-lorrain.fr', 'vosgesmatin.fr'];
var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr'];
var it_repubblica_domains = ['gelocal.it', 'ilsecoloxix.it', 'lanuovasardegna.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
var usa_crainsbiz_domains = ['chicagobusiness.com', 'crainscleveland', 'crainsdetroit', 'crainsnewyork.com'];
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
// clean local storage of sites (with an exemption for hold-list)
@ -1704,7 +1705,7 @@ else if (matchDomain('cen.acs.org')) {
});
}
else if (matchDomain(['chicagobusiness.com', 'modernhealthcare.com'])) {
else if (matchDomain(usa_crainsbiz_domains.concat(['modernhealthcare.com']))) {
let body_hidden = document.querySelector('body[class]');
if (body_hidden)
body_hidden.removeAttribute('class');

View File

@ -105,6 +105,9 @@
"*://*.courant.com/*",
"*://*.couriermail.com.au/*",
"*://*.courrier-picard.fr/*",
"*://*.crainscleveland.com/*",
"*://*.crainsdetroit.com/*",
"*://*.crainsnewyork.com/*",
"*://*.csmonitor.com/*",
"*://*.curbed.com/*",
"*://*.cw.com.tw/*",
@ -520,5 +523,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.3.1"
"version": "2.2.3.2"
}

View File

@ -39,7 +39,7 @@ var defaultSites =
"CommonWealth Magazine Taiwan": "cw.com.tw",
"Correio da Manhã": "cmjornal.pt",
"Corriere Della Sera": "corriere.it",
"Crain's Chicago Business": "chicagobusiness.com",
"Crain's Business": "###_usa_crainsbiz",
"Dagblad van het Noorden": "dvhn.nl",
"Dagens Industri": "di.se",
"Dagens Nyheter": "dn.se",
@ -337,10 +337,11 @@ const fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr',
const it_ilmessaggero_domains = ['corriereadriatico.it', 'ilgazzettino.it', 'ilmattino.it', 'ilmessaggero.it', 'quotidianodipuglia.it'];
const nl_ad_region_domains = ['ad.nl', 'bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl'];
const timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com'];
const usa_crainsbiz_domains = ['chicagobusiness.com', 'crainscleveland', 'crainsdetroit', 'crainsnewyork.com'];
const usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
const usa_nymag_domains = ['curbed.com', 'grubstreet.com', 'nymag.com', 'thecut.com', 'vulture.com'];
const usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
const usa_theathletic_domains = ['theathletic.com', 'theathletic.co.uk'];
var defaultSites_grouped_domains = Object.values(defaultSites);
var defaultSites_domains = defaultSites_grouped_domains.concat(au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, ca_torstar_domains, de_funke_media_domains, de_madsack_domains, economictimes_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_ilmessaggero_domains, nl_ad_region_domains, timesofindia_domains, usa_mcc_domains, usa_nymag_domains, usa_tribune_domains, usa_theathletic_domains);
var defaultSites_domains = defaultSites_grouped_domains.concat(au_comm_media_domains, au_news_corp_domains, au_prov_news_domains, ca_torstar_domains, de_funke_media_domains, de_madsack_domains, economictimes_domains, es_grupo_vocento_domains, fi_alma_talent_domains, fr_be_groupe_rossel_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_ilmessaggero_domains, nl_ad_region_domains, timesofindia_domains, usa_crainsbiz_domains, usa_mcc_domains, usa_nymag_domains, usa_tribune_domains, usa_theathletic_domains);