My extension shows how many times I have visited specific websites(youtube.com, quora.com), save in local storage and show it when a new tab is opened.The structure of extension looks like:
- index.html
- manifest.json
- script.js
manifest.json
{
"manifest_version": 2,
"name": "Getting started example",
"description": "",
"version": "1.0",
"chrome_url_overrides" : {
"newtab": "index.html"
}
}
index.html includes script.js.My question is how do I track the list of visited urls.Do I need to use the background page or can I use chrome API for current url in script.js?