Delete All Cookies From JavaScript
Delete All Cookies From JavaScript
This Chrome extension deletes all cookies (including HTTP only cookies) by either sending a postMessage from any javascript on any page or by clicking the extension action (i.e. clicking the icon).
This chrome extension is particularly useful when you need to delete cookies as part of an automated test.
To delete all cookies using javascript run the following line:
window.postMessage({ type: "CLEAR_COOKIES_EXTENSION_API" }, "*");
To delete cookies for the domain and super-domains of current page using javascript run the following line:
window.postMessage({ type: "CLEAR_COOKIES_DOCUMENT" }, "*");
Note: the CLEAR_COOKIES_DOCUMENT mode does not delete any cookie that has a path value as this is not possible using the document object.
Latest reviews
- (2015-11-19) Francisco Gonzalez: I think is necessary that the function should call a callback parameter when finished. Thanks
- (2013-11-27) Amir Rabbanian: Awesome add-in, it's so handy, love it!
- (2013-11-27) Thank you!
- (2013-11-27) Samira Rabbanian: This was really helpful when I was writing a karma test for angular and needed to clear all cookies even those for other domains from my test.
Statistics
Installs
777
history
Category
Rating
4.5 (11 votes)
Last update / version
2013-11-27 / 1.1
Listing languages
en