Fix NYTimes

This commit is contained in:
magnolia1234 2023-04-14 19:17:59 +02:00
parent 901db58548
commit 9e236d98b1
6 changed files with 10 additions and 4 deletions

View File

@ -7,6 +7,7 @@ Add El Observador, El Pais & La Diaria (Uruguay)
Add Jacobin.de
Add Substack (link to Google Search Tool; opt-in to custom sites for custom domains)
Fix Berlingske.dk
Fix NYTimes
Remove Zeit.de (fix obsolete)
Update block general paywall script (Ippen.space)
Update popup (12ft.io)

View File

@ -3847,7 +3847,7 @@ else if (matchDomain('nybooks.com')) {
}
else if (matchDomain('nytimes.com')) {
let banners = document.querySelectorAll('div[data-testid="inline-message"], div[id^="ad-"], div.expanded-dock');
let banners = document.querySelectorAll('div[data-testid="inline-message"], div[id^="ad-"], div.expanded-dock, div[id$="-wrapper"]');
removeDOMElement(...banners);
}

View File

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.1.3.4"
"version": "3.1.3.5"
}

View File

@ -753,5 +753,5 @@
"*://html.onlineviewer.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.1.3.4"
"version": "3.1.3.5"
}

View File

@ -2053,7 +2053,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|cooking\.nytimes\.com\/api\/.+\/access)/
block_regex: /(\.nytimes\.com\/(meter\.js|graphql\/v\d)|mwcm\.nyt\.com\/.+\.js|cooking\.nytimes\.com\/api\/.+\/access)/
},
"The Philadelphia Inquirer": {
domain: "inquirer.com",

View File

@ -102,6 +102,11 @@
"block_regex": "\\/blink\\.net\\/.+\\/blink-sdk\\.js",
"cs_code": "[{\"cond\":\"div.article-scheduled-modal\",\"rm_elem\":1}]"
},
"The New York Times": {
"domain": "nytimes.com",
"allow_cookies": 1,
"block_regex": "(\\.nytimes\\.com\\/(meter\\.js|graphql\\/v\\d)|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)"
},
"The Spectator World - new domain": {
"domain": "thespectator.com",
"allow_cookies": 1,