I know that content_script running in an isolated scope than the web page's javascript. However, is there a way for the content script to collect the web page's javascript object, without having to write script such as sentMessage inside the web page script itself?
What I intend to do is writing a script that inspect how many watchers on a web page and display that number count when someone click on my extension's icon and trigger popup.
I found is EXTREMELY difficulty to find such way to do thing like this..... Is this even possible? How can I do it?
Please keep in mind that the condition is that the intercepting script should be only within the content_script or maybe the background script instead of requiring any sort of messaging from the web page javascript itself.
Please let me know if its possible because I having been trying to figure this out for two days straight.
Thank you