Okay so using the inspector in safari I’ve found out that all chat messages in Facebook.com are divs with class=”fbChatMessage fsm direction_ltr” and data-jsid=”message”.
I want to programmatically find all of those divs on the open Facebook page and edit the text of them (my end goal will actually be to translate them, but i’ve got that part covered)…
How could I do this?
Thanks
With jQuery like this to find them:
To change the content of a div you can do like this: