mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix NYTimes (Cooking)
This commit is contained in:
parent
83ebb03b13
commit
e48cccce47
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user