Javascript bookmarklet to save YouTube videos
Here's the code I came up with today:
javascript:if(/youtube\.com\/watch\?/.test(document.location)){document.location="http://www.youtube.com/get_video?"+document.body.innerHTML.match(/player2\.swf\?.*?(video_id=[^"]+)/)[1];}
Right-click and "Bookmark this link..." Save YouTube Video
The videos come in a ".FLV" format which can, for example, be played with the free VLC media player.
More like this: English Entries, Javascript.
Már Örlygsson



Reader Comments (6)
Jói replies:
How is this supposed to work? Nothing happens on my end...
September 6. 2006 kl. 15:58 GMT | #
Jói replies:
How is this supposed to work? Nothing happens at my end...
September 6. 2006 kl. 15:59 GMT | #
Már replies:
@Jói, here how:
Admiddedly I've only bothered to test the bookmarklet on Firefox and IE6. Your milage may vary.
September 7. 2006 kl. 09:34 GMT | #
Salvör replies:
Ég hef bent fólki á ađ nota http://javimoya.com/blog/youtube_en.php til ađ hlađa niđur youtube hjá mér.
September 8. 2006 kl. 15:27 GMT | #
Jói replies:
Got it to work, the problem was my Firefox, apparently I was using some old version not compatible with this workaround. Thanks for this useful and handy tool!
September 8. 2006 kl. 16:37 GMT | #
Chupong replies:
Thanks man. Nice clean and short. This's really work while YouRipper software don't.
October 2. 2006 kl. 14:24 GMT | #