开发者

captureVisibleTab of non-visible tab

开发者 https://www.devze.com 2023-03-22 06:29 出处:网络
Is it possible to take a screenshot of non-visible tab with chrome extension 开发者_Go百科API? chrome.tabs.captureVisibleTab takes only the selected tab on a specific window.

Is it possible to take a screenshot of non-visible tab with chrome extension 开发者_Go百科API?

chrome.tabs.captureVisibleTab takes only the selected tab on a specific window.

I could programmatically switch to the needed tab, take a screenshot and switch back, but since it's all async, there's a flicker while it happens.


Copy the page to a new window and move the window outside the screen then take a screenshot. Then the user will not notice that you have opened a new window because it is outside the screen.

Hope this helps you out.

0

精彩评论

暂无评论...
验证码 换一张
取 消