Fix NYTimes (Cooking)

This commit is contained in:
magnolia1234 2022-07-13 21:27:02 +02:00
parent 83ebb03b13
commit e48cccce47
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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;
}