Well, I'm stuck in this question because I don't even know where to start to searching.
Here is the problem I want to solve:
I would like to automatize some process that requires "copy-paste" values from one site to another (with different URLs) so I would like to do an extension in which I can locate a DOM node and take its text value and automatically put in a textfield from another page.
I searched in Mozilla oficial documentation and found that "tabs.sendMessage" could be something I could use but I need the tabs.id and for what I've read "chrome.tabs" appears to be a property only from extensions, so I'm starting to think that maybe there is no way to do this.
I would like to learn how to do this because It would save me hours from routine job that requires to pass data from one tab to another but change some stuff.
matches
for one site and another content script withmatches
for another one. The first one will find the node and save its value in chrome.storage.local. The second one will read it at its start using chrome.storage.local.get and also use chrome.storage.onChanged listener to read the new value while it runs.