Created
January 9, 2012 19:18
-
-
Save adammw/1584453 to your computer and use it in GitHub Desktop.
YouTube Video URL extractor function snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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