I understand how to use window.getSelection().toString() to get the user's selection in a 'regular' (plain vanilla) website via a Chrome Extension and a content script.
Is it possible to achieve the same goal in more complex websites? Like a Google Doc, PDF preview (via Chrome browser), or other embedded/iframed/complex renderers?
Appreciations for any suggestions/direction.