Skip to content

Instantly share code, notes, and snippets.

@hom3chuk
Last active September 22, 2016 19:38
Show Gist options
  • Save hom3chuk/6ad1862c01e57fef711424ae436f5cac to your computer and use it in GitHub Desktop.
Save hom3chuk/6ad1862c01e57fef711424ae436f5cac to your computer and use it in GitHub Desktop.
<!-- 1. Go to https://vk.com/audio -->
<!-- 2. Right click anywhere -> inspect -->
<!-- 3. Paste this snippet as a first element of <div class="_audio_rows_header audio_rows_header fixed" (anywhere goeas, actually) -->
<!-- 4. Press "prev/next", Ctrl/Cmd+C, right click "download" -> "save as", Ctrl/Cmd+V -->
<!-- ... -->
<!-- PROFIT -->
<div style="background: white; padding: 20px;"><input type="text" id="downloadbox" style="display:block"><button onclick="getAudioPlayer().playPrev();document.getElementById('downloadbox').value = getAudioPlayer()._currentAudio[4].replace('&amp;','&') + ' — ' + getAudioPlayer()._currentAudio[3].replace('&amp;','&');document.getElementById('downloadlink').href = getAudioPlayer()._currentAudio[2];document.getElementById('downloadbox').focus();document.getElementById('downloadbox').select();">prev</button><button onclick="getAudioPlayer().playNext();document.getElementById('downloadbox').value = getAudioPlayer()._currentAudio[4].replace('&amp;','&') + ' — ' + getAudioPlayer()._currentAudio[3].replace('&amp;','&');document.getElementById('downloadlink').href = getAudioPlayer()._currentAudio[2];document.getElementById('downloadbox').focus();document.getElementById('downloadbox').select();">next</button><br><a href="https://psv4.vk.me/c536500/u236498839/audios/072a8afe6200.mp3?extra=CIgehhBN8cqlWs2bK1tB5dVZNbO6DjjgQet1dgAXrMUIdXlIsMEoJd7At50rGoJx-14U8qT8GCvpb0ozq7hyCZiKacHIKISk_p2JNG2MtMlNcZ3Z1WgVhP-rQvR8tZWdAUC_6IZv" id="downloadlink">donwload</a></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment