I want to make chrome extension which opens all my favourite websites when I click on it.
Currently my manifest.json is:
{
"manifest_version": 2,
"name": "Soical_open",
"description": "This extension opens all my favorite social sites once",
"version": "1.0",
"background": {
"scripts": ["background.js"]
}
}
and my background.js is:
var queue = ['www.fb.com', 'www.gmail.com' , 'www.quora.com'];
chrome.browserAction.onClicked.addListener(function(tab) {
for (var i=0; i<queue[1].length; ++i)
chrome.tabs.create({"url": queue[i], "active": false, "index":tab.index+i});
});
When I load this extension and click on it, nothing happens. What is that I am doing wrong? What am I missing?