Fix The Athletic

This commit is contained in:
magnolia1234 2021-10-23 10:06:44 +02:00
parent 1c157e1afb
commit 7cba2e8fb6
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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 {