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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -