The following code,
chrome.cookies.set({
"name": "Sample1",
"url": "chrome-extension://iiioiioacgdgbkodamplcdcffkkkfibi",
"value": "Dummy Data"
}, function (cookie) {
console.log(JSON.stringify(cookie));
console.log(chrome.extension.lastError);
console.log(chrome.runtime.lastError);
});
is used to set cookies in chrome extensions. I want to customize the newtab page, and I want to store cookies, but I don't know the newtab url.
Can anyone can help me?