Add El Nuevo Herald (McClatchy Group)

merge-requests/18/merge
magnolia1234 5 months ago
parent b9ce0b38fa
commit aae747dbbf

@ -374,6 +374,7 @@ Grouped in options:\
*[Maine Trust](https://www.metln.org)* sites (opt-in to custom sites)\
*McClatchy Group* sites like (opt-in to custom sites for unlisted)\
[Belleville News-Democrat](https://www.bnd.com) -
[El Nuevo Herald](https://www.elnuevoherald.com) -
[Fort Worth Star-Telegram](https://www.star-telegram.com) -
[Lexington Herald-Leader](https://www.kentucky.com) -
[McClatchy DC](https://www.mcclatchydc.com) -

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Add El Nuevo Herald (McClatchy Group)
Add Newsweek.pl (fetch from archive.is)
Remove Abendblatt.de (Funke; fix obsolete)
Fix Groupe Capitales Medias (identify sites)

@ -46,7 +46,7 @@ var usa_craincomm_domains = ['360dx.com', 'adage.com', 'autonews.com', 'chicagob
var usa_gannett_domains = ['azcentral.com', 'cincinnati.com', 'commercialappeal.com', 'courier-journal.com', 'democratandchronicle.com', 'detroitnews.com', 'freep.com', 'indystar.com', 'jsonline.com', 'knoxnews.com', 'news-press.com', 'northjersey.com', 'oklahoman.com', 'statesman.com', 'tennessean.com'];
var usa_hearst_comm_domains = ['ctpost.com', 'expressnews.com', 'houstonchronicle.com', 'nhregister.com', 'sfchronicle.com', 'timesunion.com'];
var usa_lee_ent_domains = ['buffalonews.com', 'journalnow.com', 'journalstar.com', 'madison.com', 'nwitimes.com', 'omaha.com', 'richmond.com', 'stltoday.com', 'tucson.com', 'tulsaworld.com'];
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'mcclatchydc.com', 'miamiherald.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'elnuevoherald.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'mcclatchydc.com', 'miamiherald.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
var usa_mng_domains = ['bostonherald.com', 'denverpost.com', 'eastbaytimes.com', 'mercurynews.com', 'ocregister.com', 'pressenterprise.com', 'twincities.com'];
var usa_nymag_domains = ['curbed.com', 'grubstreet.com', 'nymag.com', 'thecut.com', 'vulture.com'];
var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition.com", "cleaneatingmag.com", "climbing.com", "outsideonline.com", "oxygenmag.com", "skimag.com", "trailrunnermag.com", "triathlete.com", "vegetariantimes.com", "womensrunning.com", "yogajournal.com"];
@ -4012,15 +4012,6 @@ else if (matchDomain(usa_hearst_comm_domains)) {
else if (matchDomain('inc42.com')) {
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_access_hide('="status"', '="NOT status"', 'amp-ad, amp-embed, div.wru-widget');
let amp_images = document.querySelectorAll('body amp-img[src^="https://"]');
for (let amp_image of amp_images) {
let elem = document.createElement('img');
Object.assign(elem, {
src: amp_image.getAttribute('src'),
alt: amp_image.getAttribute('alt')
});
amp_image.parentNode.replaceChild(elem, amp_image);
}
} else {
let div_hidden = document.querySelector('div.single-post-content');
if (div_hidden)
@ -5674,19 +5665,27 @@ else if ((domain = matchDomain(usa_mcc_domains)) ||
let url = window.location.href;
let hostname = window.location.hostname;
if (!domain)
domain = hostname.replace(/^(account|amp)\./, '');
domain = hostname.replace(/^(www|account|amp)\./, '');
if (hostname.startsWith('account.') && window.location.search.startsWith('?resume=')) {
window.setTimeout(function () {
window.location.href = 'https://amp.' + domain + '/article' + url.split('resume=')[1].split(/[#&]/)[0] + '.html';
}, 500);
} else if (url.includes('amp.' + domain + '/')) {
amp_unhide_subscr_section('amp-ad, amp-embed', false);
} else if (hostname.startsWith('amp.')) {
amp_unhide_subscr_section('amp-ad, amp-embed');
let subscriptions_action = document.querySelector('div[subscriptions-action][subscriptions-display="NOT data.hasError"]');
if (subscriptions_action)
subscriptions_action.removeAttribute('subscriptions-action');
let subscr_tag = document.querySelector('div#subscriber-exclusive-tag');
let amp_players = document.querySelectorAll('amp-connatix-player');
let amp_players = document.querySelectorAll('amp-connatix-player, amp-iframe.trinity-player');
removeDOMElement(subscr_tag, ...amp_players);
let amp_images = document.querySelectorAll('amp-img[srcset]:not([src])');
for (let elem of amp_images) {
let img = document.createElement('img');
img.src = elem.getAttribute('srcset').split(' ')[0],
img.alt = elem.getAttribute('alt'),
img.style = 'width: 100%;';
elem.parentNode.replaceChild(img, elem);
}
}
let premium_svgs = document.querySelectorAll('h3 > a > svg');
let premium_link;
@ -5974,12 +5973,8 @@ function amp_iframes_replace(weblink = false, source = '') {
for (let amp_iframe of amp_iframes) {
if (!weblink) {
elem = document.createElement('iframe');
Object.assign(elem, {
src: amp_iframe.getAttribute('src'),
height: amp_iframe.getAttribute('height'),
width: 'auto',
style: 'border: 0px;'
});
elem.src = amp_iframe.getAttribute('src'),
elem.style = 'height: 100%; width: 100%; border: 0px;';
if (amp_iframe.getAttribute('sandbox'))
elem.sandbox = amp_iframe.getAttribute('sandbox');
amp_iframe.parentNode.replaceChild(elem, amp_iframe);
@ -6046,8 +6041,9 @@ function amp_unhide_access_hide(amp_access = '', amp_access_not = '', amp_ads_se
function ampToHtml() {
window.setTimeout(function () {
let canonical = document.querySelector('head > link[rel="canonical"]');
window.location.href = canonical.href;
let canonical = document.querySelector('head > link[rel="canonical"][href]');
if (canonical)
window.location.href = canonical.href;
}, 1000);
}

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.5.2.4"
"version": "3.5.2.5"
}

@ -233,6 +233,7 @@
"*://*.elmercurio.com/*",
"*://*.elmundo.es/*",
"*://*.elnortedecastilla.es/*",
"*://*.elnuevoherald.com/*",
"*://*.elobservador.com.uy/*",
"*://*.elpais.com.uy/*",
"*://*.elpais.com/*",
@ -839,5 +840,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.5.2.4"
"version": "3.5.2.5"
}

@ -1541,6 +1541,7 @@ var defaultSites = {
group: [
"bnd.com",
"charlotteobserver.com",
"elnuevoherald.com",
"fresnobee.com",
"kansas.com",
"kansascity.com",

Loading…
Cancel
Save