Alex Rivera | Logout

Detecting installed plugins under different browsers?

Asked 2011-03-04T02:07:06.843
15

I'm wondering if there is a way to detect installed plugins on different browsers. So far I have found that you can "detect" plugins on firefox by trying to guess if chrome://path/to/some/plugin/image.gif exists.

This code for firefox looks like this:

<img src="chrome://firebug/content/blank.gif" onload="var a=document.getElementById('FireBug'); a.innerHTML = 'You are using FireBug';" style="visibility:hidden">
<div id="FireBug">You are not using FireBug</div>

I'm interested how does the code look in IE (more important to me) and if there are other ways to accomplish this task for other browsers too?

I want to know because I'm having an idiot client who claims he doesn't have installed plugins though I'm 99,99% sure he has. The problem is that some of those plugins are breaking parts of a web site admin control panel I've wrote.

Anyway I'd be glad to hear any tips,tricks,workarounds and etc for getting the plugin list of the popular browsers (ff,ie,opera,chrome,safari) :)

Edit
Report

1 Answer

1

You could try this: http://www.sliceratwork.com/detect-installed-browser-plugins-using-javascript

... but this is not going to detect browser add-ons like firebug, noscript, etc.

That script seems to detect only the following plugins:-

  • Java
  • 3D Markup Language for Web
  • DjVu
  • Flash
  • Google Talk
  • Acrobat Reader
  • QuickTime
  • RealPlayer
  • SVG Viewer
  • Shockwave
  • Silverlight
  • Skype
  • VLC
  • Windows Media Player
  • Xara
answered 2011-03-04T02:20:25.737

Your Answer