Lalith
Lalith

Reputation: 20574

How does Chrome generate thumb views of URLs?

How does Chrome browser capture a thumbnail image of most visited URLs and show me over a blank page under Most visited??

Upvotes: 1

Views: 2282

Answers (3)

serg
serg

Reputation: 111315

If you want to write an extension that captures a screenshot of a current site then there is chrome.tabs.captureVisibleTab() method.

Upvotes: 1

speller
speller

Reputation: 1741

I can only tell you how would I implement it. Once you would go to a site, I will add 1 to a counter if how many times you've entered it. If it's in the top 10, I would also take a screen shot of the site (chrome has a window in the class "Chrome_RenderWidgetHostHWND" which is the window that only contains the site, not the buttons and menus around it). I can only guess it's not too far from what the guys in Google did.

Upvotes: 2

user166560
user166560

Reputation:

I think that it takes a screenshot from the last time you visited the page and saves it in the "Top Sites" SQLite database file that can be found in your profile folder.

Upvotes: 1

Related Questions