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()) {
disable: function() {

window.console = {};
var methods = this.consoleMethods;
for (var i=methods.length-1; i > -1; i--) {
window.console[methods[i]] = function(){};

They're disabling FireBug, or at least trying. I found this little gem on What a bunch of assholes. Now I must decide.
  1. If it works.
  2. How best to break it.
Fun stuff.

No comments: