开发者

Obtain cookies of the page being visited

I want to know how can we obtain the cookies of the current page being accessed using a communication link between the content 开发者_C百科script and background page. This is for an extension.


You can use Content Scripts to access document.cookie for each website you visit. Then you can use Message Passing to pass the cookies from your Content Script to your Background Page.

There are many examples on Stack Overflow for example:

  • Chrome Extension: how to capture selected text and send to a web service
  • Chrome Extension: How to pass a variable from Content Script to background.html
  • Google Chrome Extension - Architecture Question
  • Chrome extension: accessing localStorage in content script
  • In background.html,how can I access current web page to get dom
  • Help with chrome extension message passing
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜