mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01:00
Fix TownNews sites (css)
This commit is contained in:
parent
a59ae27c4c
commit
a0dcaafc11
2 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue