Files
chrome-extensions-samples/api-samples/windows/README.md
IanStanion-google 2527b666a6 Windows api mv3 sample (#959)
* WIP windows API sample

* Update background.js

* Added mv3 windows API sample

* Corrections based on review
2023-06-21 21:01:39 +02:00

15 lines
552 B
Markdown

# chrome.windows
This sample demonstrates using the `chrome.windows` and `chrome.tabs` API to manage tabs across different windows.
## Overview
The extension interates across all tabs and moves them to the currently active window.
## Running this extension
1. Clone this repository.
2. Load this directory in Chrome as an [unpacked extension](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked).
3. Make sure you have multiple windows of chrome open.
4. Pin the extension and click on the action button.