diff --git a/changelog.txt b/changelog.txt index 1f781d7b..5d429255 100644 --- a/changelog.txt +++ b/changelog.txt @@ -9,7 +9,7 @@ Fix Conde Nast magazines (cookies) Fix DvhN.nl (json) Fix Los Angeles Times & San Diego Union-Tribune Fix Madsack Mediengruppe -Fix The Atlantic (menu) +Fix The Atlantic (images) Fix The Australian (The Oz) Fix The Globe and Mail (media) diff --git a/contentScript.js b/contentScript.js index 3df30042..80ff3579 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4034,6 +4034,9 @@ else if (matchDomain('theathletic.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_"]'); hideDOMElement(...banners); } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index b04b9ee5..aba443fb 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -25,6 +25,11 @@ "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": { "allow_cookies": 1, "block_regex": "\\.piano\\.io\\/xbuilder\\/experience\\/execute", diff --git a/sites.js b/sites.js index 892f51b4..a90d552a 100644 --- a/sites.js +++ b/sites.js @@ -1778,8 +1778,8 @@ var defaultSites = { }, "The Atlantic": { domain: "theatlantic.com", - remove_cookies_select_drop: ["articleViews"], - useragent: "facebookbot" + block_regex: /cdn\.theatlantic\.com\/_next\/static\/chunks\/[5-7].+\.js/, + remove_cookies_select_drop: ["articleViews"] }, "The Australian Financial Review": { domain: "afr.com", diff --git a/sites_updated.json b/sites_updated.json index fc183288..10d1c350 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -76,7 +76,6 @@ }, "The Atlantic": { "domain": "theatlantic.com", - "remove_cookies_select_drop": ["articleViews"], - "useragent": "facebookbot" + "block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/[5-7].+\\.js" } }