Total newb to terminal/command line, but finally got this working, thanks!
EDIT: Ok, it's working great, even on some pages that just have a youtube video embedded. But, it hasn't done this before using this script: the video keeps playing but the audio drops out, like it's buffering poorly. The buffer progress bar isn't as consistent before using this script too, it doesn't really indicate it's buffering until the whole video plays.
Normal?