I'm building a security framework which injects a javascript file which will always be executed first, and blocks some functions to be executed. The developers will make their own webapps and the script will make sure that some functionalities cannot be called.
Let's suppose the "blocking" script is like this:
window.alert = function(){Object.freeze(this)}
Is there any way for an application to circumvent this block, without using iframes/external files? delete(window.alert) doesn't work in this scenario.