I’m trying to hook into a function that loads Facebook’s news feed:
UIIntentionalStream.instance && UIIntentionalStream.instance.loadOlderPosts();
on Facebook.com.
Is there a way for me to do this with my own JavaScript? Basically, I need to have some sort of callback – when that function is called, I’d like my own function to be called.
Try something like this:
Just hook in wherever you want, before or after the original function’s call.