Okay, so I’m sure with all the HTML/JavaScript masters on here someone will figure this out.
Ive got this app I’m working on. The objective is this…
1) The user opens my app (objective-c/cocoa) and selects their preferred language.
2) My app opens Facebook.com in whatever the users preferred browser is, except changes the document, in the way that all chat messages received are translated to the preferred language…
How might I go by this? Pretty much replacing the received chat message strings with new ones automatically?
If you need access to Facebook chat specifically, they expose an XMPP API that you can work with: http://developers.facebook.com/docs/chat/ . I haven’t used it personally, so I’m not sure if it fully satisfies your requirements, but it may be worth a look.