Skip to content

Instantly share code, notes, and snippets.

@adammw
Created January 9, 2012 19:18
Show Gist options
  • Save adammw/1584453 to your computer and use it in GitHub Desktop.
Save adammw/1584453 to your computer and use it in GitHub Desktop.
YouTube Video URL extractor function snippet
(function(){a=[];yt.playerConfig.args.url_encoded_fmt_stream_map.split(",").forEach(function(d){e={};d.split("&").forEach(function(b){var b=b.split("="),c=decodeURIComponent;e[c(b[0])]=c(b.slice(1).join("="))});a.push(e)});return a})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment