mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Fix NYTimes (Cooking)
This commit is contained in:
parent
83ebb03b13
commit
e48cccce47
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue