Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: How to save YouTube videos from cache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: How to save YouTube videos from cache
Authored by: dmmorse on Oct 07, '08 08:48:40AM
Thanks! Before trying to download and covert a Flash video, I would always use the following code, saved as a bookmark, to see if YouTube has a quicktime version of the video saved:
javascript:(function%20()%20{var%20video_id%20=%20null;var%20video_hash%20=%20null;var%20video_player%20=%20document.getElementById(%27movie_player%27);if%20(video_player)%20{var%20flash_variables=video_player.attributes.getNamedItem(%27flashvars%27);if%20(flash_variables)%20{var%20flash_values=flash_variables.value;if%20(flash_values)%20{var%20video_id_match=flash_values.match(/video_id=([^(\&|$)]*)/);if%20(video_id_match!=null)%20video_id=video_id_match[1];var%20video_hash_match=flash_values.match(/t=([^(\&|$)]*)/);if%20(video_hash_match!=null)%20video_hash=video_hash_match[1];}}}if%20(video_id==null%20||%20video_hash==null)%20{var%20args=unsafeWindow.swfArgs;if%20(args)%20{video_id=args[%27video_id%27];video_hash=args[%27t%27];}}if%20(video_id==null%20||%20video_hash==null)%20return;var%20yt_mp4_path%20=%27http://www.youtube.com/get_video?fmt=18&video_id=%27+video_id+%27&t=%27+video_hash;var%20div_embed=document.getElementById(%27watch-player-div%27);if%20(div_embed)%20{div_embed.innerHTML=%27%3Cembed%20src=\%27%27+yt_mp4_path+%27\%27%20type=%22video/mp4%22%20width=480%20height=400%20scale=\%27aspect\%27%3E%3C/embed%3E%27;}})(); 
I don't remember where I found this (it might have even been on this site, but I can't find it again), so I can't give proper attribution.

[ Reply to This | # ]
10.5: How to save YouTube videos from cache
Authored by: soundsgoodtome on Oct 07, '08 10:33:44AM

Wow. That rocks, dude. Thanks!



[ Reply to This | # ]