There is a chrome extension with a backgroun page. A person in the browser open a couple of tabs. It is necessary with the help of background pages to get links to pages open in other tabs. And if it is possible to get the whole DOM of each of the open pages.

    1 answer 1

    To do this, you need the "tabs" permission in the extension manifest.

     chrome.tabs.query({currentWindow: true}, function(tabs) { for (var tab of tabs) { console.log(tab.url); } }) 

    You can only find the addresses of the links, and only the content script has access to the DOM.