D
D
dllweb2016-06-07 12:17:22
Google Chrome
dllweb, 2016-06-07 12:17:22

How to call a variable on a page through the chrome extension?

Good day to all, the question is this, there is a current tab, the page is loaded in it, in this page
an object of type
var my_object = { key: "value", property: "name" } is initialized between the tags.
Who can help, how to reach this variable from "content_scripts" extension directives?
I need the properties of this my_object to manipulate them in content.js
. Another snag is that my_object is not simple, it is diluted with a name modifier, for example, the current page with id 1516
So my_object has the suffix my_object_1516
How to reach the properties of this object, I suspect that this is a call via eval("The line knocked down from my_object_page number");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question