Amarok makes the ContextBrowser pane available through DCOP as html-widget1
, on which Javascript can be run using DCOP's evalJS function.
Here's an Amarok plugin that makes use of this idea (borrowed from some other plugins, but hopefully a bit neater) to add useful links to the ContextBrowser for the currently playing artist: ContextLinks.