From 30fef0f174c63eb5815da99470ff1578a64ddb65 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 8 Mar 2024 16:42:05 +0100 Subject: [PATCH] Fix The Quint (css) --- changelog.txt | 1 + contentScript.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index c2e8297..e6ab3a2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -10,6 +10,7 @@ Fix Boersen-zeitung.de (timing) Fix ElMundo.es (colegios - no amp-fix) Fix Hearst newspapers (anti-adblocker) Fix Il Sole 24 Ore (24+ only) +Fix The Quint (css) * v3.5.8.0 (2024-03-03) Add Autosport (free articles only) diff --git a/contentScript.js b/contentScript.js index d71007e..4451e24 100644 --- a/contentScript.js +++ b/contentScript.js @@ -816,7 +816,7 @@ else if (matchDomain(['beobachter.ch', 'handelszeitung.ch'])) { else if (matchDomain('berliner-zeitung.de')) { window.setTimeout(function () { - let ads = document.querySelectorAll('[class^="traffective_"], [class^="article_billboard-"], [class^="outbrain_container"]'); + let ads = document.querySelectorAll('div[class^="traffective_"], div[class^="article_billboard-"], div[class*="_ad_"], div[class^="outbrain_"]'); hideDOMElement(...ads); }, 1000); } @@ -5563,8 +5563,10 @@ else if (matchDomain('thequint.com')) { } else refreshCurrentTab(); let body_hidden = document.querySelector('div#story-body-wrapper'); - if (body_hidden) + if (body_hidden) { body_hidden.removeAttribute('class'); + body_hidden.removeAttribute('style'); + } function thequint_unhide(node) { node.removeAttribute('style'); }