Is there a way to listen to event when a cookie is changed in a Firefox Extension
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 accordin开发者_StackOverflowgly. Is there an easy way to do this in javascript?
You can listen to the cookie-changed topic with the observer service.
http://jsfiddle.net/ArondeParon/5RsTm/4/
try changing the cookie, it will pop up an alert.
精彩评论