From 890bf6bfcd6046679f6c13d8af7f8189e808dacc Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 17 Sep 2023 17:09:55 +0000 Subject: [PATCH] Disallow running on iframes Signed-off-by: baalajimaestro --- script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script.js b/script.js index 78ee700..838464d 100644 --- a/script.js +++ b/script.js @@ -24,6 +24,11 @@ // @grant none // ==/UserScript== +// dont touch iframes +if (window.top != window.self) { + return; +} + // our document location let link = document.location.href;