Captures active tab

Latest Version

Version
0.0.2
Update
June 9, 2021
Size
9.14KiB
Developer
Category
Users
2
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English (UK)
See more
Permissions
Storage
See more

Z Capture Log Extension

Captures the current active tab. A image capture is taken whenever the active tab completes loading and, optionally, at intervals.

This is primarily a tool to experiment with Chrome's tabs API's captureVisibleTab method. Unless you are interested in post-processing the image data or experimenting with different format, quality and delay settings, then this is probably not for you.

Due to the asynchronous nature of the JavaScript events, there is no absolute guarantee that the captured tab corresponds to the active tab that completed loading. No details about the tab (such as id, title or URL) are recorded with the captures.

The image data are timestamped, stored locally in an IndexedDB table and can be downloaded for further processing etc. At present, there is no convenient mechanism for freeing up storage, other than by removing the extension; this will be added in a future version.

The following are controllable via options:

* PNG or JPEG format captures
* JPEG quality setting
* delay between tab load completion and capture request (milliseconds)
* (minimum) interval between periodic captures (seconds)

Note that some, maybe all, internal chrome:// pages cannot be captured from a service worker context.

This extension's extensive permissions are only used to call chrome.tabs.captureVisibleTab from a service worker that runs in the background. There are no mutating API calls except to write to the IndexedDB table and no data are sent or received by the extension.

Change Log

0.0.2

Include local ISO date/time as part of the downloaded file name.
Add some missing semicolons.

0.0.1 initial revision
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Z Capture Log", "version": "0.0.2", "description": "Captures active tab", "icons": { "128": "cl.png" }, "permissions": [ "storage" ], "host_permissions": [ "" ], "background": { "service_worker": "wrapper.js" }, "action": { "default_popup": "popup.html" }, "options_ui": { "page": "options.html", "open_in_tab": false }, "manifest_version": 3}
Read more

Similar Extensions