From 148572cf54a908328807a5f0fc1dcf343dea62e9 Mon Sep 17 00:00:00 2001 From: David Dick Date: Fri, 31 May 2024 19:48:26 +1000 Subject: [PATCH] Remove the script element --- lib/Firefox/Marionette/Extension/Stealth.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Firefox/Marionette/Extension/Stealth.pm b/lib/Firefox/Marionette/Extension/Stealth.pm index 7adf937..55e7d51 100644 --- a/lib/Firefox/Marionette/Extension/Stealth.pm +++ b/lib/Firefox/Marionette/Extension/Stealth.pm @@ -95,6 +95,7 @@ sub _content_contents { let text = document.createTextNode('$user_agent_contents'); script.appendChild(text); (document.head || document.documentElement).appendChild(script); + script.remove(); } _JS_ }