Skip to content

Instantly share code, notes, and snippets.

@duncanmcdougall
Created July 27, 2017 08:43
Show Gist options
  • Save duncanmcdougall/8dbf66b512d24c9e3c7ed7e4dbbc4f98 to your computer and use it in GitHub Desktop.
Save duncanmcdougall/8dbf66b512d24c9e3c7ed7e4dbbc4f98 to your computer and use it in GitHub Desktop.
Bookmarklet to Clear Cookies, LocalStorage and Session Storage
javascript:(function(){ localStorage.clear(); sessionStorage.clear(); var c = document.cookie.split("; "); for (i in c) { document.cookie =/^[^=]+/.exec(c[i])[0]+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; }; })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment