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
Fix Lequipe.fr (json)
Fix Neue Osnabrucker Zeitung (amp)
* v2.5.6.0 (2022-02-13)
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'])) {
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('<div style="margin:20px; font-famile:"DINNextLTPro-Regular",sans-serif; fot-size:18px;">' + DOMPurify.sanitize(article_text) + '</div>', 'text/html');
article.appendChild(article_dom.querySelector('div'));
}
}
}
}
}
}

View File

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

View File

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

View File

@ -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": [