From 8e5d62a16cd47a285a9a006dc3b7cbea2a1e897b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 21 Apr 2022 21:27:17 +0200 Subject: [PATCH] Fix Fortune (magazine) --- changelog.txt | 1 + contentScript.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 7640de69..93d0d938 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Add Peloton Add Podium Runner Add Rock and Ice Fix El Pais (amp/video) +Fix Fortune (magazine) * v2.6.5.0 (2022-04-18) Add Aftonbladet.se diff --git a/contentScript.js b/contentScript.js index ee3fb94a..daf2b426 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2697,10 +2697,13 @@ else if (matchDomain('foreignpolicy.com')) { } else if (matchDomain('fortune.com')) { + let paywall = document.querySelector('.paywall'); if (window.location.pathname.endsWith('/amp/')) { amp_unhide_access_hide('="NOT p.showRegWall AND NOT p.showPayWall"', '', '[class^="amp-ad"]'); - let paywall = document.querySelector('.paywall'); removeDOMElement(paywall); + } else { + if (paywall) + paywall.removeAttribute('class'); } }