mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:57:48 +01:00
Fix-update The Hindu
This commit is contained in:
parent
6691b162a4
commit
b0b35c09dd
3 changed files with 4 additions and 1 deletions
|
@ -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/,
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@
|
|||
"*://*.qiota.com/*",
|
||||
"*://*.tinypass.com/*",
|
||||
"*://*.tribdss.com/*",
|
||||
"*://ajax.cloudflare.com/*",
|
||||
"*://*.ampproject.org/*",
|
||||
"*://*.bwbx.io/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
|
|
Loading…
Reference in a new issue