JanUlrich
JanUlrich

Reputation: 125

Accessing Firefox cookies via ff-addon-sdk

I want to access the cookies of a website opened in a specific tab through the firefox-addon-sdk.

Sorry, for the general question, I'm not able to find anything on the web about it.

Is someone able to give a hint?

Upvotes: 1

Views: 405

Answers (1)

Brett Zamir
Brett Zamir

Reputation: 14375

You can use the tabs module to get to the tab and attach a content script to it to do as you please (such as accessing cookies). See the section "Run Scripts in a Tab" or, for more, the tutorial it references: https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/modifying-web-pages-tab.html

Upvotes: 2

Related Questions