This is pretty simple. Highlighted text is saved into a variable and slapped onto the end of a URL. That's added to the context menu and away you go.
Context menu that changes with the selected textAccount for no highlighted textSubmit to addons.mozilla.org