initialshl / history-tree

Chrome extension that shows your browsing history in a tree view.
MIT License
4 stars 1 forks source link

Define history tree data object #10

Open initialshl opened 3 years ago

initialshl commented 3 years ago

From chrome.history.search, we get list of URLs. We then call chrome.history.getVisits for each URL to get all VisitItems.

Define a data object for our history tree with the required details, possibly like: url, title, visitId, referringVisitId, transition, visitTime

IanTeo commented 3 years ago

using the chrome.history api, is it possible to get the relation between the different URLs?

I was thinking that we might have to use the callbacks like in the answer here https://stackoverflow.com/questions/34957319/how-to-listen-for-url-change-with-chrome-extension

Then we build the history tree on our own by tracking what pages the user goes to.