javascript - Navigator.plugins does not display all plugins -
i working on detection of adblock plugin on web browser , noticed
navigator.plugins
returns array of pluginarray
object list of plugins installed.
java applet plug-in shockwave flash picasa quicktime plug-in
but unexpectedly not return plugins, plugins such "user agent switcher" , "adblock" not listed (contrary stated in https://developer.mozilla.org/en-us/docs/web/api/navigatorplugins.plugins).
why not display plugins (am missing something) or how display plugins?
you can try check how extensions modifying page. example user agent switcher chrome:
if (window.new_nav && window.old_navigator && window.new_nav.useragent === navigator.useragent) { console.log('user changed navigator.useragent, real one:', window.old_navigator.useragent); }
to detect adblock can question -> stackoverflow.com
Comments
Post a Comment