Guest User

Untitled

a guest
Jun 27th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // Run from the dev tools console of any Youtube video
  2. // Accurate as of June 12, 2016
  3. var videoUrls = {};
  4. ytplayer.config.args.url_encoded_fmt_stream_map.split(',').forEach(function (item) {
  5. var obj = {};
  6.  
  7. item.split('&').forEach(function (param) {
  8. param = param.split('=');
  9. obj[param[0]] = decodeURIComponent(param[1]);
  10. });
  11.  
  12. videoUrls[obj.quality] = obj;
  13. });
  14.  
  15. console.log(videoUrls);
Add Comment
Please, Sign In to add comment