var alert = function(){ console.log("Не работает"); } alert = Window.prototype.alert; alert("Работает");