Skip to content

Instantly share code, notes, and snippets.

@mconnell
Created September 14, 2011 19:42
Show Gist options
  • Save mconnell/1217559 to your computer and use it in GitHub Desktop.
Save mconnell/1217559 to your computer and use it in GitHub Desktop.
  • Bookmark a page in safari, any page, this page even.

  • Open up your bookmarks, right click on the bookmark you just created 'Edit Name' and set it to be 'Mp3'

  • Right click again this time selecting 'Edit Address', delete what's there and paste in this:

    javascript:var sourceUrl='/serve/source/'+activeItem.id+'/'+activeItem.key;var xhr=new XMLHttpRequest();xhr.open("GET",sourceUrl,false);xhr.send();var downloadUrl=JSON.parse(xhr.responseText).url;jQuery('#player-nowplaying').html('Download .mp3 File (right click and save as..)');

  • Drag the bookmark into bookmarks bar so you can see it all the time on your browser;

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