Skip to content

Instantly share code, notes, and snippets.

@klpx
Created January 21, 2014 11:01
Show Gist options
  • Save klpx/8538052 to your computer and use it in GitHub Desktop.
Save klpx/8538052 to your computer and use it in GitHub Desktop.
vk chat autoplayer
window.SONG_NO = 0;
setInterval(function () {
if (!$('#gp_play') || !$('#gp_play').hasClass('playing')) {
$($('.post_audio .play_btn_wrap')[window.SONG_NO]).click();
window.SONG_NO++;
}
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment