I needed a way to quickly delete my localhost cookies without having to go to the settings each time. Then I realized I needed the same thing for non-localhost sites (a staging env, for instance).
So I made a chrome extension that adds a button in the toolbar. Once clicked, the cookies belonging to the current tab domain will be erased. No warning, no confirmation window. One click, and done.
This is mainly a mashup of a the chrome cookie api sample here and this stack overflow question. I also used this code to parse URIs.
This is not really tested: I tried it on my laptop, and it worked, so it's good enough for me. The code is pretty short and should be fairly understandable as is.
No handling of subdmain. For instance, facebook cookies are under the domain facebook.com
, but the webapp always redirect to www.facebook.com
. Therefore, the cookies will not be erased.
If I don't find the time or the need, nothing. Otherwise, support for safari/firefox, maybe better icons, maybe better notifications.
If you want to contribute, do as pleased, and following the classic flow on github : fork, feature branch, pull-request. Please explain a use-case if you're submitting a feature.
See LICENCE.md.
1.0
: Same as 0.3. Bumped version number since it looks stable.0.3
: New icons, display a notification after cookies are erased. Changed repository name.0.2
: Button deletes current tab domain cookies0.1
: Toolbar button to delete localhost cookies