Disable the Firebug extension

Useful for pages containing a lot of javascript that might bring Firefox to a grinding halt if it’s not disabled.

	if (! ('console' in window) || !('firebug' in console)) {
	    var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];
	    window.console = {};
	    for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
	}

Originally found here

No Comments

No comments yet.

TrackBack URL

Sorry, the comment form is closed at this time.