I created own firefox extension that remove all firefox cookies.
this is code:
How can I remove all cookies without one site exception with cookie manager function?
I only see two methods there: remove and removeAll: https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsICookieManager
Perhaps you could save the details of the cookie you do not want to delete and use either add or import to restore it after you removeAll?
Can You write function wchich will save one exception and add it after delete all?
Not me personally, sorry.
Could someone help?
Or, since this isn't really a support question, try the mozillaZine Extension Development forum.