diff --git a/README.md b/README.md index a5812de..fbed916 100644 --- a/README.md +++ b/README.md @@ -883,6 +883,10 @@ Grouped in options:\ [Diario Correo](https://diariocorreo.pe) - [El Comercio](https://elcomercio.pe) - [Gestión](https://gestion.pe) +##### Uruguay +[El Observador](https://www.elobservador.com.uy) - +[El País](https://www.elpais.com.uy) - +[La Diaria](https://ladiaria.com.uy) _* free articles only._ diff --git a/changelog.txt b/changelog.txt index 08b3a92..708677e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Add El Observador, El Pais & La Diaria (Uruguay) Add Jacobin.de * v3.1.3.0 (2023-04-10) diff --git a/contentScript.js b/contentScript.js index 4a3cdad..4c5a1f2 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2667,7 +2667,7 @@ else if (matchDomain(uk_nat_world_domains) || document.querySelector('footer > d else csDone = true; -} else if (window.location.hostname.match(/\.(ar|br|cl|pe)$/) || matchDomain(['clarin.com', 'elespectador.com', 'elmercurio.com', 'eltiempo.com', 'latercera.com', 'lasegunda.com', 'valor.globo.com'])) {//south america +} else if (window.location.hostname.match(/\.(ar|br|cl|pe|uy)$/) || matchDomain(['clarin.com', 'elespectador.com', 'elmercurio.com', 'eltiempo.com', 'latercera.com', 'lasegunda.com', 'valor.globo.com'])) {//south america if (matchDomain('abril.com.br')) { if (window.location.pathname.endsWith('/amp/')) { @@ -2733,6 +2733,28 @@ else if (matchDomain('elmercurio.com')) { }, 3000); } +else if (matchDomain('elobservador.com.uy')) { + if (window.location.pathname.endsWith('/amp')) { + amp_unhide_access_hide('="observador.mostrarNota"'); + let amp_images = document.querySelectorAll('div.fixed-container > amp-img.null'); + 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'), + title: amp_image.getAttribute('title') + }); + amp_image.parentNode.replaceChild(elem, amp_image); + } + } else { + let paywall = document.querySelector('div.mensaje_member'); + if (paywall) { + removeDOMElement(paywall); + window.location.href = window.location.pathname + '/amp'; + } + } +} + else if (matchDomain('eltiempo.com')) { let modulos = document.querySelector('div.modulos'); if (modulos) @@ -2797,6 +2819,16 @@ else if (matchDomain('blogfolha.uol.com.br')) { } } +else if (matchDomain('ladiaria.com.uy')) { + if (window.location.search.startsWith('?display=amp')) { + csDoneOnce = true; + ampToHtml(); + } else { + let banners = document.querySelectorAll('div.softwall, div.subscribe-notice'); + removeDOMElement(...banners); + } +} + else if (matchDomain('latercera.com')) { let subscr_banner = document.querySelector('.empty'); removeDOMElement(subscr_banner); @@ -4995,7 +5027,7 @@ function amp_unhide_subscr_section(amp_ads_sel = 'amp-ad, .ad', replace_iframes } function amp_unhide_access_hide(amp_access = '', amp_access_not = '', amp_ads_sel = 'amp-ad, .ad', replace_iframes = true, amp_iframe_link = false, source = '') { - let access_hide = document.querySelectorAll('[amp-access' + amp_access + '][amp-access-hide]:not([amp-access="error"], [amp-access^="message"])'); + let access_hide = document.querySelectorAll('[amp-access' + amp_access + '][amp-access-hide]:not([amp-access="error"], [amp-access^="message"]):not(.piano)'); for (let elem of access_hide) elem.removeAttribute('amp-access-hide'); if (amp_access_not) { diff --git a/custom/manifest.json b/custom/manifest.json index 5a1df76..f230a8e 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.1.3.1" + "version": "3.1.3.2" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index cce6cd1..d8ba29d 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -107,11 +107,6 @@ "cs_code": "[{\"cond\":\"div.article-body-wrapper__styled[style]\",\"rm_attrib\":\"style\"},{\"cond\":\"div.post\",\"rm_elem\":1}]", "domain": "elfinancierocr.com" }, - "Elpais.com.uy": { - "allow_cookies": 1, - "amp_redirect": "div.contenido-exclusivo-nota", - "domain": "elpais.com.uy" - }, "Eluniversal.com.mx": { "allow_cookies": 1, "block_regex": "\\.tinypass\\.com", diff --git a/manifest.json b/manifest.json index 069250a..3f9040e 100644 --- a/manifest.json +++ b/manifest.json @@ -122,7 +122,6 @@ "*://*.brisbanetimes.com.au/*", "*://*.britannica.com/*", "*://*.buffalonews.com/*", - "*://*.business-standard.com/*", "*://*.businessinsider.com/*", "*://*.businessoffashion.com/*", "*://*.businesspost.ie/*", @@ -215,6 +214,8 @@ "*://*.elmercurio.com/*", "*://*.elmundo.es/*", "*://*.elnortedecastilla.es/*", + "*://*.elobservador.com.uy/*", + "*://*.elpais.com.uy/*", "*://*.elpais.com/*", "*://*.elperiodico.com/*", "*://*.eltiempo.com/*", @@ -345,6 +346,7 @@ "*://*.la-croix.com/*", "*://*.labusinessjournal.com/*", "*://*.ladepeche.fr/*", + "*://*.ladiaria.com.uy/*", "*://*.lalibre.be/*", "*://*.lalsace.fr/*", "*://*.lamontagne.fr/*", @@ -606,8 +608,8 @@ "*://*.theatlantic.com/*", "*://*.theaustralian.com.au/*", "*://*.thebanker.com/*", - "*://*.thechronicle.com.au/*", "*://*.thebulletin.org/*", + "*://*.thechronicle.com.au/*", "*://*.thecourier.com.au/*", "*://*.thecritic.co.uk/*", "*://*.thecut.com/*", @@ -748,5 +750,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.1.3.1" + "version": "3.1.3.2" } diff --git a/sites.js b/sites.js index 654bedf..14fa4a5 100644 --- a/sites.js +++ b/sites.js @@ -472,12 +472,22 @@ var defaultSites = { block_regex: /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/, useragent: "googlebot" }, + "El Observador.com.uy": { + domain: "elobservador.com.uy", + allow_cookies: 1, + block_regex: /(\.elobservador\.com\.uy\/shares|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ + }, "El País": { domain: "elpais.com", allow_cookies: 1, block_js_inline: /\.elpais\.com\/.+\.html/, block_regex: /(\/elpais\.com\/arc\/subs\/p\.min\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ }, + "El País.com.uy": { + domain: "elpais.com.uy", + allow_cookies: 1, + block_regex: /(\.elpais\.com\.uy\/user\/authStatus|\.evolok\.net\/|cdn\.cxense\.com\/)/ + }, "El Periódico (de Catalunya)": { domain: "elperiodico.com", allow_cookies: 1, @@ -1067,6 +1077,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.la-croix\.com\/build\/.+\/paywall.+\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ }, + "La Diaria.com.uy": { + domain: "ladiaria.com.uy", + allow_cookies: 1, + useragent: "googlebot" + }, "La Gazzetta dello Sport": { domain: "gazzetta.it", allow_cookies: 1 diff --git a/sites_updated.json b/sites_updated.json index 851284d..e80393f 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -10,6 +10,19 @@ "block_regex": "(\\.piano\\.io\\/xbuilder\\/experience\\/execute|cdn\\.cxense\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)", "cs_code": "[{\"cond\":\".is-preview\",\"rm_class\":\"is-preview\"},{\"cond\":\".is-hidden\",\"rm_class\":\"is-hidden\"}]" }, + "El Observador.com.uy": { + "domain": "elobservador.com.uy", + "allow_cookies": 1, + "amp_redirect": "div.mensaje_member", + "amp_unhide": 1, + "block_regex": "(\\.elobservador\\.com\\.uy\\/shares|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)", + "new_site": 1 + }, + "El País.com.uy": { + "domain": "elpais.com.uy", + "allow_cookies": 1, + "block_regex": "(\\.elpais\\.com\\.uy\\/user\\/authStatus|\\.evolok\\.net\\/|cdn\\.cxense\\.com\\/)" + }, "Epicurious": { "domain": "epicurious.com", "allow_cookies": 1, @@ -22,6 +35,11 @@ "remove_cookies_select_drop": ["TID_ID"], "block_regex": "(\\.flair\\.nl\\/temptation\\/resolve|temptation\\.flair\\.nl\\/temptation\\.js)" }, + "La Diaria.com.uy": { + "domain": "ladiaria.com.uy", + "allow_cookies": 1, + "useragent": "googlebot" + }, "La Libre.be": { "domain": "lalibre.be", "allow_cookies": 1,