Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
could you state what your version of Chrome is for posterity? – washbow Mar 13 '13 at 0:12
up vote 0 down vote accepted

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.

share|improve this answer
Thank you! This is just what I was looking for. I will see if I can modify it for my purposes. – user206595 Mar 13 '13 at 1:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .