Fix Vrij Nederland (iframe)
This commit is contained in:
parent
b787db0738
commit
2b4a691d31
@ -9,6 +9,7 @@ Remove Handelsblatt
|
||||
Remove Study.com (fix obsolete)
|
||||
Fix LesEchos.fr (refresh)
|
||||
Fix Quartz (newsletter)
|
||||
Fix Vrij Nederland (iframe)
|
||||
Update block general paywall script (Zephr-local)
|
||||
|
||||
* v2.7.1.0 (2022-05-29)
|
||||
|
@ -2101,7 +2101,7 @@ else if (matchDomain('vn.nl')) {
|
||||
let content = document.querySelector('div[data-article-content-target]');
|
||||
if (json_text && content) {
|
||||
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');
|
||||
content.parentNode.replaceChild(content_new, content);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user