From 279bdf8c7e8e82c25e871767089614d37695f704 Mon Sep 17 00:00:00 2001 From: martin legrand Date: Wed, 26 Mar 2025 12:23:12 +0100 Subject: [PATCH] rm : useless js function --- sources/web_scripts/inject_safety_script.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sources/web_scripts/inject_safety_script.js b/sources/web_scripts/inject_safety_script.js index cde4112..1ca2add 100644 --- a/sources/web_scripts/inject_safety_script.js +++ b/sources/web_scripts/inject_safety_script.js @@ -16,15 +16,6 @@ Element.prototype.requestFullscreen = function() { Element.prototype.requestPointerLock = function() { console.log('Blocked pointer lock'); }; -// Block iframe creation (optional, since browser already blocks these) -const originalCreateElement = document.createElement; -document.createElement = function(tagName) { - if (tagName.toLowerCase() === 'iframe') { - console.log('Blocked iframe creation'); - return null; - } - return originalCreateElement.apply(this, arguments); -}; //block fetch window.fetch = function() { console.log('Blocked fetch request');