mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-04 14:49:44 +07:00
* WIP windows API sample * Update background.js * Added mv3 windows API sample * Corrections based on review
15 lines
552 B
Markdown
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.
|