Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
could you state what your version of Chrome is for posterity? –  washbow Mar 13 '13 at 0:12
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.