View sc-dl.js
1 2 3 4 5 6 7 8 9 10
(function(d) {
var dl = d.createElement('a');
dl.innerText = 'Download as 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 = 'tomato';
dl.style.fontWeight = 500;
})(document);
Something went wrong with that request. Please try again.