The answer to this question was discussed here but no longer applies to the latest Chrome.
I need to add a custom parent item to the context menu; specifically, a search tool that will apply selected/highlighted text to 1 string of other text. Rather than use another extension, I want to learn how to create a custom option. I could not apply the previous answer to the new documentation.
Best Answer
I've developed an extension which adds context menu entries. You can fork my extension TweetRight for your use.
I guess that @gdejohn's code stopped working because Chrome has implemented Content-Security-Policy for extensions, which does not allow inline JavaScript code, unless asked for. Hence, the code in
background.html
would not execute.