/ Published in: JavaScript
URL: http://www.seifi.org/javascript/sniff-and-disable-firebug-howto-gmail-example.html
Sniff and disable Firebug. Not sure why you'd need it though. Firebug is just great.
Expand |
Embed | Plain Text
// code yanked from the Yahoo media player. Thanks, Yahoo. if (! ("console" in window) || !("firebug" in console)) { var names = ["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() {}; }
Comments
Subscribe to comments
You need to login to post a comment.

it's probably so firebug-using-developers cant see just how horrible their code really is :P
you never know :)