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.
精彩评论