简体   繁体   中英

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 accordingly. Is there an easy way to do this in javascript?

您可以使用观察者服务收听cookie更改的主题。

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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