ciochPep
ciochPep

Reputation: 2592

Can chrome extension control tabs and the devtool?

  1. can it add new tab?
  2. can it control the size of the tab
  3. can it control the url of the tab even 10 min after you open it?
  4. can it focus on a specific tab
  5. can it access the devtools?

same questions regarding chrome windows

can it take few windows and sum them all up to one window with many tabs?

Upvotes: 2

Views: 1607

Answers (1)

Rob W
Rob W

Reputation: 349012

  1. Yes. chrome.tabs.create
  2. Yes. chrome.windows.update
  3. Yes. chrome.tabs.update
  4. Yes. chrome.tabs.update
  5. Yes and No. The developer tools cannot be opened by an extension, but you can add panels to the Dev tools using the devtools.* API.

chrome.windows.getAll can be used to get a collection of all Windows. Each Window has a property tabs, which holds properties of to the Tab.

Upvotes: 6

Related Questions