Answer the question
In order to leave comments, you need to log in
Chrome extension: how to change cookies?
Hey!
I need to somehow change the cookies for the site so that the server receives not the cookies that were, but those that I want.
As far as I understand, this should be done in background.js
"background": {
"scripts": ["background.js"],
"persistent": false
},
var d = new Date();
var n = d.toString();
chrome.cookies.set({
"name": "test",
"url": "https://account.chatoptimizer.com/",
"value": n
}, function (cookie) {});
Answer the question
In order to leave comments, you need to log in
Try putting in "content_scripts"
"content_scripts": [
{
"matches": [
"*://site.ru/*"
],
"js": [
"js/jquery.min.js",
"js/script.js"
]
}
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question