/ Published in: JavaScript

Sniff and disable Firebug. Not sure why you'd need it though. Firebug is just great.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// 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() {}; }
URL: http://www.seifi.org/javascript/sniff-and-disable-firebug-howto-gmail-example.html
Comments
