Fix The Athletic

merge-requests/2/head
magnolia1234 3 years ago
parent 1c157e1afb
commit 7cba2e8fb6

@ -12,6 +12,7 @@ Fix Il Tirreno (GElocal.it)
Fix Financial Times (amp)
Fix Knack.be
Fix La Croix (timing)
Fix The Athletic
Fix The Globe and Mail
Fix The New Yorker (homepage)
Fix Trouw.nl (timing)

@ -1428,10 +1428,10 @@ else if (matchDomain('the-tls.co.uk')) {
else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
if (!window.location.href.includes('?amp')) {
let paywall = document.querySelector('div#paywall-container, div[subscriptions-action="subscribe"]');
let paywall = document.querySelectorAll('div#paywall-container, div[subscriptions-action="subscribe"]', 'a.headline-paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
removeDOMElement(...paywall);
window.location.href = amphtml.href;
}
} else {

Loading…
Cancel
Save