window.alert = function() {}; // or simply alert = function() {};