From 90a7c6c5b7b0c312389bd3ccbc5fd1df37811e4a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 24 Jul 2021 09:52:36 +0200 Subject: [PATCH] Fix WaPo (magazine) --- changelog.txt | 1 + contentScript.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 4dfef32..bf0ebce 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,6 +9,7 @@ Fix Bloomberg Fix Nikkei Asian Review (cookies) Fix The Daily Telegraph (au) Fix Times of India (TOI+ region block) +Fix WaPo (magazine) * v2.2.9.0 (2021-07-11) Add TradeWinds diff --git a/contentScript.js b/contentScript.js index 189121c..e1dd80f 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2626,9 +2626,11 @@ else if (matchDomain('washingtonpost.com')) { } let url = window.location.href; if (!url.includes('outputType=amp')) { - waitDOMElement('div[id^="paywall-"]', 'DIV', wapo_main, false); + waitDOMElement('div[id^="paywall-"], div.wp_signin, div#wp_Signin', 'DIV', wapo_main, false); waitDOMElement('div[data-qa*="wall"]', 'DIV', removeDOMElement, true); - waitDOMAttribute('body', 'BODY', 'style', wapo_overlay, true); + window.setTimeout(function () { + waitDOMAttribute('body', 'BODY', 'style', wapo_overlay, true); + }, 500); // Delay (in milliseconds) waitDOMAttribute('html', 'HTML', 'style', wapo_overlay, false); if (!url.includes('/interactive/')) csDoneOnce = true;