Skip to content

Instantly share code, notes, and snippets.

@abdmun8
Created May 9, 2022 23:50
Show Gist options
  • Select an option

  • Save abdmun8/8dfb40ce52bc8c39fa3f7ea11b20ba66 to your computer and use it in GitHub Desktop.

Select an option

Save abdmun8/8dfb40ce52bc8c39fa3f7ea11b20ba66 to your computer and use it in GitHub Desktop.

Revisions

  1. abdmun8 created this gist May 9, 2022.
    6 changes: 6 additions & 0 deletions copy-local-storage.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    ### Run this script on console source window
    ``` js
    const t=JSON.stringify(localStorage);console.log(`Object.entries(${t}).forEach(e=>{localStorage.setItem(e[0],e[1]);});`);
    ```

    ### Paste and run output script to console target window