Fix The Athletic (Ink-layout)
This commit is contained in:
parent
b81483744d
commit
d1a8ba17bb
@ -8,6 +8,7 @@ Add Nzz.ch Regional (opt-in to custom sites)
|
|||||||
Fix ABC.es (mobile)
|
Fix ABC.es (mobile)
|
||||||
Fix Adweek (free articles only)
|
Fix Adweek (free articles only)
|
||||||
Fix Quartz (newsletter)
|
Fix Quartz (newsletter)
|
||||||
|
Fix The Athletic (Ink-layout)
|
||||||
Update block general paywall script (Ensighten)
|
Update block general paywall script (Ensighten)
|
||||||
Update block general paywall script (Evolok WordPress)
|
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'])) {
|
else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
|
||||||
if (!window.location.href.includes('?amp')) {
|
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"]');
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
if (paywall.length && amphtml) {
|
if (paywall.length && amphtml) {
|
||||||
removeDOMElement(...paywall);
|
removeDOMElement(...paywall);
|
||||||
@ -2089,6 +2089,11 @@ else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
|
|||||||
amp_unhide_subscr_section();
|
amp_unhide_subscr_section();
|
||||||
let subscr_actions = document.querySelectorAll('[subscriptions-actions]');
|
let subscr_actions = document.querySelectorAll('[subscriptions-actions]');
|
||||||
removeDOMElement(...subscr_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-"]');
|
let podcast = document.querySelector('div[id^="podcast-clip-"]');
|
||||||
if (podcast) {
|
if (podcast) {
|
||||||
let podcast_src = podcast.innerHTML.replace(/<amp-/g, '<').replace(/<\/amp-/g, '</');
|
let podcast_src = podcast.innerHTML.replace(/<amp-/g, '<').replace(/<\/amp-/g, '</');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user