Skip to content

Instantly share code, notes, and snippets.

@Axfan
Created June 11, 2015 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Axfan/7769032eba83f8f21324 to your computer and use it in GitHub Desktop.
Save Axfan/7769032eba83f8f21324 to your computer and use it in GitHub Desktop.
Add videos from a youtube playlist to InstaSync
var videoString = "";
var videoIDs = videoString.split(",");
var v =0;
setInterval(function() {
if (v < videoIDs.length) {
$("#add_video_url").val("http://youtube.com/watch?v=" + videoIDs[v]);
$("#add_video_btn")[0].click();
v++;
}
}, 250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment