最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a way to listen to event when a cookie is changed in a Firefox Extension - Stack Overflow

programmeradmin4浏览0评论

I am trying to build a firefox extension which listens to events when a cookie is changed by any domain from any page and handle it accordingly. Is there an easy way to do this in javascript?

I am trying to build a firefox extension which listens to events when a cookie is changed by any domain from any page and handle it accordingly. Is there an easy way to do this in javascript?

Share Improve this question asked Nov 9, 2010 at 10:18 ivancerasivanceras 1,4553 gold badges17 silver badges29 bronze badges 1
  • Have a look at the code of the FireCookie extension: code.google./p/firecookie/source/browse/trunk – Benjamin Wohlwend Commented Nov 9, 2010 at 10:26
Add a ment  | 

2 Answers 2

Reset to default 7

You can listen to the cookie-changed topic with the observer service.

http://jsfiddle/ArondeParon/5RsTm/4/

try changing the cookie, it will pop up an alert.

发布评论

评论列表(0)

  1. 暂无评论