views:

208

answers:

3

Look

Screenshot of Google identifying Firebug use

Wow!

How can the webpage know I'm using firebug?

BTW I couldn't find out how to show the translucent add banner.

+10  A: 

You can do:

if(window.console && window.console.firebug)
{
    alert("Firebug active!");
}
RedFilter
+3  A: 

This works not only from the Firebug console, but also from within the page:

if (document.getElementById('_firebugConsole'))
   alert("fire!");
sth
That won't work once you update to Firebug 1.6.
johnjbarton
A: 

Both answers will alert if the Firebug user has activated the Console panel. If users disable the Console panel, but leave the rest of Firebug up, the alerts will not fire (because Firebug does not inject the console object in that case).

johnjbarton
Yes, but it's the console -- with its scrolling display of errors/messages/ajax-calls -- that Google claims slow things down.
Brock Adams
Well for once they are correct. But I don't get it, why do you care about google's warning if you turn on debugging for their site?
johnjbarton
@johnjbarton: Generic reasons to care: (1) They suggest a way to remedy the problem if such debugging actually does slow down the site too much. (2) The fact that they detect it means that they can take counter-measures. In fact, that warning **is** a counter-measure. Personally, if I am trying to fix someone's busted-arse site, I don't want the freaking site fighting it. (Sites have tried to thwart innocent Greasemonkey scripts before, for example.)
Brock Adams