andrew4582

firebugx.js

Jul 23rd, 2011
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (!("console" in window) || !("firebug" in console))
  2. {
  3.     var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
  4.     "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
  5.  
  6.     window.console = {};
  7.     for (var i = 0; i < names.length; ++i)
  8.         window.console[names[i]] = function() {}
  9. }
Advertisement
Add Comment
Please, Sign In to add comment