This is a userscript (or greasemonkey script) that adds an entry to the context menu (right mouse click) of the Spotify Web Player that let's you copy the selected song name and artist to the clipboard.
It's primarily designed for Firefox and Chrome with Greasemonkey , Tampermonkey or FireMonkey . General information about userscripts and how to use them can be found at openuserjs.org/about/Userscript-Beginners-HOWTO.
Screenshot: