Fix The Athletic (Ink-layout)

merge-requests/4/head
magnolia1234 2 years ago
parent f0832199a2
commit f422de0f30

@ -8,6 +8,7 @@ Add Nzz.ch Regional (opt-in to custom sites)
Fix ABC.es (mobile)
Fix Adweek (free articles only)
Fix Quartz (newsletter)
Fix The Athletic (Ink-layout)
Update block general paywall script (Ensighten)
Update block general paywall script (Evolok WordPress)

@ -2077,7 +2077,7 @@ else if (matchDomain('the-tls.co.uk')) {
else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
if (!window.location.href.includes('?amp')) {
let paywall = document.querySelectorAll('div#paywall-container, div[subscriptions-action="subscribe"], a.headline-paywall');
let paywall = document.querySelectorAll('div#paywall-container, div[subscriptions-action="subscribe"], a.headline-paywall, div#slideup-paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall.length && amphtml) {
removeDOMElement(...paywall);
@ -2089,6 +2089,11 @@ else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
amp_unhide_subscr_section();
let subscr_actions = document.querySelectorAll('[subscriptions-actions]');
removeDOMElement(...subscr_actions);
let layout_fail = document.querySelectorAll('.col-sm-12');
for (let elem of layout_fail) {
elem.classList.remove('col-sm-12');
elem.style = 'padding: 0px 15px;';
}
let podcast = document.querySelector('div[id^="podcast-clip-"]');
if (podcast) {
let podcast_src = podcast.innerHTML.replace(/<amp-/g, '<').replace(/<\/amp-/g, '</');

Loading…
Cancel
Save