Skip to content

Instantly share code, notes, and snippets.

@gandro
Created April 4, 2010 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gandro/355345 to your computer and use it in GitHub Desktop.
Save gandro/355345 to your computer and use it in GitHub Desktop.
// Version 10.8.12
var URL=unescape(
document.getElementById("movie_player").getAttributeNode("flashvars").value).
replace(/.*fmt_url_map=([0-9]+)\|.*&t=([^&]+).*&video_id=([A-Za-z0-9_-]+).*/,
"http://www.youtube.com/get_video?video_id=$3&t=$2&asv=&fmt=$1");
alert(URL);
@gandro
Copy link
Author

gandro commented Apr 4, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment