diff --git a/background.js b/background.js index de121cd..67b6971 100644 --- a/background.js +++ b/background.js @@ -330,7 +330,7 @@ var blockedRegexes = { 'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/, 'lasegunda.com': /\.(lasegunda\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/, 'latercera.com': /(\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/)/, - 'latimes.com': /(js\.matheranalytics\.com\/|metering\.platform\.latimes\.com\/v\d\/meter)/, + 'latimes.com': /metering\.platform\.latimes\.com\/v\d\/meter/, 'latribune.fr': /\.poool\.fr\//, 'lavanguardia.com': /(\.evolok\.net\/.+\/authorize\/|\.lavanguardia\.com\/(js\/)?godo-)/, 'lc.nl': /\.evolok\.net\/.+\/authorize\//, @@ -367,6 +367,7 @@ var blockedRegexes = { 'rollingstone.com': /cdn\.cxense\.com\//, 'ruhrnachrichten.de': /\.tinypass\.com\//, 'saechsische.de': /\.tinypass\.com\//, + 'sandiegouniontribune.com': /metering\.platform\.sandiegouniontribune\.com\/v\d\/meter/, 'science-et-vie.com': /\.qiota\.com\//, 'sciencesetavenir.fr': /\.poool\.fr\//, 'scmp.com': /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad|analytics|consent|fx-flying-carpet)-.+\.js)/, diff --git a/changelog.txt b/changelog.txt index 4c95e61..1d1182b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add Inc42 (India) Add The Business of Fashion Fix Bloomberg (quotes/blurred images) +Fix San Diego Union-Tribune Fix Telegraaf.nl * v2.3.1.0 (2021-08-01) diff --git a/contentScript.js b/contentScript.js index 1de9c03..49f1141 100644 --- a/contentScript.js +++ b/contentScript.js @@ -405,7 +405,7 @@ else if (matchDomain('faz.net')) { str = str.replace(/(?:^|[A-Za-z\"\“])(\.|\?|!)(?=[A-ZÖÜ\„\d][A-Za-zÀ-ÿ\„\d]{1,})/gm, "$&\n\n"); str = str.replace(/(([a-z]{2,}|[\"\“]))(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n"); // exceptions: names with alternating lower/uppercase (no general fix) - let str_rep_arr = ['AstraZeneca', 'BaFin', 'BerlHG', 'BfArM', 'BilMoG', 'BioNTech', 'DiGA', 'EuGH', 'FinTechRat', 'GlaxoSmithKline', 'IfSG', 'medRxiv', 'PlosOne', 'StVO']; + let str_rep_arr = ['AstraZeneca', 'BaFin', 'BerlHG', 'BfArM', 'BilMoG', 'BioNTech', 'DiGA', 'EuGH', 'FinTechRat', 'GlaxoSmithKline', 'IfSG', 'medRxiv', 'mmHg', 'PlosOne', 'StVO']; let str_rep_split, str_rep_src; for (let str_rep of str_rep_arr) { @@ -2317,6 +2317,12 @@ else if (matchDomain('republic.ru')) { removeDOMElement(paywall); } + +else if (matchDomain('sandiegouniontribune.com')) { + let metering_bottompanel = document.querySelector('metering-bottompanel'); + removeDOMElement(metering_bottompanel); +} + else if (matchDomain('scmp.com') && window.location.href.includes('/amp.')) { let div_hidden_all = document.querySelectorAll('div.article-body[amp-access][amp-access-hide]'); for (let div_hidden of div_hidden_all)