Until recently, firebug was easily detectable by the window.console.firebug object, which would return the version of firebug installed, if applicable. This has since been removed by the developers.
Regardless of your intentions, for now you can still detect Firebug by analyzing console properties. Any unique properties that firebug adds to window.console can be used (ex. exception, memoryProfile, memoryProfileEnd). This can be implemented as
if (window.console && (window.console.firebug || window.console.exception)) {You can read about this technique in more detail at StackOverflow, as well as some other interesting hacks for detection.
/* firebug is active! alert(), fire ajax, crash browser, redirect, whatever */
}
No comments:
Post a Comment