I am trying to insert a plugin I created into a page using a content script in a Google Chrome extension. According to the documentation:
“If your plugin is “public”, you can even use a content script to programmatically insert your plugin into a web page.”
http://code.google.com/chrome/extensions/npapi.html
Unfortunately the examples they give do not inject a plugin programmatically. In the ‘background.html’ file I embed the plugin using:
and then I can get the plugin by simply calling:
document.getElementById(‘myPlugin’)
How do I do this in a javascript content script?
They mean you need to use the content script to insert the
embedtag and information: (psuedo code)