From 6daa8bf29cb4453d7b650368d9b08bcdf9821f9a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 31 Mar 2024 17:22:18 +0200 Subject: [PATCH] Fix Newsweek.pl (premium video) --- changelog.txt | 1 + contentScript.js | 5 +++++ 2 files changed, 6 insertions(+) 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');