Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: screenshot tabs #106

Open
digitalsignalperson opened this issue Oct 3, 2023 · 0 comments
Open

Feature request: screenshot tabs #106

digitalsignalperson opened this issue Oct 3, 2023 · 0 comments

Comments

@digitalsignalperson
Copy link

digitalsignalperson commented Oct 3, 2023

This is something I'm interested in to be able to screenshot all or specific tabs from cli/scripts.

perhaps it's only possible to capture the active tab? At least I found chrome.tabs.captureVisibleTab

and the base64 image could be sent back

Edit: testing this hacking a bit on background.js and is straightforward enough. Just need to figure out whether the first arg for windowId should be provided by cli, or maybe getLastFocused() and return the window and tab id for reference along with image data. Maybe write the image to f'{client_id}.{window_id}.{tab_id}.png'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant