Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

Delete cookie without exception

  • 5 απαντήσεις
  • 8 έχουν αυτό το πρόβλημα
  • 6 προβολές
  • Τελευταία απάντηση από jscher2000 - Support Volunteer

more options

I created own firefox extension that remove all firefox cookies.

this is code:

Components.classes["@mozilla.org/cookiemanager;1"]

     .getService(Components.interfaces.nsICookieManager).removeAll();

How can I remove all cookies without one site exception with cookie manager function?

I created own firefox extension that remove all firefox cookies. this is code: Components.classes["@mozilla.org/cookiemanager;1"] .getService(Components.interfaces.nsICookieManager).removeAll(); How can I remove all cookies without one site exception with cookie manager function?

Όλες οι απαντήσεις (5)

more options

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?

https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsICookieManager2

more options

Can You write function wchich will save one exception and add it after delete all? ;)

more options

Not me personally, sorry.

more options

Or, since this isn't really a support question, try the mozillaZine Extension Development forum.