diff --git a/changelog.txt b/changelog.txt index a654dd3..8c7e2fd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Remove Hbvl.be (fix obsolete) Remove The Banker (fix obsolete) Fix Humanite.fr Fix LeMonde.fr (bug; update rules) +Fix Newsweek.pl (premium video) Fix Wiwo.de (anti-adblocker) Fix WSJ (intro video) Update custom sites (search) diff --git a/contentScript.js b/contentScript.js index 014c30a..68a84d9 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4926,6 +4926,11 @@ else if (matchDomain(pl_ringier_domains)) { premium.removeAttribute('class'); premium.removeAttribute('style'); } + let premium_videos = document.querySelectorAll('div.videoPremiumWrapper > div.embed__mainVideoWrapper'); + for (let video of premium_videos) { + video.removeAttribute('class'); + video.parentNode.removeAttribute('class'); + } let placeholder = document.querySelector('div#contentPremiumPlaceholder[class]'); if (placeholder) placeholder.removeAttribute('class');