How can the page know I'm analyzing it with firebug
-
19-09-2019 - |
Solution
You can do:
if(window.console && window.console.firebug)
{
alert("Firebug active!");
}
OTHER TIPS
This works not only from the Firebug console, but also from within the page:
if (document.getElementById('_firebugConsole'))
alert("fire!");
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).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow