diff --git a/changelog.txt b/changelog.txt
index fe3c8de..770e156 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Fix Lequipe.fr (json)
+Fix Neue Osnabrucker Zeitung (amp)
* v2.5.6.0 (2022-02-13)
Add Condé Nast magazines & Vogue Business
diff --git a/contentScript.js b/contentScript.js
index 0e91c6a..b10c41f 100755
--- a/contentScript.js
+++ b/contentScript.js
@@ -600,8 +600,7 @@ else if (matchDomain('mz.de')) {
}
else if (matchDomain(['noz.de', 'nwzonline.de', 'shz.de', 'svz.de'])) {
- let url = window.location.href;
- if (url.includes('?amp') || url.includes('-amp.html')) {
+ if (window.location.pathname.match(/(-amp\.html|\/amp)$/)) {
amp_unhide_access_hide('="NOT data.reduced"', '="data.reduced"', 'amp-ad, amp-embed, #flying-carpet-wrapper');
} else {
let paywall = document.querySelector('.paywall, .story--premium__container');
@@ -1165,7 +1164,7 @@ else if (matchDomain('lequipe.fr')) {
article_dom = parser.parseFromString('
' + DOMPurify.sanitize(article_text) + '
', 'text/html');
article.appendChild(article_dom.querySelector('div'));
}
- }
+ }
}
}
}
diff --git a/custom/manifest.json b/custom/manifest.json
index 59b9cc6..2ef65a6 100644
--- a/custom/manifest.json
+++ b/custom/manifest.json
@@ -39,5 +39,5 @@
"webRequestBlocking",
""
],
- "version": "2.5.6.1"
+ "version": "2.5.6.2"
}
diff --git a/manifest.json b/manifest.json
index e7ac3e1..1862ff4 100755
--- a/manifest.json
+++ b/manifest.json
@@ -608,5 +608,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
- "version": "2.5.6.1"
+ "version": "2.5.6.2"
}
diff --git a/sites_updated.json b/sites_updated.json
index 8c75d39..96f0f14 100644
--- a/sites_updated.json
+++ b/sites_updated.json
@@ -72,6 +72,12 @@
"allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.mjs)"
},
+ "Neue Osnabrücker Zeitung": {
+ "domain": "noz.de",
+ "allow_cookies": 1,
+ "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\\.js",
+ "amp_unhide": 1
+ },
"New York Magazine (+ Curbed, Grub Street, The Cut & Vulture)": {
"domain": "###_usa_nymag",
"group": [