Simply overwrite alert with your own, empty, function.
window.alert = function() {};
// or simply
alert = function() {};
Simply overwrite alert with your own, empty, function.
window.alert = function() {};
// or simply
alert = function() {};