Skip to content

Instantly share code, notes, and snippets.

@uupaa
Last active December 23, 2015 19:09
Show Gist options
  • Select an option

  • Save uupaa/6680975 to your computer and use it in GitHub Desktop.

Select an option

Save uupaa/6680975 to your computer and use it in GitHub Desktop.
PPAPI detection
function enumPPAPIBrowserPlugins() {
    return Array.apply(null, navigator.plugins).filter(function(plugin) {
        return /Pepper/i.test(plugin.filename);
    }).map(function(plugin) {
        return plugin.description;
    });
}

enumPPAPIBrowserPlugins().join(","); // "Shockwave Flash 11.8 r800"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment