Fix Newsweek.pl (premium video)

This commit is contained in:
magnolia1234 2024-03-31 17:22:18 +02:00
parent 5b82051baf
commit 6daa8bf29c
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -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');