Injecting javacript code in webpage and returning data

I've searched around the internet and AA forum as well as this forum, and I haven't found a solution. I am wondering, is it possible to inject a javascript code in a webpage? Like to retrieve elements from the DOM?
 
Top