Also it would be a great idea to keep this separate to easy future update thats if the providers change some things around on the server side.
// @description Provides download links for Flash FLV files hosted by YouTube.com
// @include http://www.youtube.*/*
// @include http://youtube.*/*
// YouTube URL: http://www.youtube.com/watch?v=[video_id]
// YouTube download link: http://youtube.com/get_video?video_id=[video_id]&t=[t_id]
var download_url = 'http://youtube.com/get_video?video_id=';
var playerDiv = document.getElementById('movie_player');
var t_id = playerDiv.src.match(/t=([^(\&|$)]*)/);
var url_vars = window.location.href.split("?");
var video_id = url_vars.match(/v=([^(\&|$)]*)/);
var video_url = download_url + video_id + '&t=' + t_id;
Now just have to find a way to play .flv files in SD....
OMG.... Window Media plays them!!!
Just add support for "search", thumbnailed view of found video files, the whole list with small descriptions and here we go. Something like Tinytube.net looks like now with an option to save to playlist or save to library (in this case the .flv file will be converted into avi or mpeg)
I would love to see a search module for local video files in the future updates. So that we can add online button which will search all the video streaming servers like youtube.com, google, etc...
Here is the example program that works with youtube only and it allows you to preview thumbnail, save flash or open it:
It was made by folks from http://www.f2ko.de