diff --git a/background.js b/background.js index 619f92f..23ea2d9 100644 --- a/background.js +++ b/background.js @@ -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/, diff --git a/contentScript.js b/contentScript.js index 44e4e00..824e0b9 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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; }; diff --git a/lp/manifest.json b/lp/manifest.json index 348a52a..008600a 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -271,6 +271,7 @@ "*://*.qiota.com/*", "*://*.tinypass.com/*", "*://*.tribdss.com/*", + "*://ajax.cloudflare.com/*", "*://*.ampproject.org/*", "*://*.bwbx.io/*", "*://*.cedsdigital.it/*",