Fix NYTimes (Cooking)
This commit is contained in:
parent
3dd75a3e9b
commit
eab683a2e4
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
Post-release
|
||||
Add New Scientist
|
||||
Fix Los Angeles Times & San Diego Union-Tribune
|
||||
Fix NYTimes (Cooking)
|
||||
Fix The New York Review of Books (timing)
|
||||
|
||||
* v2.8.1.0 (2022-08-21)
|
||||
|
@ -3230,30 +3230,8 @@ else if (matchDomain('nybooks.com')) {
|
||||
}
|
||||
|
||||
else if (matchDomain('nytimes.com')) {
|
||||
function nyt_main() {
|
||||
navigator.storage.estimate = undefined;
|
||||
webkitRequestFileSystem = function () {};
|
||||
}
|
||||
insert_script(nyt_main);
|
||||
let preview_button = document.querySelector('.css-3s1ce0');
|
||||
if (preview_button)
|
||||
preview_button.click();
|
||||
if (window.location.hostname === 'cooking.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('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.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;
|
||||
}
|
||||
let banners = document.querySelectorAll('div[data-testid="inline-message"], div[id^="ad-"], div.expanded-dock');
|
||||
removeDOMElement(...banners);
|
||||
}
|
||||
|
||||
else if (matchDomain('nzherald.co.nz')) {
|
||||
|
@ -43,5 +43,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.8.1.3"
|
||||
"version": "2.8.1.4"
|
||||
}
|
||||
|
@ -106,6 +106,11 @@
|
||||
"block_regex": "\\.tinypass\\.com\\/",
|
||||
"domain": "nationalobserver.com"
|
||||
},
|
||||
"Nv.ua": {
|
||||
"allow_cookies": 1,
|
||||
"amp_redirect": "div[id^=\"media_paywall\"]",
|
||||
"domain": "nv.ua"
|
||||
},
|
||||
"Physicsworld.com": {
|
||||
"domain": "physicsworld.com"
|
||||
},
|
||||
@ -180,5 +185,10 @@
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.tinypass\\.com\\/",
|
||||
"domain": "toledoblade.com"
|
||||
},
|
||||
"Vigilantcitizen.com": {
|
||||
"allow_cookies": 1,
|
||||
"domain": "vigilantcitizen.com",
|
||||
"random_ip": "all"
|
||||
}
|
||||
}
|
||||
|
@ -686,5 +686,5 @@
|
||||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.8.1.3"
|
||||
"version": "2.8.1.4"
|
||||
}
|
||||
|
2
sites.js
2
sites.js
@ -1781,7 +1781,7 @@ var defaultSites = {
|
||||
"The New York Times": {
|
||||
domain: "nytimes.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(meter-svc\.nytimes\.com\/meter\.js|mwcm\.nyt\.com\/.+\.js)/
|
||||
block_regex: /(meter-svc\.nytimes\.com\/meter\.js|mwcm\.nyt\.com\/.+\.js|cooking\.nytimes\.com\/api\/.+\/access)/
|
||||
},
|
||||
"The Philadelphia Inquirer": {
|
||||
domain: "inquirer.com",
|
||||
|
@ -59,5 +59,10 @@
|
||||
"domain": "nybooks.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.nybooks\\.com\\/wp-admin\\/admin-ajax\\.php"
|
||||
},
|
||||
"The New York Times": {
|
||||
"domain": "nytimes.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(meter-svc\\.nytimes\\.com\\/meter\\.js|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user