Why is chrome.cookies undefined in a content script?
问题 Whenever I try to read from a cookie using the chrome.cookies.get() function I get this error: TypeError: Cannot read property 'get' of undefined. I am calling the function in my content.js file, and it will only run on twitter.com(that part works). Here is my manifest file: { "manifest_version": 2, "name": "Twitter-MultiSignin", "description": "twiter sign in", "version": "1.0", "permissions": [ "cookies", "alarms" , "http://*/*", "https://*/*", "storage"], "content_scripts": [{ "matches": [