EDIT: OK, I believe the following solutions are valid:
Use the jQuery AOP plugin. It basically wraps the old function together with the hook into a function
Take a look at jQuery's AOP plugin. In general, google "javascript aspect oriented programming".