I would like to write a chrome extension that not only displays the URLs that have been visited in History, but also the URLs of links. For example, if I clicked on Wikipedia from Google, it should say: "Wikipedia: link to Google."
My initial attempt was to take the HistoryItem for the URL in question, extract its last VisitItem file, and then use referringVisitId to track the starting URL, however this is where I got stuck. My problem comes down to understanding the meaning of referingVisitId. Is this the identifier of the story item that opened the new page? Is the VisitItem object identifier a triggered URL? The documentation states that this is a “referrer visit identifier”, however it still leaves me puzzled.
1) What is the meaning of referringVisitId?
2) Can I use referringVisitId to track the link URL? If so, how?
Thank you for your time!
source share