Detecting Firefox Plugins With Javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Detecting Firefox Plugins With Javascript

Post by onion2k »

I just logged into GMail with Firebug switched on ... and GMail knew! It puts up a message along the lines of "GMail might run slowly with Firebug installed". I can't figure out where in the code it's doing the detection though.

This isn't for anything particularly useful, I'm just interested.

Anyone have any ideas? Is it possible to list all the extensions a user has installed?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Detecting Firefox Plugins With Javascript

Post by Zoxive »

You can't detect plugins with Javascript.

I believe google is just checking if the console command, or DomInspector exist.

Although, there have been some trys at detecting plugins, but all use the same technique checking if that plugins function exist.

http://ha.ckers.org/weird/firefox-extentions.html
(Not accurate or to date though, I am using Web Developer, says Im not)
Last edited by Zoxive on Fri Jan 25, 2008 7:55 am, edited 2 times in total.
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: Detecting Firefox Plugins With Javascript

Post by arjan.top »

You can detect firebug with this code:

Code: Select all

 
window.console.firebug
 
Post Reply