Check out this: Useful scripts and Scriptlets - #3 by npudar
And this: Blog article on bypassing plugin automatically when volume is off