I started learning how to program a Safari extension, and unfortunately Apple's Developer Reference pages on that are not really detailed. Hence my question:
Anyone knows how I can pass the text selected by a user in a variable? My extension is a context menu element that needs to use that text the user selects from any webpage.
Thank you very much for your help :)