开发者

captureVisibleTab of non-visible tab

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜