var FirebugUtils={
They're disabling FireBug, or at least trying. I found this little gem on Britainica.com. What a bunch of assholes. Now I must decide.
consoleMethods: ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"],
available: function() {
return false;
},
init: function() {
if (!this.available()) {
this.disable();
}
},
disable: function() {
if(!window.console){
window.console = {};
var methods = this.consoleMethods;
for (var i=methods.length-1; i > -1; i--) {
window.console[methods[i]] = function(){};
}
}
}
};
FirebugUtils.init();
- If it works.
- How best to break it.