Last active
July 10, 2024 21:06
-
-
Save jonkemp/897294 to your computer and use it in GitHub Desktop.
This code will log key/value pairs saved in localStorage to your console for whatever domain you are on.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( localStorage.length > 0 ) { | |
for ( let i=0; i < localStorage.length; i++ ) { | |
console.log( `${localStorage.key(i)}:${localStorage.getItem( localStorage.key(i) )}` ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment