Open initialshl opened 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.
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