Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Run from the dev tools console of any Youtube video
- // Accurate as of June 12, 2016
- var videoUrls = {};
- ytplayer.config.args.url_encoded_fmt_stream_map.split(',').forEach(function (item) {
- var obj = {};
- item.split('&').forEach(function (param) {
- param = param.split('=');
- obj[param[0]] = decodeURIComponent(param[1]);
- });
- videoUrls[obj.quality] = obj;
- });
- console.log(videoUrls);
Add Comment
Please, Sign In to add comment