This script allows you to pull down the highest quality version of a YouTube video as an MP4 file, letting you avoid having to use Flash Player.
To use this script as is, you will need an youtube-dl and ratpoison (for completion notifications), though changes can be made to fit your personal setup. Feel free to add any mods to this page!
#!/bin/dash
cd ~/Downloads # change this line to determine where the file is saved
youtube-dl -b "$1"
ratpoison -c "echo [ytdl-uzbl] $1 done." # change this line to change how you are notified of a
# completed download
Add the following line to your uzbl config file:
bind ytdl = sh "~/bin/ytdl-uzbl.sh $6"