From 47249eb2756a01234cc17077aa8fb832a3cfbc22 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 24 Jun 2022 15:43:52 +0200 Subject: [PATCH] Fix Helsingin Sanomat (dynamic-json) --- changelog.txt | 1 + contentScript.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.txt b/changelog.txt index 9a7fbdea..f8ee09fa 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix Business Standard +Fix Helsingin Sanomat (dynamic-json) Fix Koelner Stadt-Anzeiger & Koelnische Rundschau Fix LesEchos.fr Fix Repubblica.it & LaStampa.it (videos-gtm) diff --git a/contentScript.js b/contentScript.js index 1b5bc456..ffc90cf0 100644 --- a/contentScript.js +++ b/contentScript.js @@ -912,6 +912,8 @@ else if (matchDomain('hs.fi')) { elem.setAttribute('style', 'font-style: italic;'); } } else if (['m', 'u'].includes(type)) { // authors + if (!par.includes('text:')) + continue; value = par.split('text:')[1].split(',role')[0].replace(/(^"|"$)/g, ''); if (value.length > 1) { elem = document.createElement('p');