Two ways – use a bookmarklet to insert it in context, or install FoxyTunes and have it do that automatically greasemonkey-style.

For a bookmarklet http://gonze.com/playtwitter will do the job. That’s what I used.