|
|
@ -3620,25 +3620,14 @@ else if (matchDomain('the-american-interest.com')) {
|
|
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('theathletic.com')) {
|
|
|
|
else if (matchDomain('theathletic.com')) {
|
|
|
|
if (!window.location.search.match(/(\?|&)amp/)) {
|
|
|
|
if (!window.location.search.match(/(\?|&)amp/)) {
|
|
|
|
let paywall = document.querySelector('div#slideup-paywall');
|
|
|
|
let paywall = document.querySelector('meta[content="article"]');
|
|
|
|
if (paywall) {
|
|
|
|
|
|
|
|
let overlays = document.querySelectorAll('div[id*="overlay"], div:empty:not([data-rjs])');
|
|
|
|
|
|
|
|
removeDOMElement(paywall, ...overlays);
|
|
|
|
|
|
|
|
let body = document.querySelector('body');
|
|
|
|
|
|
|
|
if (body) {
|
|
|
|
|
|
|
|
body.style.overflow = 'visible';
|
|
|
|
|
|
|
|
body.style.position = 'relative';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
let headline_paywall = document.querySelectorAll('a.headline-paywall');
|
|
|
|
|
|
|
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
|
|
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
|
|
|
if (headline_paywall.length && amphtml) {
|
|
|
|
if (paywall && amphtml) {
|
|
|
|
removeDOMElement(...headline_paywall);
|
|
|
|
removeDOMElement(paywall);
|
|
|
|
window.setTimeout(function () {
|
|
|
|
window.setTimeout(function () {
|
|
|
|
window.location.href = amphtml.href;
|
|
|
|
window.location.href = amphtml.href;
|
|
|
|
}, 1000);
|
|
|
|
}, 1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
amp_unhide_subscr_section();
|
|
|
|
amp_unhide_subscr_section();
|
|
|
|
amp_unhide_access_hide('', '*="NOT granted"');
|
|
|
|
amp_unhide_access_hide('', '*="NOT granted"');
|
|
|
|