From d5f2020df14ecfd7d7c23609b096465c6cd57676 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 10 May 2022 22:31:14 +0200 Subject: [PATCH] Fix The Dallas Morning News --- changelog.txt | 1 + contentScript.js | 6 ++++++ sites.js | 3 ++- sites_updated.json | 6 ++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 6a97a841..e58462b1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add UnHerd (UK) Remove The Japan Times (fix obsolete) Fix Lequipe.fr (json) +Fix The Dallas Morning News * v2.6.8.0 (2022-05-08) Add De Tijd & L'Echo diff --git a/contentScript.js b/contentScript.js index 37227f48..97f3148e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2514,6 +2514,12 @@ else if (matchDomain('dailywire.com')) { else if (matchDomain('dallasnews.com')) { if (window.location.search.startsWith('?outputType=amp')) { amp_unhide_subscr_section('amp-ad, amp-embed'); + } else { + let overlay = document.querySelector('div.sl-overlay'); + removeDOMElement(overlay); + let noscroll = document.querySelector('div#courier-body-wrapper[style]'); + if (noscroll) + noscroll.removeAttribute('style'); } } diff --git a/sites.js b/sites.js index f2de8c0f..3d0bea32 100644 --- a/sites.js +++ b/sites.js @@ -1604,7 +1604,8 @@ var defaultSites = { "The Dallas Morning News": { domain: "dallasnews.com", allow_cookies: 1, - block_regex: /(\.blueconic\.net\/|js\.matheranalytics\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/ + block_regex: /(\.blueconic\.net\/|js\.matheranalytics\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/, + useragent: "googlebot" }, "The Diplomat": { domain: "thediplomat.com", diff --git a/sites_updated.json b/sites_updated.json index 1618b1ce..33741e70 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -63,6 +63,12 @@ ], "new_site": 1 }, + "The Dallas Morning News": { + "domain": "dallasnews.com", + "allow_cookies": 1, + "block_regex": "(\\.blueconic\\.net\\/|js\\.matheranalytics\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", + "useragent": "googlebot" + }, "UnHerd": { "domain": "unherd.com", "allow_cookies": 1,