A little while ago, I wrote about grabbing the URL associated with a browser tab from within Emacs. I’ve been using since then and it simplifies things in more ways than I anticipated. Sadly, the method depends on OS X (specifically AppleScript) so users with other operating systems couldn’t use it.
Recently, I saw this entry on the Google G+ Emacs community that announces the inclusion of a new command to Ren Wenshan’s emacs-moz-controller that grabs the URL of the current Firefox tab. I don’t use Firefox so I haven’t tried it but it seems like it would be an fairly easy way for Firefox users to implement their own version of my jcs-get-link
function.