From cbd73db75a6b6ad569c8d07eb93ad75c8025f7b5 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 11 Nov 2020 17:19:13 +0100 Subject: [PATCH] Fix-update WSJ (mobile layout) --- background.js | 6 +++--- changelog.txt | 3 ++- contentScript.js | 2 +- manifest.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/background.js b/background.js index 7aa9240b..627a6cb4 100644 --- a/background.js +++ b/background.js @@ -11,9 +11,9 @@ var ext_name = ext_api.runtime.getManifest().name; const restrictions = { 'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/, 'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/, - 'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/, + 'elcomercio.pe': /.+\/elcomercio\.pe\/.+((\w)+(\-)+){3,}.+/, 'faz.net': /^((?!\/zeitung\.faz\.net\/).)*$/, - 'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/, + 'gestion.pe': /.+\/gestion\.pe\/.+((\w)+(\-)+){3,}.+/, 'nknews.org': /^((?!\.nknews\.org\/pro\/).)*$/, 'globo.com': /^((?!\/valor\.globo\.com\/).)*$/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, @@ -109,7 +109,7 @@ const remove_cookies_select_hold = { 'newstatesman.com': ['STYXKEY_nsversion'], 'telegraph.co.uk': ['consentUUID'], 'qz.com': ['gdpr'], - 'wsj.com': ['wsjregion'] + 'wsj.com': ['wsjregion', 'ResponsiveConditional_initialBreakpoint'] } // list of regional ad.nl sites diff --git a/changelog.txt b/changelog.txt index c9c259d8..1f13d41e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix-update WSJ (mobile layout) +Update custom sites: allow_cookies * v1.9.4.0 (2020-11-08) Add Gazet van Antwerpen (Belgium) @@ -14,7 +16,6 @@ Fix-update Telegraph.co.uk (overlay) Fix Chrome-icon for dark/incognito mode (all permitted sites) Fix clearCookies (Chrome .domain cookies) Fix updateBadge (grouped sites) -Update custom sites: allow_cookies Update options/popup layout (+ mobile) * v1.9.3.0 (2020-11-01) diff --git a/contentScript.js b/contentScript.js index fde32120..1800311a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -813,7 +813,7 @@ else if (matchDomain('faz.net')) { 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) - let str_rep_arr = ["BaFin", "BerlHG", "BfArM", "BilMoG", "EuGH", "GlaxoSmithKline", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mNRA", "StVO"]; + let str_rep_arr = ["BaFin", "BerlHG", "BfArM", "BilMoG", "EuGH", "GlaxoSmithKline", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mRNA", "StVO"]; let str_rep_split, str_rep_src; for (let str_rep of str_rep_arr) { str_rep_split = str_rep.split(/([a-z]+)(?=[A-Z](?=[A-Za-z]+))/); diff --git a/manifest.json b/manifest.json index 1113dfc5..68fb1184 100644 --- a/manifest.json +++ b/manifest.json @@ -341,5 +341,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.9.4.1" + "version": "1.9.4.2" } \ No newline at end of file