Fix Nordwest Zeitung

This commit is contained in:
magnolia1234 2023-01-05 08:39:31 +01:00
parent cacd007a93
commit 1c2c69568f
4 changed files with 12 additions and 11 deletions

View file

@ -11,6 +11,7 @@ Remove Entrepreneur (fix obsolete)
Remove The-Village.ru (fix obsolete) Remove The-Village.ru (fix obsolete)
Fix Aftonbladet.se (link to archive.is) Fix Aftonbladet.se (link to archive.is)
Fix Boston Globe (css) Fix Boston Globe (css)
Fix Nordwest Zeitung
Fix Substack (split content) Fix Substack (split content)
Fix Telegraaf.nl Fix Telegraaf.nl
Fix TheSaturdayPaper.com.au Fix TheSaturdayPaper.com.au
@ -984,7 +985,7 @@ Update options: restore opt-in for custom sites (on reload; Chrome-only)
Add Aachener-Zeitung.de (RP-medien) Add Aachener-Zeitung.de (RP-medien)
Add Apollo Magazine Add Apollo Magazine
Add NK News (not pro) Add NK News (not pro)
Add Nordwest Zeitung (Germany) Add Nordwest Zeitung
Fix McClatchy Group (opt-in to custom sites for unlisted) Fix McClatchy Group (opt-in to custom sites for unlisted)
Fix Wired (Googlebot) Fix Wired (Googlebot)
Fix WSJ (option to disable Googlebot; http error 500) Fix WSJ (option to disable Googlebot; http error 500)

View file

@ -676,11 +676,10 @@ else if (matchDomain('nwzonline.de')) {
if (window.location.pathname.match(/-amp\.html$/)) { if (window.location.pathname.match(/-amp\.html$/)) {
amp_unhide_access_hide('="NOT data.reduced"', '="data.reduced"', 'amp-ad, amp-embed'); amp_unhide_access_hide('="NOT data.reduced"', '="data.reduced"', 'amp-ad, amp-embed');
} else { } else {
let paywall = document.querySelector('.story--premium__container'); let paywall = document.querySelector('.story--premium__container, .paywall-overlay');
let amphtml = document.querySelector('link[rel="amphtml"]'); if (paywall) {
if (paywall && amphtml) {
removeDOMElement(paywall); removeDOMElement(paywall);
window.location.href = amphtml.href; window.location.href = window.location.pathname.replace('.html', '-amp.html');
} }
} }
} }

View file

@ -721,5 +721,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "2.9.8.2" "version": "2.9.9.7"
} }

View file

@ -15,17 +15,18 @@
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "(\\.evolok\\.net\\/|\\.lavanguardia\\.com\\/js\\/godo-basex-)" "block_regex": "(\\.evolok\\.net\\/|\\.lavanguardia\\.com\\/js\\/godo-basex-)"
}, },
"Nordwest Zeitung": {
"domain": "nwzonline.de",
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
"amp_redirect": ".paywall-overlay"
},
"Republic.ru": { "Republic.ru": {
"domain": "republic.ru", "domain": "republic.ru",
"allow_cookies": 1, "allow_cookies": 1,
"useragent": "googlebot", "useragent": "googlebot",
"new_site": 1 "new_site": 1
}, },
"The Village.ru": {
"domain": "the-village.ru",
"allow_cookies": 1,
"block_regex": "\\.the-village\\.ru\\/assets\\/app\\/\\d.+\\.js"
},
"WirtschaftsWoche": { "WirtschaftsWoche": {
"domain": "wiwo.de", "domain": "wiwo.de",
"allow_cookies": 1, "allow_cookies": 1,