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:

  1. is there way such work? maybe api wasn't aware of?

  2. or, can dispatch event content script, capture event in background script, , vice versa?

  3. 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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -