-
Star
(141)
You must be signed in to star a gist -
Fork
(41)
You must be signed in to fork a gist
-
-
Save pheuter/1980967 to your computer and use it in GitHub Desktop.
(function(d) { | |
var dl = d.createElement('a'); | |
dl.innerText = 'Download MP3'; | |
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
dl.download = d.querySelector('em').innerText+".mp3"; | |
d.querySelector('.primary').appendChild(dl); | |
dl.style.marginLeft = '10px'; | |
dl.style.color = 'red'; | |
dl.style.fontWeight = 700; | |
})(document); | |
/** Minified **/ | |
(function(b){var a=b.createElement("a");a.innerText="Download MP3";a.href="http://media.soundcloud.com/stream/"+b.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1];a.download=b.querySelector("em").innerText+".mp3";b.querySelector(".primary").appendChild(a);a.style.marginLeft="10px";a.style.color="red";a.style.fontWeight=700})(document); |
My updated version is still working on the original site. I've added myself to the soundcloud next waiting list, and I'll go ahead and update or create a new version to get things working over there too.
britishtea - you are an idiot.
Completely agreed with @jojbot. @britishtea, please go fork yourself, thanks.
But I'll still download songs because you know what? If I listen it on SoundCloud or an MP3 player, it makes no difference whatsoever.
@duncanbeevers do you know if your version could be modified to be used on mixcloud as well ?
(maybe not.. not the same API etc etc..)
This made my day..thanks a lot :)
@marcandrebenoit I doubt it. The version I wrote is pretty soundcloud-specific. No reason a different one couldn't be written for MixCloud, but I just don't use the service that much.
You may follow this simple guide to download and convert SoundCloud songs to MP3, WAV, FLAC, at http://www.allavsoft.com/how-to/soundcloud-to-mp3.html
These are ancient, any new bookmarklets? I use klickaud.net but a marklet would be nice if anyone can build a new one, thanks!
Guys, sorry to disturb your conversation, but let's get back to hacker business: This bookmarklet should be updated to work with the next version of Soundcloud: http://next.soundcloud.com/