M
M
Maxim K2022-04-05 23:03:59
JavaScript
Maxim K, 2022-04-05 23:03:59

I can’t figure out how to implement it correctly - collecting data from the page?

Hello.
I'm writing a chrome extension. A page was loaded, for example yandex.r* - by pressing a button in popup.html, you need to get data from the yandex.r* page. Is this done through local storage?, for example: the "content_scripts" script is executed - saves data to variables and then to local storage, then I press a button in popup.html and read data from local storage. Or is it done in some other way??? And yes, I also saw a way somehow through message, but I didn’t quite understand how to implement it. Can eat any simple example??? THANK.

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