diff --git a/changelog.txt b/changelog.txt index 2916d77..b16e8fc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add The Japan Times Fix ilTirreno.it & LaNuovaSardegna.it Fix Koelner Stadt-Anzeiger & Koelnische Rundschau +Fix NYTimes (Cooking) * v2.7.5.0 (2022-07-10) Add Architectural Digest (Conde Nast) diff --git a/contentScript.js b/contentScript.js index bdb8f65..d47efb6 100755 --- a/contentScript.js +++ b/contentScript.js @@ -3270,14 +3270,15 @@ else if (matchDomain('nytimes.com')) { let no_scroll = document.querySelectorAll('.nytc---modal-window---noScroll'); for (let elem of no_scroll) elem.classList.remove('nytc---modal-window---noScroll'); - let login = document.querySelector('.nytc---modal-window---isShown'); + let login = document.querySelector('div[class*="modal_modal-window-container"]:not([style="display:none;"])'); if (login) { let close_button = login.querySelector('span[aria-label="close"]'); if (!close_button) - login.classList.remove('nytc---modal-window---isShown'); + login.style = 'display:none;'; } } else { waitDOMElement('div[data-testid="inline-message"]', 'DIV', removeDOMElement, false); + waitDOMElement('div[id^="ad-"]', 'DIV', removeDOMElement, false); waitDOMElement('div.expanded-dock', 'DIV', removeDOMElement, false); csDoneOnce = true; }