Saturday, May 1, 2010

Holy God! They're Bug Sweeping

And there it was:

var FirebugUtils={

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();
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.
  1. If it works.
  2. How best to break it.
Fun stuff.