Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery get all plugins installed into object

just wondering how I can get all the browser plugins object?

I know about navigator.plugins method, But need an object with only the plugin name.

Any Ideas?

like image 800
greenbandit Avatar asked Nov 15 '25 02:11

greenbandit


1 Answers

If you are using jQuery and a browser that supports navigator.plugins (doesn't seem to include IE), then the following code will return you a Javascript array of the names of plugins present:

jQuery.map(navigator.plugins, function(element, index) { return element.name; });

EDIT: For an IE solution, see this helpful page with some handy functions you could fairly easily use if required. Note that it doesn't show all plugins, but it does show how to determine if some of the common plugins (Flash, Java, Adobe Reader, etc) are present.

like image 145
GregL Avatar answered Nov 17 '25 21:11

GregL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!