Add group McClatchy (USA)

Sites like Sacramento/Fresno Bee
This commit is contained in:
magnolia1234 2021-02-12 19:22:15 +01:00
parent d5e684377d
commit 50f8a805ac
6 changed files with 33 additions and 10 deletions

View file

@ -139,14 +139,25 @@ _* free articles only._
[SunSentinel](https://www.sun-sentinel.com) -
[The Boston Globe](https://www.bostonglobe.com) -
[The Denver Post](https://www.denverpost.com) -
[The Fresno Bee](https://www.fresnobee.com) -
[The Mercury News](https://www.mercurynews.com) -
[The Morning Call](https://www.mcall.com) -
[The Seattle Times](https://www.seattletimes.com) -
[The News-Gazette](https://www.news-gazette.com) -
[The Philadelphia Inquirer](https://www.inquirer.com) -
[Winston-Salem Journal](https://www.journalnow.com)\
Grouped in options:\
McClatchy Group sites like
[Belleville News-Democrat](https://www.bnd.com) -
[Fort Worth Star-Telegram](https://www.star-telegram.com) -
[Lexington Herald-Leader](https://www.kentucky.com) -
[The Charlotte Observer](https://www.charlotteobserver.com) -
[The Fresno Bee](https://www.fresnobee.com) -
[The Kansas City Star](https://www.kansascity.com) -
[The News & Observer](https://www.newsobserver.com) -
[The Sacramento Bee](https://www.sacbee.com) -
[Winston-Salem Journal](https://www.journalnow.com)
[The State](https://www.thestate.com) -
[The Wichita Eagle](https://www.kansas.com) -
[Tri-City Herald](https://www.tri-cityherald.com)
#### Canada
[Financial Post](https://www.financialpost.com) -

View file

@ -258,7 +258,6 @@ var blockedRegexes = {
'foreignpolicy.com': /\.tinypass\.com\/.+/,
'fortune.com': /\.tinypass\.com\/.+/,
'freiepresse.de': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/,
'fresnobee.com': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
'ftm.nl': /.+\.ftm\.nl\/js\/routing\?/,
'gelocal.it': /(\.repstatic.\it\/minify\/sites\/gelocal\/.+\/config\.cache(_\d)?\.php|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
'gestion.pe': /gestion\.pe\/pf\/dist\/template\/gestion-noticia.+\.js/,
@ -311,7 +310,6 @@ var blockedRegexes = {
'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/,
'rollingstone.com': /cdn\.cxense\.com\/.+/,
'ruhrnachrichten.de': /\.tinypass\.com\/.+/,
'sacbee.com': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
'saechsische.de': /\.tinypass\.com\/.+/,
'science-et-vie.com': /.+\.qiota\.com\/.+/,
'sciencesetavenir.fr': /.+\.poool\.fr\/.+/,
@ -354,6 +352,7 @@ const fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr',
const fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.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 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'];
// grouped domains (rules only)
@ -370,7 +369,7 @@ const userAgentMobileB = "Chrome/80.0.3987.92 Mobile Safari/537.36 (compatible;
var enabledSites = [];
var disabledSites = [];
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, de_rp_medien_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, usa_nymag_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, de_rp_medien_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, usa_mcc_domains, usa_nymag_domains);
var customSites = {};
var customSites_domains = [];
var excludedSites = [];
@ -421,6 +420,7 @@ var grouped_sites = {
'###_fr_groupe_la_depeche': fr_groupe_la_depeche_domains,
'###_it_ilmessaggero': it_ilmessaggero_domains,
'###_nl_ad_region': nl_ad_region_domains,
'###_usa_mcc': usa_mcc_domains,
'###_usa_nymag': usa_nymag_domains
};
@ -497,6 +497,8 @@ function add_grouped_sites(init_rules) {
blockedRegexes[domain] = /utils\.cedsdigital\.it\/js\/PaywallMeter\.js/;
for (let domain of nl_ad_region_domains)
remove_cookies_select_drop[domain] = ['temptationTrackingId'];
for (let domain of usa_mcc_domains)
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/;
// rules only
for (let domain of au_nine_domains)
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/;
@ -900,7 +902,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.com', header_referer) && isSiteEnabled({url: header_referer}));
let bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && isSiteEnabled({url: header_referer}) &&
matchUrlDomain(['barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'fresnobee.com', 'gelocal.it', 'ilsecoloxix.it', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'sacbee.com', 'seekingalpha.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains), header_referer));
matchUrlDomain(['barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'gelocal.it', 'ilsecoloxix.it', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'seekingalpha.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, usa_mcc_domains), header_referer));
if (!isSiteEnabled(details) && !inkl_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !cl_elmerc_site && !medium_custom_domain && !uk_nlr_site && !usa_discmag_site && !usa_mw_site && !bpc_amp_site) {
return;

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add group McClatchy (USA)
Add Time Magazine
Fix-update Cors Anywhere (link to allow access)
Fix-update Il Secolo XIX (amp)

View file

@ -11,6 +11,7 @@ var es_epiberica_domains = ['diariodeibiza.es', 'diariodemallorca.es', 'farodevi
var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'laverdad.es', 'lavozdigital.es'];
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 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)
var arr_localstorage_hold = ['charliehebdo.fr', 'cmjornal.pt', 'elmundo.es', 'expansion.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'];
@ -1334,7 +1335,7 @@ else if (matchDomain("discovermagazine.com")) {
}, 1000); // Delay (in milliseconds)
}
else if (domain = matchDomain(["fresnobee.com", "sacbee.com"])) {
else if (domain = matchDomain(usa_mcc_domains)) {
let url = window.location.href;
if (url.includes('account.' + domain + '/paywall/')) {
window.setTimeout(function () {

View file

@ -68,6 +68,7 @@
"*://*.bizjournals.com/*",
"*://*.bloomberg.com/*",
"*://*.bloombergquint.com/*",
"*://*.bnd.com/*",
"*://*.bndestem.nl/*",
"*://*.bordermail.com.au/*",
"*://*.bostonglobe.com/*",
@ -84,6 +85,7 @@
"*://*.centrepresseaveyron.fr/*",
"*://*.challenges.fr/*",
"*://*.charliehebdo.fr/*",
"*://*.charlotteobserver.com/*",
"*://*.chicagobusiness.com/*",
"*://*.chicagotribune.com/*",
"*://*.chronicle.com/*",
@ -205,7 +207,10 @@
"*://*.journaldunet.com/*",
"*://*.journalnow.com/*",
"*://*.jpost.com/*",
"*://*.kansas.com/*",
"*://*.kansascity.com/*",
"*://*.kauppalehti.fi/*",
"*://*.kentucky.com/*",
"*://*.kn-online.de/*",
"*://*.knack.be/*",
"*://*.krautreporter.de/*",
@ -281,6 +286,7 @@
"*://*.newrepublic.com/*",
"*://*.news-gazette.com/*",
"*://*.news-mail.com.au/*",
"*://*.newsobserver.com/*",
"*://*.newstatesman.com/*",
"*://*.newsweek.com/*",
"*://*.newyorker.com/*",
@ -347,6 +353,7 @@
"*://*.spectator.com.au/*",
"*://*.spectator.us/*",
"*://*.standard.net.au/*",
"*://*.star-telegram.com/*",
"*://*.startribune.com/*",
"*://*.statista.com/*",
"*://*.stcatharinesstandard.ca/*",
@ -390,6 +397,7 @@
"*://*.thesaturdaypaper.com.au/*",
"*://*.thespec.com/*",
"*://*.thestar.com/*",
"*://*.thestate.com/*",
"*://*.thetimes.co.uk/*",
"*://*.thewest.com.au/*",
"*://*.thueringer-allgemeine.de/*",
@ -399,6 +407,7 @@
"*://*.tivi.fi/*",
"*://*.towardsdatascience.com/*",
"*://*.townsvillebulletin.com.au/*",
"*://*.tri-cityherald.com/*",
"*://*.trouw.nl/*",
"*://*.tubantia.nl/*",
"*://*.usinenouvelle.com/*",
@ -461,5 +470,5 @@
"*://*.userzoom.com/*",
"*://*.wsj.net/*"
],
"version": "2.0.7.3"
"version": "2.0.7.4"
}

View file

@ -143,6 +143,7 @@ var defaultSites =
"Los Angeles Times": "latimes.com",
"Madsack Mediengruppe (Germany)": "###_de_madsack",
"MarketWatch": "marketwatch.com",
"McClatchy Group": "###_usa_mcc",
"Medium": "medium.com",
"Medium custom domains": "###_medium_custom",
"Mexico News Daily": "mexiconewsdaily.com",
@ -216,7 +217,6 @@ var defaultSites =
"The Denver Post": "denverpost.com",
"The Diplomat": "thediplomat.com",
"The Economist": "economist.com",
"The Fresno Bee": "fresnobee.com",
"The Globe and Mail": "theglobeandmail.com",
"The Hill Times": "hilltimes.com",
"The Hindu": "thehindu.com",
@ -237,7 +237,6 @@ var defaultSites =
"The News-Gazette": "news-gazette.com",
"The Philadelphia Inquirer": "inquirer.com",
"The Point Magazine": "thepointmag.com",
"The Sacramento Bee": "sacbee.com",
"The Saturday Paper": "thesaturdaypaper.com.au",
"The Seattle Times": "seattletimes.com",
"The Spectator (UK)": "spectator.co.uk",