Fix-update The Hindu

This commit is contained in:
magnolia1234 2020-09-10 21:22:33 +02:00
parent 6691b162a4
commit b0b35c09dd
3 changed files with 4 additions and 1 deletions

View file

@ -214,6 +214,7 @@ var blockedRegexes = {
'technologyreview.com': /.+\.blueconic\.net\/.+/,
'telegraph.co.uk': /.+\.tinypass\.com\/.+/,
'thedailybeast.com': /.+\.tinypass\.com\/.+/,
'thehindu.com': /ajax\.cloudflare\.com\/cdn-cgi\/scripts\/.+\/cloudflare-static\/rocket-loader\.min\.js/,
'thenation.com': /.+\.tinypass\.com\/.+/,
'valeursactuelles.com': /.+\.qiota\.com\/.+/,
'washingtonpost.com': /.+\.washingtonpost\.com\/dr\/resources\/dist\/washpost\/pwapi-proxy\.min\.js/,

View file

@ -613,7 +613,7 @@ else if (matchDomain('faz.net')) {
article_text.innerText = '';
const breakText = (str) => {
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-Za-zÀ-ÿ\„]{2,})/gm, "$&\n\n");
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-Z\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n");
str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n");
// exceptions: names with alternating lower/uppercase (no general fix)
str = str.replace(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline");
@ -621,6 +621,7 @@ else if (matchDomain('faz.net')) {
str = str.replace(/If\n\nSG/g, "IfSG");
str = str.replace(/La\n\nPierre/g, "LaPierre");
str = str.replace(/De\n\nJoy/g, "DeJoy");
str = str.replace(/m\n\nRNA/g, "mNRA");
return str;
};

View file

@ -271,6 +271,7 @@
"*://*.qiota.com/*",
"*://*.tinypass.com/*",
"*://*.tribdss.com/*",
"*://ajax.cloudflare.com/*",
"*://*.ampproject.org/*",
"*://*.bwbx.io/*",
"*://*.cedsdigital.it/*",