Is there any way to detect what other domains a user has open with Javascript?
I'm not looking to modify anything in those tabs or have any access to the content from them. I also don't need to know the exact URL, just the domain name each tab is accessing.
I've seen questions here about accessing other tabs via Javascript, but most are wanting to access or modify the data from those tabs - which isn't what I'm wanting to do.
For privacy reasons, you could only do that in a browser extension, and only if the extension has been given the tabs permission.
See here for more information about the chrome.tabs API.
async function getInactiveTabs() {
return await chrome.tabs.query({ active: false, currentWindow: true });
}