rm : useless js function

This commit is contained in:
martin legrand 2025-03-26 12:23:12 +01:00
parent 7d67ae2562
commit 279bdf8c7e

View File

@ -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');