Skip to content

Instantly share code, notes, and snippets.

@cwholt
Created June 18, 2011 05:14
Show Gist options
  • Save cwholt/1032827 to your computer and use it in GitHub Desktop.
Save cwholt/1032827 to your computer and use it in GitHub Desktop.
turntable.fm download current playing song (adds to mouseover "Add song to:")
javascript:var cwh;for(i in turntable)cwh||(cwh=i);$('#songboard_add').append($('<div>',{'class':'btn disk'}).css({'background-image':'url(http://s3.firstrule.net/cwh/cwh_ttfm_disk_dark.png)'}).click(function(x){window.open(location.protocol+"//"+location.host+"/getfile/?roomid="+turntable[cwh]['roomId']+"&rand="+Math.random()+"&fileid="+turntable[cwh]['currentSong']['_id']+"&downloadKey="+$.sha1(turntable[cwh]['currentSong']['_id']+turntable[cwh]['roomId']))}))
@akivab
Copy link

akivab commented Apr 12, 2012

i think this is broken now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment