as you all know, in jQuery you can do an animation chain as easy as: $('obj').fadeIn().fadeOut();
now I've made an extension, and want to be able to add it to animations of jQuery and be able to chain-animate: $('obj').fadeIn().myFunction().fadeOut();
jsfiddle link: http://jsfiddle.net/TwLLZ/