diff --git a/changelog.txt b/changelog.txt index 4ba7828..2ff1feb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix La Tercera (js) +Fix MIT Technology Review (TinyPass) * v2.5.4.0 (2022-01-30) Add group Outside magazines diff --git a/contentScript.js b/contentScript.js index 01ebd77..8d9fa96 100644 --- a/contentScript.js +++ b/contentScript.js @@ -774,7 +774,7 @@ else if (matchDomain('nyteknik.se')) { else csDone = true; -} else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'lavanguardia.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal +} else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal if (matchDomain('abc.es')) { if (window.location.pathname.endsWith('_amp.html')) { @@ -918,12 +918,6 @@ else if (matchDomain(es_epiberica_domains)) { } } -else if (matchDomain('lavanguardia.com')) { - let paywall = document.querySelector('[class*="ev-open-modal-paywall"]'); - let infinite_loading = document.querySelector('#infinite-loading'); - removeDOMElement(paywall, infinite_loading); -} - else if (matchDomain('observador.pt')) { let paywall = document.querySelector('.premium-article'); if (paywall) @@ -2517,7 +2511,7 @@ else if (matchDomain('law360.com')) { } else if (matchDomain('livelaw.in')) { - let paywall = document.querySelectorAll('div.restricted_message > div.story, div.restricted_message > div.row'); + let paywall = document.querySelectorAll('div.restricted_message, div.subscribeNow'); if (paywall.length) { removeDOMElement(...paywall); let paywall_content = document.querySelector('div.paywall-content.hide'); @@ -2927,23 +2921,6 @@ else if (matchDomain('techinasia.com')) { removeDOMElement(splash_subscribe, paywall_hard); } -else if (matchDomain('technologyreview.com')) { - window.setTimeout(function () { - let body_obscured = document.querySelector('body[class*="body__obscureContent"]'); - if (body_obscured) - removeClassesByPrefix(body_obscured, 'body__obscureContent'); - let overlay = document.querySelector('div[class*="overlayFooter__wrapper"]'); - if (overlay) - overlay.setAttribute('style', 'display:none'); - let content_body_hidden = document.querySelector('div[class*="contentBody__contentHidden"]'); - if (content_body_hidden) - removeClassesByPrefix(content_body_hidden, 'contentBody__contentHidden'); - let content_body_overlay = document.querySelector('div[class*="contentBody__overlay"]'); - if (content_body_overlay) - content_body_overlay.removeAttribute('class'); - }, 500); -} - else if (matchDomain('the-american-interest.com')) { let counter = document.getElementById('article-counter'); removeDOMElement(counter); diff --git a/manifest.json b/manifest.json index d175d12..7f881ab 100644 --- a/manifest.json +++ b/manifest.json @@ -586,6 +586,7 @@ "*://*.qiota.com/*", "*://*.tinypass.com/*", "*://*.tribdss.com/*", + "*://*.zephr.com/*", "*://*.amazonaws.com/*", "*://*.apnarm.net.au/*", "*://*.bntech.io/*", @@ -610,8 +611,7 @@ "*://*.rndtech.de/*", "*://*.sanoma-sndp.fi/*", "*://*.wallkit.net/*", - "*://*.wsj.net/*", - "*://*.zephr.com/*" + "*://*.wsj.net/*" ], - "version": "2.5.4.0" + "version": "2.5.4.1" } diff --git a/sites.js b/sites.js index f49f017..0fcdecd 100644 --- a/sites.js +++ b/sites.js @@ -855,7 +855,8 @@ var defaultSites = { }, "La Tercera": { domain: "latercera.com", - block_regex: /(\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/)/ + allow_cookies: 1, + block_regex: /(\.latercera\.com\/arc\/subs\/p\.min\.js|cdn\.cxense\.com\/)/ }, "La Tribune": { domain: "latribune.fr", @@ -886,7 +887,8 @@ var defaultSites = { block_regex: /\.poool\.fr\// }, "Le Journal du Net": { - domain: "journaldunet.com" + domain: "journaldunet.com", + allow_cookies: 1 }, "Le Parisien": { domain: "leparisien.fr", @@ -1061,7 +1063,8 @@ var defaultSites = { }, "MIT Technology Review": { domain: "technologyreview.com", - block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.mjs)/ + allow_cookies: 1, + block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.mjs)/ }, "Mitteldeutsche Zeitung": { domain: "mz.de", diff --git a/sites_updated.json b/sites_updated.json index 9ec7783..efa3e98 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -30,6 +30,16 @@ "domain": "huffingtonpost.it", "group_rule": "###_gr_it_repubblica_domains" }, + "La Tercera": { + "domain": "latercera.com", + "allow_cookies": 1, + "block_regex": "(\\.latercera\\.com\\/arc\\/subs\\/p\\.min\\.js|cdn\\.cxense\\.com\\/)" + }, + "MIT Technology Review": { + "domain": "technologyreview.com", + "allow_cookies": 1, + "block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.mjs)" + }, "###_gr_it_repubblica_domains": { "group_rule_domains": ["gelocal.it", "huffingtonpost.it", "ilsecoloxix.it", "italian.tech", "lanuovasardegna.it", "lastampa.it", "lescienze.it", "limesonline.com", "repubblica.it"], "allow_cookies": 1,