Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting installed plugins under different browsers?

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) :)

like image 318
tftd Avatar asked Mar 04 '11 02:03

tftd


People also ask

How do I Find my Internet Explorer plug-ins?

Internet Explorer lists its browser plug-ins along with other browser add-ons you have installed. To view them, click the gear menu at the top-right corner of the Internet Explorer window and select Manage add-ons. Browser plug-ins are displayed under the Toolbars and Extensions category, along with any browser toolbars and other type ...

How to find installed plug-ins in Firefox?

How to Find Plugins in Firefox 1 Firefox makes your list of installed plug-ins easier to access. To view your list of installed plug-ins, open the Firefox menu, click Add-ons, and... 2 You can disable individual plug-ins by clicking the Disable button. To view more information about a plug-in, such as its file name, click the... See More....

How do I check if a plug-in is installed or not?

To view the plug-ins installed in Chrome, type chrome://plugins into Chrome’s address bar and press Enter. This page shows all the installed browser plug-ins enabled in Google Chrome. To disable a plug-in, click the Disable link under it.

How to manage browser plugins in Firefox and Internet Explorer?

Just type about:plugins into Firefox’s and press Enter to access it. Internet Explorer lists its browser plug-ins along with other browser add-ons you have installed. To view them, click the gear menu at the top-right corner of the Internet Explorer window and select Manage add-ons.


1 Answers

This code will list all the plugins installed in the browser

<html>
<body>
<div id="example"></div>
<script type="text/javascript">
var x=navigator.plugins.length; // store the total no of plugin stored 
var txt="Total plugin installed: "+x+"<br/>";
txt+="Available plugins are->"+"<br/>";
for(var i=0;i<x;i++)
{
  txt+=navigator.plugins[i].name + "<br/>"; 
}
document.getElementById("example").innerHTML=txt;
</script>
</body>
</html>
like image 109
Hackaholic Avatar answered Sep 20 '22 12:09

Hackaholic