Skip to content

Instantly share code, notes, and snippets.

@jonkemp
Created March 31, 2011 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonkemp/897303 to your computer and use it in GitHub Desktop.
Save jonkemp/897303 to your computer and use it in GitHub Desktop.
A bookmarklet for viewing localStorgage key/value pairs in your console.
<a href="javascript:(function(){if(localStorage.length){for(var i=0;i<localStorage.length;i++){console.log(localStorage.key(i)+':'+localStorage.getItem(localStorage.key(i)));}}})();">Check localStorage</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment