I want a basic boilerplate Google Chrome Extension ([login to view URL]) that does the following:
1. Has no browser_action or page_action, ideally no visible user interface, no button on the taskbar and all that.
2. Allows me to put a JavaScript in a Web page to activate it, if I don't put it, then the extension will do nothing. If I put the JavaScript, it will check if the extension is present, and if not, show a message saying to install it.
3. When the extension is installed, I can add a button in my Web page that I can click and it will send a message to the extension, the extension in turn sends the message to a native messaging host. ([login to view URL])
4. When the native messaging host receives the message, it echoes it back, so I receive it back in the extension and from there to my Web page where I would have a script to receive it and show it.
I want to receive the following:
1. The code for the native host, it can be just something like the example available at [login to view URL]
2. The minimum require code for the extension. I think this would be just a [login to view URL] file and a [login to view URL] file. No buttons, HTML, or other stuff.
3. A simple [login to view URL] page with a small [login to view URL] file that detects the extension and if present, allow to send and receive a message.