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;