简体   繁体   English

通过ff-addon-sdk访问Firefox cookie

[英]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. 我想通过firefox-addon-sdk访问在特定选项卡中打开的网站的cookie。

Sorry, for the general question, I'm not able to find anything on the web about it. 抱歉,对于一般问题,我无法在网上找到任何有关它的信息。

Is someone able to give a hint? 有人可以提示吗?

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). 您可以使用选项卡模块转到选项卡,并在其上附加内容脚本以根据需要进行操作(例如访问cookie)。 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 请参阅“在选项卡中运行脚本”部分,或者更多有关它参考的教程: https : //addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/modifying-网站的页面,tab.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM