Fix San Diego Union-Tribune

This commit is contained in:
magnolia1234 2021-08-08 18:09:48 +02:00
parent 5b291234c7
commit cbaf9fee61
3 changed files with 10 additions and 2 deletions

View file

@ -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)/,

View file

@ -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)

View file

@ -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)