Created
April 4, 2010 11:43
-
-
Save gandro/355345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bash version: http://gist.github.com/355325