Fix Neue Osnabrucker Zeitung (amp)

This commit is contained in:
magnolia1234 2022-02-15 18:44:20 +01:00
parent bb30ba96c3
commit 4ce9504093
5 changed files with 11 additions and 5 deletions

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release Post-release
Fix Lequipe.fr (json) Fix Lequipe.fr (json)
Fix Neue Osnabrucker Zeitung (amp)
* v2.5.6.0 (2022-02-13) * v2.5.6.0 (2022-02-13)
Add Condé Nast magazines & Vogue Business Add Condé Nast magazines & Vogue Business

View File

@ -600,8 +600,7 @@ else if (matchDomain('mz.de')) {
} }
else if (matchDomain(['noz.de', 'nwzonline.de', 'shz.de', 'svz.de'])) { else if (matchDomain(['noz.de', 'nwzonline.de', 'shz.de', 'svz.de'])) {
let url = window.location.href; if (window.location.pathname.match(/(-amp\.html|\/amp)$/)) {
if (url.includes('?amp') || url.includes('-amp.html')) {
amp_unhide_access_hide('="NOT data.reduced"', '="data.reduced"', 'amp-ad, amp-embed, #flying-carpet-wrapper'); amp_unhide_access_hide('="NOT data.reduced"', '="data.reduced"', 'amp-ad, amp-embed, #flying-carpet-wrapper');
} else { } else {
let paywall = document.querySelector('.paywall, .story--premium__container'); let paywall = document.querySelector('.paywall, .story--premium__container');

View File

@ -39,5 +39,5 @@
"webRequestBlocking", "webRequestBlocking",
"<all_urls>" "<all_urls>"
], ],
"version": "2.5.6.1" "version": "2.5.6.2"
} }

View File

@ -608,5 +608,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.5.6.1" "version": "2.5.6.2"
} }

View File

@ -72,6 +72,12 @@
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.mjs)" "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)": { "New York Magazine (+ Curbed, Grub Street, The Cut & Vulture)": {
"domain": "###_usa_nymag", "domain": "###_usa_nymag",
"group": [ "group": [