Your signature has been modified to be compliant with the rules. Please don't post unauthorised links.
Yeah? sh*t, that's awesome. Mind telling me how the sendRequest and onRequest would help. I've been trying all afternoon, to just make a simple extension which writes the text selected to a span, but for some reason it won't work.
And about the right click and send to iPhone. Some extensions do SOMETHING like that. Not right click, but probably use a keyboard shortcut? Or when double clicked. Or you can just select text, click on the icon, and have the text sent to the iPhone. Or as I said before, just add a text field, which's text is sent to the iPhone.
Just found out. You can get selected text on page with the window.getSelection() function. I don't know how you would do that to implement it through an Extension, because you would have to getSelection() from the page, not the popup.
Why not just add an optional text field? That'd make it easier. And you could look into the Google Dictionary Extension's source code. It automatically loads selected text.
Oh. Awesome stuff dude. I think letting the link store the link to be sent would be cooler. Like a notepad of the link. Like, even if you visited the link later the link would be present, unless it was changed. Get what I'm saying?