Can Chrome extension content script access all tabs? -
basically, want opened tabs of browser window, within tab, more specifically, in content script.
i tried chrome.tabs.query
, works in background script, doesn't work in content script.
so questions are:
is there way such work? maybe api wasn't aware of?
or, can dispatch event content script, capture event in background script, , vice versa?
or, impossible?
according https://developer.chrome.com/extensions/content_scripts , content script cannot access chrome.* apis, except few allowed ones chrome.tabs not among them
exchanging messages parent script possible, though, might way it. see https://developer.chrome.com/extensions/messaging
Comments
Post a Comment