diff --git a/changelog.txt b/changelog.txt index 311de69..bdfac1a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add Diario Cordoba Add La Opinion A Coruna Add La Opinion de Zamora +Fix Alma Talent sites (js-ads) Fix Madsack Mediengruppe * v2.6.2.0 (2022-03-27) diff --git a/contentScript.js b/contentScript.js index 5c0a63f..9541ac0 100644 --- a/contentScript.js +++ b/contentScript.js @@ -779,7 +779,8 @@ else if (matchDomain(fi_alma_talent_domains)) { let ads = document.querySelectorAll('div[class^="p2m385-"], div#anop-container, .ad'); - removeDOMElement(...ads); + for (let ad of ads) + ad.setAttribute('style', 'display:none;'); if (matchDomain('iltalehti.fi')) { let paywall = document.querySelector('div.faded-text'); if (paywall && dompurify_loaded) {