// Redefine the console.log function in your script. console.log = function() {} // similarly for other console levels console.warn = function() {}