Skip to content

Instantly share code, notes, and snippets.

@deepakprakash
Created November 14, 2012 09:09
Show Gist options
  • Save deepakprakash/4071119 to your computer and use it in GitHub Desktop.
Save deepakprakash/4071119 to your computer and use it in GitHub Desktop.
Bookmarklet to clear all cookies for the current domain
javascript:new function(){var c=document.cookie.split(";");for(var i=0;i<c.length;i++){var e=c[i].indexOf("=");var n=e>-1?c[i].substr(0,e):c[i];document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT";}}()
@vytenis-nfq
Copy link

Does not works 🐻

@voyager
Copy link

voyager commented Apr 26, 2023

Try this one, it clears the cookies and the site data:

https://github.com/voyager/Clear-cookies-and-site-data-bookmarklet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment