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
Very simple answer:
function someFunction() { alert("Bar!") } var placeholder=someFunction; someFunction=function() { alert("Foo?"); placeholder(); }