diff --git a/.vscode/settings.json b/.vscode/settings.json index 895cec7..047b845 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,6 +27,7 @@ "fakeable", "fragmenter", "graytext", + "iframe", "ignorelist", "micrococo", "monero", @@ -39,6 +40,8 @@ "unticking", "webgl", "whitelisted", + "writeln", + "wyciwyg", "yfdyh" ], "cSpell.language": "en,de,en-GB" diff --git a/lib/iframeProtection.js b/lib/iframeProtection.js index 62ff30f..996acea 100644 --- a/lib/iframeProtection.js +++ b/lib/iframeProtection.js @@ -148,7 +148,12 @@ ); const documentWrite = documentWriteDescriptor.value; documentWriteDescriptor.value = exportFunction(function write(str){ - const parts = str.split(/(?=<)/); + str = "" + str; + // weird problem with waterfox and google docs + const parts = ( + str.match(/^\s*