Return to Snippet

Revision: 8396
at September 18, 2008 10:57 by zerolab


Initial Code
// 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() {};
}

Initial URL
http://www.seifi.org/javascript/sniff-and-disable-firebug-howto-gmail-example.html

Initial Description
Sniff and disable Firebug. Not sure why you'd need it though. Firebug is just great.

Initial Title
Disable Firebug

Initial Tags
javascript

Initial Language
JavaScript