I have never written an extension for Chrome. I read some materials from Google. Not much help, the more bad I know JS.
In general, what I need. But a simple action is needed: I open the site, log in, click on the extension button, activate it. The extension periodically timer on this site clicks on the Tab in the widget to which the click event is attached, which pulls the ajax request and receives data from the server and updates the contents of the Taba. After which, the extension should check if something appeared in Taba. Tab is a tab in the widget. If something appears, it pulls the external url.
How to organize it correctly? What to register in the manifesto? How to get out of the extension to the DOM site?
In principle, through devtools I can click on the taboo via: document.getElementsByClassName('tab')[0].click() , how can I pull it from the extension periodically?