From 1360db4a9eb6266a208e83442d96942e66673495 Mon Sep 17 00:00:00 2001 From: zm-develops <241188374+zm-develops@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:56:53 +0000 Subject: [PATCH] Prevent iframe from blocking interaction (#5) --- src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index dcd9fb1..8b097ba 100644 --- a/src/index.js +++ b/src/index.js @@ -320,10 +320,12 @@ function createSandbox() { iframe.id = 'dominlinestylefilter-sandbox-' + hash; hashes.add(hash); - iframe.style.visibility = 'hidden'; + iframe.style.height = '100vh'; iframe.style.position = 'fixed'; + iframe.style.pointerEvents = 'none'; + iframe.style.userSelect = 'none'; + iframe.style.visibility = 'hidden'; iframe.style.width = '100vw'; - iframe.style.height = '100vh'; // figure out how this document is defined (doctype and charset) const charsetToUse = globalThis.document.characterSet || 'UTF-8';