Files
chrome-extensions-samples/api-samples/tabs/screenshot/README.md
Xuezhou Dai bbcd025851 Migration tabs sample (#964)
* Add pin sample

* Add README.md

* Add screenshot sample

* Add README.md

* Add zoom sample

* Add README.md

* Add inspector sample

* Add README.md

* Fix typo

* Remove wrapper

* Remove inline style

* Update api-samples/tabs/pin/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/screenshot/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/inspector/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update README

* Update for loop

* Remove children select

* Change selected to active

* Fix event listener

* Set checkboxs to disabled

* Fix layout

* Fix wrong input data in create tab function

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update description

* Update description

* Update description

* Fix typo

* Update description

* Rename

* Fix file name

* Update active check box

* Update code style

* Update api-samples/tabs/zoom/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/pin/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/pin/README.md

Co-authored-by: Joe Medley <jmedley@google.com>

* Apply suggestions from code review

Co-authored-by: Joe Medley <jmedley@google.com>

* Update api-samples/tabs/inspector/manifest.json

Co-authored-by: Joe Medley <jmedley@google.com>

* Fix case issues

* Update api-samples/tabs/inspector/manifest.json

---------

Co-authored-by: Joe Medley <jmedley@google.com>
Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
2023-11-13 13:35:41 +00:00

815 B

chrome.tabs - Tab Screenshot

A sample that demonstrates how to use the chrome.tabs API to take a screenshot of the current tab.

Overview

When the user clicks the action icon, the extension takes a screenshot of the current tab and displays it in a new tab.

Implementation Notes

Calls chrome.tabs.captureVisibleTab() to capture the visible area of the current tab.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Click the extension's icon to take a screenshot of the current tab.