Fix Noz.de (no amp)

merge-requests/10/head
magnolia1234 2 years ago
parent cb4fcff10e
commit 5ea11605f0

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Fix Business Standard (images) Fix Business Standard (images)
Fix DN.no (images) Fix DN.no (images)
Fix Noz.de (no amp)
Fix The Athletic (regwall) Fix The Athletic (regwall)
Update custom flex sites (identify on dom) Update custom flex sites (identify on dom)

@ -694,6 +694,9 @@ else if (matchDomain(['noz.de', 'shz.de', 'svz.de'])) {
if (paywall && amphtml) { if (paywall && amphtml) {
removeDOMElement(paywall); removeDOMElement(paywall);
window.location.href = amphtml.href; window.location.href = amphtml.href;
} else {
let ads = document.querySelectorAll('div.nozmhn_ad');
removeDOMElement(...ads);
} }
} }
} }

@ -1328,7 +1328,8 @@ var defaultSites = {
"Neue Osnabrücker Zeitung": { "Neue Osnabrücker Zeitung": {
domain: "noz.de", domain: "noz.de",
allow_cookies: 1, allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/ block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
useragent: "googlebot"
}, },
"Neue Westfälische": { "Neue Westfälische": {
domain: "nw.de", domain: "nw.de",

@ -8,6 +8,12 @@
"block_regex": "\\.poool\\.fr\\/", "block_regex": "\\.poool\\.fr\\/",
"ld_json": "div#poool-widget|div.entry-content" "ld_json": "div#poool-widget|div.entry-content"
}, },
"Neue Osnabrücker Zeitung": {
"domain": "noz.de",
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
"useragent": "googlebot"
},
"The Atlantic": { "The Atlantic": {
"domain": "theatlantic.com", "domain": "theatlantic.com",
"block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/[567].+\\.js", "block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/[567].+\\.js",

Loading…
Cancel
Save