Add group Hearst Communications (local USA)

This commit is contained in:
magnolia1234 2022-01-08 15:46:46 +01:00
parent 5a889d4e38
commit e0970d235d
8 changed files with 63 additions and 40 deletions

View File

@ -169,7 +169,6 @@ Grouped in options:\
##### Local USA news
[Honolulu Star-Advertiser](https://www.staradvertiser.com) -
[Houston Chronicle](https://www.houstonchronicle.com) -
[Los Angeles Business Journal](https://labusinessjournal.com) -
[Los Angeles Times](https://www.latimes.com) -
[Mountain View Voice](https://www.mv-voice.com) -
@ -177,9 +176,7 @@ Grouped in options:\
[Newsday](https://www.newsday.com) -
[Palo Alto Online](https://www.paloaltoonline.com) -
[Pittsburgh Post Gazette](https://www.post-gazette.com) -
[San Antonio Express-News](https://www.expressnews.com) -
[San Diego Union Tribune](https://www.sandiegouniontribune.com) -
[San Francisco Chronicle](https://www.sfchronicle.com) -
[Star Tribune](https://www.startribune.com) -
[Tampa Bay Times](https://www.tampabay.com) -
[The Advocate](https://www.theadvocate.com) -
@ -215,6 +212,10 @@ Grouped in options:\
[The Indianapolis Star](https://www.indystar.com) -
[The Record (North Jersey)](https://www.northjersey.com) -
[The Tennessean](http://www.tennessean.com)\
*Hearst Communications* sites like (opt-in to custom sites for unlisted)\
[Houston Chronicle](https://www.houstonchronicle.com) -
[San Antonio Express-News](https://www.expressnews.com) -
[San Francisco Chronicle](https://www.sfchronicle.com)\
*Lee Enterprises Group* sites like (opt-in to custom sites for unlisted)\
[Arizona Daily Star](https://tucson.com) -
[Richmond Times-Dispatch](https://richmond.com) -

View File

@ -695,7 +695,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
var medium_custom_domains = [];
var medium_custom_domain = (matchUrlDomain('cdn-client.medium.com', details.url) && ['script'].includes(details.type) && !matchUrlDomain(medium_custom_domains.concat(['medium.com', 'towardsdatascience.com']), header_referer) && enabledSites.includes('###_medium_custom'));
if (medium_custom_domain) {
let mc_domain = urlHost(header_referer).replace(/^(www|m)\./, '');;
let mc_domain = urlHost(header_referer).replace(/^(www|m)\./, '');
if (!use_twitter_referer.includes(mc_domain)) {
use_twitter_referer.push(mc_domain);
change_headers.push(mc_domain);
@ -709,7 +709,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
var usa_gannett_domains = grouped_sites['###_usa_gannett'];
var usa_gannett_domain = (matchUrlDomain('gannett-cdn.com', details.url) && ['xmlhttprequest'].includes(details.type) && !matchUrlDomain(usa_gannett_domains.concat(['usatoday.com']), header_referer) && enabledSites.includes('###_usa_gannett'));
if (usa_gannett_domain) {
let gn_domain = urlHost(header_referer).replace(/^(www|eu)\./, '');;
let gn_domain = urlHost(header_referer).replace(/^(www|eu)\./, '');
if (!use_google_bot.includes(gn_domain)) {
use_google_bot.push(gn_domain);
change_headers.push(gn_domain);
@ -722,6 +722,16 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
enabledSites.push(gn_domain);
}
var usa_hearst_comm_domains = grouped_sites['###_usa_hearst_comm'];
var usa_hearst_comm_domain = (matchUrlDomain('treg.hearstnp.com', details.url) && ['script'].includes(details.type) && !matchUrlDomain(usa_hearst_comm_domains, header_referer) && enabledSites.includes('###_usa_hearst_comm'));
if (usa_hearst_comm_domain) {
let hc_domain = urlHost(header_referer).replace(/^(www|amp)\./, '');
blockedRegexes[hc_domain] = blockedRegexes['houstonchronicle.com'];
usa_hearst_comm_domains.push(hc_domain);
if (!enabledSites.includes(hc_domain))
enabledSites.push(hc_domain);
}
// block script for additional Lee Enterprises sites (opt-in to custom sites)
var usa_lee_ent_domains = grouped_sites['###_usa_lee_ent'];
var usa_lee_ent_domain = (details.url.match(/\.townnews\.com\/central\.leetemplates\.com\//) && ['image'].includes(details.type) &&

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add group Hearst Communications (local USA)
Fix Bloomberg (timing)
Fix Handelsblatt (no amp)
Fix trimmed referer (restrictions)

View File

@ -23,13 +23,14 @@ var no_nhst_media_domains = ['intrafish.com', 'rechargenews.com', 'tradewindsnew
var timesofindia_domains = ['timesofindia.com', 'timesofindia.indiatimes.com'];
var usa_adv_local_domains = ['al.com', 'cleveland.com', 'lehighvalleylive.com', 'masslive.com', 'mlive.com', 'nj.com', 'oregonlive.com', 'pennlive.com', 'silive.com', 'syracuse.com'];
var usa_craincomm_domains = ['adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'modernhealthcare.com'];
var usa_hearst_comm_domains = ['expressnews.com', 'houstonchronicle.com', 'sfchronicle.com'];
var usa_lee_ent_domains = ['buffalonews.com', 'richmond.com', 'tucson.com', 'tulsaworld.com'];
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'miamiherald.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com', 'ocregister.com', 'pe.com', 'twincities.com'];
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
// clean local storage of sites (with an exemption for hold-list)
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'businessoffashion.com', 'charliehebdo.fr', 'cmjornal.pt', 'expressnews.com', 'fortune.com', 'houstonchronicle.com', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'].concat(de_funke_media_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, no_nhst_media_domains);
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'businessoffashion.com', 'charliehebdo.fr', 'cmjornal.pt', 'fortune.com', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'thehindu.com', 'thetimes.co.uk'].concat(de_funke_media_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, no_nhst_media_domains, usa_hearst_comm_domains);
if (!matchDomain(arr_localstorage_hold)) {
window.localStorage.clear();
}
@ -2393,7 +2394,7 @@ else if (matchDomain('historyextra.com')) {
removeDOMElement(ad_banner);
}
else if (matchDomain(['houstonchronicle.com', 'sfchronicle.com', 'expressnews.com'])) {
else if (matchDomain(usa_hearst_comm_domains)) {
let wrapper = document.querySelector('.belowMastheadWrapper');
removeDOMElement(wrapper);
}

View File

@ -66,6 +66,11 @@
"block_regex": "\\.tinypass\\.com\\/",
"domain": "eluniversal.com.mx"
},
"Gazette.com": {
"allow_cookies": 1,
"block_regex": "loader-cdn\\.azureedge\\.net",
"domain": "gazette.com"
},
"Handelszeitung.ch": {
"allow_cookies": 1,
"domain": "handelszeitung.ch",
@ -105,6 +110,9 @@
"block_regex": "\\.tinypass\\.com\\/",
"domain": "mailplus.co.uk"
},
"Medpagetoday.com": {
"domain": "medpagetoday.com"
},
"Morgenbladet.no": {
"allow_cookies": 1,
"domain": "morgenbladet.no",
@ -131,6 +139,11 @@
"domain": "pv-digest.de",
"useragent": "googlebot"
},
"Reviewjournal.com": {
"allow_cookies": 1,
"block_regex": "js\\.matheranalytics\\.com",
"domain": "reviewjournal.com"
},
"Schweizer-illustrierte.ch": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
@ -169,6 +182,11 @@
"domain": "thecourier.co.uk",
"useragent": "googlebot"
},
"Thehill.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "thehill.com"
},
"Thenational.scot": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
@ -184,6 +202,11 @@
"domain": "tijorifinance.com",
"useragent": "googlebot"
},
"Toledoblade.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/",
"domain": "toledoblade.com"
},
"Voguebusiness.com": {
"allow_cookies": 1,
"domain": "voguebusiness.com",
@ -195,4 +218,3 @@
"useragent": "googlebot"
}
}

View File

@ -589,6 +589,7 @@
"*://*.epimg.net/*",
"*://*.flip-pay.com/*",
"*://*.gannett-cdn.com/*",
"*://*.hearstnp.com/*",
"*://*.htmedia.in/*",
"*://*.jsdelivr.net/*",
"*://*.lightboxcdn.com/*",
@ -605,5 +606,5 @@
"*://*.wsj.net/*",
"*://*.zephr.com/*"
],
"version": "2.5.0.3"
"version": "2.5.0.4"
}

View File

@ -689,6 +689,15 @@ var defaultSites = {
"Harvard Business Review Taiwan": {
domain: "hbrtaiwan.com"
},
"Hearst Communications": {
domain: "###_usa_hearst_comm",
group: [
"expressnews.com",
"houstonchronicle.com",
"sfchronicle.com"
],
block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"Hindustan Times": {
domain: "hindustantimes.com",
allow_cookies: 1,
@ -698,10 +707,6 @@ var defaultSites = {
domain: "staradvertiser.com",
allow_cookies: 1
},
"Houston Chronicle": {
domain: "houstonchronicle.com",
block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"Humo.be": {
domain: "humo.be",
group_rule: "###_gr_nl_pg_domains"
@ -1257,18 +1262,10 @@ var defaultSites = {
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|consent|subscriptions)-.+\.(m)?js)/,
useragent: "googlebot"
},
"San Antonio Express-News": {
domain: "expressnews.com",
block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"San Diego Union Tribune": {
domain: "sandiegouniontribune.com",
block_regex: /(metering\.platform\.sandiegouniontribune\.com\/v\d\/meter|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/
},
"San Francisco Chronicle": {
domain: "sfchronicle.com",
block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
},
"Sanoma Media Finland (+ regional/opt-in to custom sites)": {
domain: "###_fi_sanoma",
group: [

View File

@ -1,13 +1,4 @@
{
"El Espectador": {
"domain": "elespectador.com",
"allow_cookies": 1,
"amp_redirect": {
"paywall": ".paywall"
},
"amp_unhide": 1,
"block_regex": "(cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js)"
},
"Groupe Nice-Matin": {
"domain": "###_fr_groupe_nice_matin",
"group": [
@ -24,6 +15,15 @@
}
]
},
"Hearst Communications": {
"domain": "###_usa_hearst_comm",
"group": [
"expressnews.com",
"houstonchronicle.com",
"sfchronicle.com"
],
"block_regex": "(\\.blueconic\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)"
},
"Il Foglio": {
"domain": "ilfoglio.it",
"allow_cookies": 1,
@ -33,11 +33,6 @@
"amp_unhide": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js"
},
"Les Inrockuptibles": {
"domain": "lesinrocks.com",
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com\\/"
},
"Science (free articles only)": {
"domain": "science.org",
"allow_cookies": 1,
@ -50,11 +45,6 @@
}
]
},
"The Diplomat": {
"domain": "thediplomat.com",
"block_regex": "\\/thediplomat\\.com\\/.+\\/js\\/angular-cookies\\.min\\.js",
"remove_cookies_select_drop": ["dpl-pw"]
},
"The New Statesman": {
"domain": "newstatesman.com",
"allow_cookies": 1,