A friend of mine build the same thing for Spotify called mutify, but Spotify released an update within a couple of weeks just making the advertisements pause whenever your audio is muted. The Spotify client will also pause the ad if the audio level in Spotify is below ~30%. Hulu will have a harder time though since it's web based (right?). Nice hack anyway. :)