44086

captureVisibleTab of non-visible tab

Question:

Is it possible to take a screenshot of non-visible tab with chrome extension 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.

Answer1:

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.

Recommend

  • Chrome screenshot works only when extension is clicked
  • Regex: Replace every Comma with Tab Not within quotes
  • Restart app on force kill
  • Adding Existing Group to Custom Ribbon in Office Word 2010
  • how to convert public key of an x509 certificate in JAVA to hex
  • How do I programatically open the Developer Tools' Console in a Firefox addon?
  • Opening links in a new tab and only the new tab
  • How do references in functions work?
  • How to avoid multiple definition of function (Linux, GCC/G++, Code::Blocks)
  • Reload UITableView from another tab
  • Load image without autoscaling in Android
  • How do I recognize a line break with a switch case that evaluates a char in Java?
  • adjust iframe height based on the content
  • How to add System.Windows dll to Visual Studio 2010 express?
  • css background images not always displayed
  • CloseOptionsMenu doesn't work?
  • android Navigation Bar hiding and persantage of usable screen overlap
  • Outlines on links in IE9 remains when focus is changed
  • Is there a package like bigmemory in R that can deal with large list objects?
  • How can I restyle a word when rendering a pdf with pdf.js?
  • Azure webjobs output logs indexing taking very long
  • Image map in Flex
  • Who propagate bugfixes across branches (corporate development)?
  • AppleScript : find open tab in safari by name and open it
  • MySQL Order by column = x, column asc?
  • ADO and msqli connections very slow
  • Marklogic : Query response time is very high
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • Custom Tabgroup Appcelerator
  • How to use remove-erase idiom for removing empty vectors in a vector?
  • Alert pop up with LWUIT
  • Disabling Alt-F4 on a Win Forms NotifyIcon
  • Is there a amazon webstore API for customers?
  • Matrix multiplication with MKL
  • AngularJs get employee from factory
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Converting MP3 duration time
  • How to push additional view controllers onto NavigationController but keep the TabBar?