Has anyone got any experience with overriding the alert() function in JavaScript?
All JavaScript implementations in modern browsers support overriding.
The dangers are quite simply, that you would drive other team members absolutely crazy by overriding commonly known functions such as alert().
So unless you are overriding functions as a tool to perhaps debug or hack existing code in some way, I don't see any reason to do it. Just create a new function.