Daring Fireball: Vinegar — Safari Extension That Replaces YouTube Embeds With Simple HTML 5 Video Tags:

the YouTube player situation has gotten bad enough that we need another extension to fix it. That’s where Vinegar comes in. Vinegar also replaces the YouTube player (written in who-knows-what) with a minimal HTML <video> tag