Fix The Dallas Morning News

This commit is contained in:
magnolia1234 2022-05-10 22:31:14 +02:00
parent ee5ebd86d3
commit d5f2020df1
4 changed files with 15 additions and 1 deletions

View file

@ -5,6 +5,7 @@ Post-release
Add UnHerd (UK) Add UnHerd (UK)
Remove The Japan Times (fix obsolete) Remove The Japan Times (fix obsolete)
Fix Lequipe.fr (json) Fix Lequipe.fr (json)
Fix The Dallas Morning News
* v2.6.8.0 (2022-05-08) * v2.6.8.0 (2022-05-08)
Add De Tijd & L'Echo Add De Tijd & L'Echo

View file

@ -2514,6 +2514,12 @@ else if (matchDomain('dailywire.com')) {
else if (matchDomain('dallasnews.com')) { else if (matchDomain('dallasnews.com')) {
if (window.location.search.startsWith('?outputType=amp')) { if (window.location.search.startsWith('?outputType=amp')) {
amp_unhide_subscr_section('amp-ad, amp-embed'); 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');
} }
} }

View file

@ -1604,7 +1604,8 @@ var defaultSites = {
"The Dallas Morning News": { "The Dallas Morning News": {
domain: "dallasnews.com", domain: "dallasnews.com",
allow_cookies: 1, 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": { "The Diplomat": {
domain: "thediplomat.com", domain: "thediplomat.com",

View file

@ -63,6 +63,12 @@
], ],
"new_site": 1 "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": { "UnHerd": {
"domain": "unherd.com", "domain": "unherd.com",
"allow_cookies": 1, "allow_cookies": 1,