Drive your plug-ins from JavaScript using the new NPAPI features.
Once upon a time, you could script plug-in content from a web page. The web page surrounding the plug-in content could supply HTML user-interface elements (such as form controls) that could be used to drive the behavior of the plug-in content. A common example was a button that stopped an audio track from playing. That functionality was partially lost to Mozilla products when dependency on Java was reduced. This hack describes recent enhancements that have brought back this functionality.
To script a plug-in such as Flash or Adobe Acrobat, there are many hurdles to overcome.