Fix TownNews sites (css)

This commit is contained in:
magnolia1234 2022-07-31 10:43:57 +02:00
parent a59ae27c4c
commit a0dcaafc11
2 changed files with 7 additions and 2 deletions

View File

@ -12,6 +12,7 @@ Fix Bloomberg (graphics)
Fix Law.com (cookies) Fix Law.com (cookies)
Fix LesEchos.fr (timing) Fix LesEchos.fr (timing)
Fix McClatchy Group (identify site) Fix McClatchy Group (identify site)
Fix TownNews sites (css)
Fix Winnipeg Free Press (xhr) Fix Winnipeg Free Press (xhr)
* v2.7.7.0 (2022-07-24) * v2.7.7.0 (2022-07-24)

View File

@ -4101,12 +4101,16 @@ else if (matchDomain('wsj.com')) {
} }
} }
else if (matchDomain(usa_lee_ent_domains) || (window.location.pathname.endsWith('.amp.html') && document.querySelector('div.site-copyright>p> a[href^="https://bloxcms.com"]'))) { else if ((domain = matchDomain(usa_lee_ent_domains)) || document.querySelector('a[href^="https://bloxcms.com"][title^="BLOX"]')) {
if (window.location.pathname.endsWith('.amp.html')) { if (window.location.pathname.endsWith('.amp.html')) {
amp_unhide_access_hide('="hasAccess"', '="NOT hasAccess"'); amp_unhide_access_hide('="hasAccess"', '="NOT hasAccess"', 'amp-ad, amp-embed, .amp-ads-container');
let elem_hidden = document.querySelectorAll('html[class], body[class]'); let elem_hidden = document.querySelectorAll('html[class], body[class]');
for (let elem of elem_hidden) for (let elem of elem_hidden)
elem.removeAttribute('class'); elem.removeAttribute('class');
} else if (!domain) {
let subscriber_only = document.querySelectorAll('div.subscriber-only[style]:not(.encrypted-content)');
for (let elem of subscriber_only)
elem.removeAttribute('style');
} }
} }