Fix Vrij Nederland (iframe)

This commit is contained in:
magnolia1234 2022-06-06 14:11:49 +02:00
parent b787db0738
commit 2b4a691d31
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Remove Handelsblatt
Remove Study.com (fix obsolete) Remove Study.com (fix obsolete)
Fix LesEchos.fr (refresh) Fix LesEchos.fr (refresh)
Fix Quartz (newsletter) Fix Quartz (newsletter)
Fix Vrij Nederland (iframe)
Update block general paywall script (Zephr-local) Update block general paywall script (Zephr-local)
* v2.7.1.0 (2022-05-29) * v2.7.1.0 (2022-05-29)

View File

@ -2101,7 +2101,7 @@ else if (matchDomain('vn.nl')) {
let content = document.querySelector('div[data-article-content-target]'); let content = document.querySelector('div[data-article-content-target]');
if (json_text && content) { if (json_text && content) {
let parser = new DOMParser(); let parser = new DOMParser();
let doc = parser.parseFromString('<div data-article-content-target>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html'); let doc = parser.parseFromString('<div data-article-content-target>' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe'], ADD_ATTR: ['frameborder']}) + '</div>', 'text/html');
let content_new = doc.querySelector('div'); let content_new = doc.querySelector('div');
content.parentNode.replaceChild(content_new, content); content.parentNode.replaceChild(content_new, content);
} }