We are using a proprietary document viewer which doesn\'t play terribly nice with the Pepper version of Flash found in some flavors of Chrome, so I\'d like to be able to detect
I know you asked for Javascript, but this can also be done (more easily) in Flash. Just check
if (Capabilities.manufacturer === "Google Pepper") { Alert.show("Using PPAPI"); }
Source