Chrome扩展程序Cookie

时间:2017-07-01 10:56:59

标签: javascript google-chrome google-chrome-extension

我尝试从带有扩展名的页面获取cookie,但是当我写console.log(chrome)返回对象但cookie键不存在时 这是我的清单json

{
  "name": "Call Center",
  "manifest_version": 2,
  "version": "1.0",
  "description": "Extension For Call Center",
  "permissions": [
    "cookies",
    "*://*.youtube.com/*"
  ],
  "content_scripts": [
    {
      "matches": ["*://*.youtube.com/*"],
      "js": ["script.js"]
    }
  ],
  "web_accessible_resources": ["script.js","hello.js"]
}

0 个答案:

没有答案