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
2 Answers
Reset to default 7You 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.