Skip to content

Instantly share code, notes, and snippets.

@livingston
Created January 2, 2010 19:30
Show Gist options
  • Save livingston/267628 to your computer and use it in GitHub Desktop.
Save livingston/267628 to your computer and use it in GitHub Desktop.
hasFirebug - detects the activation status of firebug
/* hasFirebug.js, alternate version - detects the activation status of firebug
* @author Livingston Samuel
*/
var hasFirebug = (function () {
return !!(window.console && window.console.firebug)
}());
/*
hasFirebug => false, if Firebug is not installed or not activated for the current page
hasFirebug => true, if Firebug is enabled on the current page
*/
/* hasFirebug.js - detects the activation status of firebug
* @author Livingston Samuel
*/
var hasFirebug = (function () {
return !!(document.getElementById("_firebugConsole"))
}());
/*
hasFirebug => false, if Firebug is not installed or not activated for the current page
hasFirebug => true, if Firebug is enabled on the current page
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment