I'm new to creating chrome extensions and I just want to get all cookies from the sites that I visit. The issue is that when I load a site nothing happens. I get no errors and no logs for the cookies that I want to get. Can anyone help me understand what I'm doing wrong? Thanks!
manifest.json
{ "manifest_version": 2, "name": "xxxxxxxx", "version": "0.8", "permissions": [ "cookies", "tabs", "http://*/*", "https://*/*", "<all_urls>" ], "background": { "scripts": ["background.js"] } } background.js
function cookieInfo(){ chrome.cookies.getAll({}, function (cookies){ console.log(cookies) }); } cookieInfo(); 