Skip to content

Instantly share code, notes, and snippets.

@Gladuin
Last active January 19, 2024 11:04
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gladuin/b00228769f154cb4ed2fcb266698cab1 to your computer and use it in GitHub Desktop.
Save Gladuin/b00228769f154cb4ed2fcb266698cab1 to your computer and use it in GitHub Desktop.
This is a tutorial on how you can backup and restore your Discord favorite gifs (on windows)

This won't work anymore because Discord moved to cloud storage for the gifs

Backup

  1. Open Discord.
  2. Press CTRL, SHIFT and I on your keyboard at the same time.
  3. In the newly opened window, at the top, click the >> button, and then click on Application.
    Image 1
  4. Once in the Application tab, click the little triangle next to Local Storage, and then click on https://discordapp.com.
    Image 2
  5. At the top of the tab type gif in the box that says Filter.
    Image 3
  6. Double click the value of GIFFavoritesStore and copy that somewhere. Backup done!
    Image 4

Restore

  1. Repeat steps 1 - 5 of the Backup section of this guide.
  2. Double click the value of GIFFavoritesStore and paste the value you backed up. After that press ENTER. Image 4
  3. Click the X button in the top right corner.
    Image 5
  4. Press CTRL and R on your keyboard at the same time. Restore done!
@qualk
Copy link

qualk commented Sep 14, 2021

:O

@ProGamerKurt
Copy link

Ok

@Vexx3
Copy link

Vexx3 commented Nov 11, 2021

gg

@bepvte
Copy link

bepvte commented Nov 11, 2021

This wont work anymore. They moved to an online gif backup with 250 gifs and no longer use that localstorage key

@Gladuin
Copy link
Author

Gladuin commented Nov 11, 2021

This wont work anymore. They moved to an online gif backup with 250 gifs and no longer use that localstorage key

Thanks for the heads up, I'll edit the gist.

@TheOneGoofAli
Copy link

...odd - I tried it and it worked when transferring the key from the web version to the desktop app.

@bepvte
Copy link

bepvte commented Nov 12, 2021

Its being rolled out, to stable, and theres also a mechanism to transfer data from the old key to the new key

@TheOneGoofAli
Copy link

Is there now? Do tell me.

@bepvte
Copy link

bepvte commented Nov 12, 2021

Its just part of discord. They move the old favorites data to the new favorites spot so you dont lose it when going to the new system where its all online.

@TheOneGoofAli
Copy link

...'aite. Thanks for giving a heads up.

@artshade
Copy link

artshade commented Nov 12, 2021

Thank you very much! Interesting that GIFs are not shown in the client even while exist in the storage:

image

image

@bepvte
Copy link

bepvte commented Nov 15, 2021

Lots all my favorited gifs in the tranfer process and can't even use my backup....

I made this exporter for you: https://codepen.io/bepvte/full/VwzVzpq .

@artshade
Copy link

artshade commented Nov 15, 2021

Lots all my favorited gifs in the tranfer process and can't even use my backup....

I made this exporter for you: https://codepen.io/bepvte/full/VwzVzpq .

Nice! Interesting that some media downloads while viewing an exported/parsed HTML, and some - does not. It seems the "src" value may or may not start with "http(s):", thus added a little change: https://jsfiddle.net/26va05b3/

For example, some Json contained:

{    
    "width":640,
    "height":640,
    "src":"//media.tenor.com/videos/b4f873c80148b9f044a0c68acee0f81d/mp4",
    "url":"https://tenor.com/view/stars-glitters-sparkles-purple-shiny-gif-17171909",
    "format":"VIDEO"
}

@bepvte
Copy link

bepvte commented Nov 15, 2021

Ty, merged into my codepen. You forgot to include the jsdelivr for file-saver in yours I think

@AirplanegoBrr
Copy link

I think this has been changed.. Update?

@bepvte
Copy link

bepvte commented Jul 28, 2022

Read the first line of it LOL

@AirplanegoBrr
Copy link

im blind af

@lncoognito
Copy link

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