Is it possible to somehow enumerate opened Safari documents and access their DOM from my own third-party Cocoa application?
I thought about writing a Safari extension that could help me to do such an interaction, but maybe there is an easier way to achieve the same results.
I am not sure if this helps, but you can access a specific element via AppleScript like this:
(Gives you the URL to your user profile from this page)