Disable Firebug


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. // code yanked from the Yahoo media player. Thanks, Yahoo.
  2. if (! ("console" in window) || !("firebug" in console)) {
  3. var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group"
  4. , "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
  5. window.console = {};
  6. for (var i = 0; i <names.length; ++i) window.console[names[i]] = function() {};
  7. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.