Skip to content

Instantly share code, notes, and snippets.

@arnalyse
Created March 20, 2012 16:05
Show Gist options
  • Save arnalyse/2137548 to your computer and use it in GitHub Desktop.
Save arnalyse/2137548 to your computer and use it in GitHub Desktop.
JS: Hide Firebug console from IE
if (typeof window.console == 'undefined') {
var names = ["clear", "groupCollapsed", "timeStamp", "log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; i++) {
window.console[names[i]] = function(){};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment