From ef0583a8c9fa99886fe850b4d4c1f9b42fc80f2e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 5 Jan 2024 17:04:21 +0100 Subject: [PATCH] Fix Ad.nl (reduced only) --- changelog.txt | 1 + contentScript.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 6c893bd..1fbcf98 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Add Motor Presse Stuttgart Add JournaldeMillau.fr (Groupe La Depeche) Remove Bhaskar (fix obsolete) Remove Westfalische Mediengruppe (fix obsolete) +Fix Ad.nl (reduced only) Fix Haaretz Group (Semrushbot) Fix The Diplomat (magazine) Fix Times of India (epaper) diff --git a/contentScript.js b/contentScript.js index 7d495ce..b20609c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2635,7 +2635,7 @@ else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('head > lin else if (matchDomain(nl_dpg_adr_domains)) { let url = window.location.href; - let paywall = document.querySelector('div#remaining-paid-content'); + let paywall = document.querySelector('div#remaining-paid-content[data-reduced="true"]'); if (paywall) { removeDOMElement(paywall); getArchive(url, 'div.article__body', '', 'div#remaining-paid-content');