Fix Nw.de (amp-redirect)

This commit is contained in:
magnolia1234 2023-12-23 08:35:36 +01:00
parent efeec5243d
commit aecf619e49
3 changed files with 10 additions and 2 deletions

View file

@ -18,6 +18,7 @@ Fix LeParisien.fr (amp-redirect)
Fix London Review of Books (js-inline)
Fix Media Group Westfalen
Fix National Review (cookies)
Fix Nw.de (amp-redirect)
Fix NYmag-sites (js)
Grouping Haaretz sites
Enable optional host permissions on Android (Firefox 120+)

View file

@ -1138,9 +1138,9 @@ else if (matchDomain(['noz.de', 'shz.de', 'svz.de'])) {
else if (matchDomain('nw.de')) {
if (!window.location.pathname.endsWith('.amp.html')) {
amp_redirect('div[data-tracking-visible^="paywall-"]');
amp_redirect('a[data-event-value="paywall-overlay-click"]');
} else {
amp_unhide_access_hide('="loggedIn AND hasAbo"', '', 'amp-ad, amp-embed, .banner');
amp_unhide_access_hide('="loggedIn AND hasAbo"', '', 'amp-ad, amp-embed, .banner', false);
}
}

View file

@ -63,6 +63,13 @@
"cs_block": 1,
"upd_version": "3.4.7.3"
},
"Neue Westfälische": {
"domain": "nw.de",
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
"amp_redirect": "a[data-event-value='paywall-overlay-click']",
"upd_version": "3.4.7.9"
},
"New York Magazine (+ Curbed, Grub Street, The Cut & Vulture)": {
"domain": "###_usa_nymag",
"group": [