Intercept a web page's javascript object value with chrome extension

48 views
Skip to first unread message

Adam W

unread,
Sep 8, 2015, 12:14:13 PM9/8/15
to Chromium-extensions
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

Tony BenBrahim

unread,
Sep 8, 2015, 6:49:57 PM9/8/15
to Adam W, Chromium-extensions
Unless the watchers or number of watchers are displayed in a UI element on the web page, this cannot be done.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/1535eddc-8407-4eef-b7cd-5a617bb095fd%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages