Fix The Atlantic (images)

This commit is contained in:
magnolia1234 2023-02-04 07:49:48 +01:00
parent 84c831c5b4
commit c4a4115bf3
5 changed files with 12 additions and 5 deletions

View File

@ -9,7 +9,7 @@ Fix Conde Nast magazines (cookies)
Fix DvhN.nl (json) Fix DvhN.nl (json)
Fix Los Angeles Times & San Diego Union-Tribune Fix Los Angeles Times & San Diego Union-Tribune
Fix Madsack Mediengruppe Fix Madsack Mediengruppe
Fix The Atlantic (menu) Fix The Atlantic (images)
Fix The Australian (The Oz) Fix The Australian (The Oz)
Fix The Globe and Mail (media) Fix The Globe and Mail (media)

View File

@ -4034,6 +4034,9 @@ else if (matchDomain('theathletic.com')) {
} }
else if (matchDomain('theatlantic.com')) { else if (matchDomain('theatlantic.com')) {
let lazy_images = document.querySelectorAll('img.Image_lazy__tutlP');
for (let elem of lazy_images)
elem.classList.remove('Image_lazy__tutlP');
let banners = document.querySelectorAll('.c-nudge__container, .c-non-metered-nudge, div[class^="ArticleInjector_"]'); let banners = document.querySelectorAll('.c-nudge__container, .c-non-metered-nudge, div[class^="ArticleInjector_"]');
hideDOMElement(...banners); hideDOMElement(...banners);
} }

View File

@ -25,6 +25,11 @@
"Brainly.com": { "Brainly.com": {
"domain": "brainly.com" "domain": "brainly.com"
}, },
"Brandonsun.com": {
"allow_cookies": 1,
"block_regex": "account\\.brandonsun\\.com\\/api\\/v\\d\\/auth\\/identify",
"domain": "brandonsun.com"
},
"Brusselstimes.com": { "Brusselstimes.com": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.piano\\.io\\/xbuilder\\/experience\\/execute", "block_regex": "\\.piano\\.io\\/xbuilder\\/experience\\/execute",

View File

@ -1778,8 +1778,8 @@ var defaultSites = {
}, },
"The Atlantic": { "The Atlantic": {
domain: "theatlantic.com", domain: "theatlantic.com",
remove_cookies_select_drop: ["articleViews"], block_regex: /cdn\.theatlantic\.com\/_next\/static\/chunks\/[5-7].+\.js/,
useragent: "facebookbot" remove_cookies_select_drop: ["articleViews"]
}, },
"The Australian Financial Review": { "The Australian Financial Review": {
domain: "afr.com", domain: "afr.com",

View File

@ -76,7 +76,6 @@
}, },
"The Atlantic": { "The Atlantic": {
"domain": "theatlantic.com", "domain": "theatlantic.com",
"remove_cookies_select_drop": ["articleViews"], "block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/[5-7].+\\.js"
"useragent": "facebookbot"
} }
} }