Skip to content

Instantly share code, notes, and snippets.

@nicholastay
Last active October 1, 2019 05:11
Show Gist options
  • Select an option

  • Save nicholastay/5ffc620b961189e2bd0d5a9a48a4eb89 to your computer and use it in GitHub Desktop.

Select an option

Save nicholastay/5ffc620b961189e2bd0d5a9a48a4eb89 to your computer and use it in GitHub Desktop.
Native backup system now available. Should use that! (ffz-settings.json)
let prefix = "FFZ:setting:p:0:";
function serializeFfz() {
let output = {};
Object.keys(localStorage).filter(k => k.startsWith(prefix)).forEach(k => output[k.replace(prefix, "")] = localStorage.getItem(k));
return JSON.stringify(output);
}
function restoreFfz(obj) {
Object.keys(obj).forEach(k => localStorage.setItem(prefix + k, obj[k]));
}
// on twitch website:
// console.log(serializeFfz()); -- copy and paste output to your backup
// restoreFfz(INPUT); -- replace INPUT with the backup, then refresh
{"version":2,"type":"profile","profile":{"id":0,"name":"nexerq's FFZ","description":"Default profile on FFZ, used by nexerq"},"values":{"chat.lines.borders":3,"channel.squads.no-autojoin":true,"channel.round-avatars":false,"metadata.stream-delay-warning":15,"chat.emote-menu.icon":true,"metadata.player-stats":true,"directory.hide-vodcasts":true,"ffzap.liriklive.global_emoticons":false,"theme.color.background":"#0E0C13","chat.emote-menu.reduced-padding":true,"layout.side-nav.show-rec-friends":false,"ffzap.liriklive.gif_emotes_mode":0,"layout.theme.global-font":"\"Helvetica Neue\",Helvetica,Arial,sans-serif","channel.raids.no-autojoin":true,"ffzap.betterttv.override_emoticons":true,"player.theatre.metadata":true,"layout.display-bits-button":false,"chat.lines.emote-alignment":2,"player.vod.autoplay":false,"chat.lines.alternate":false,"ffzap.gamewisp.global_emoticons":false,"player.volume-scroll-steps":0.05,"layout.side-nav.show-rec-channels":2,"ffzap.liriklive.sub_emoticons":false,"chat.actions.room-above":false,"chat.viewer-cards.highlight-chat":true,"ffzap.betterttv.gif_emoticons_mode":2,"chat.filtering.clickable-mentions":true,"ffzap.gamewisp.sub_badges":false,"chat.badges.style":5,"chat.lines.padding":false,"metadata.uptime":2,"chat.filtering.ignore-clear":true,"ffzap.gamewisp.badges_override_twitch":false,"channel.hide-live-indicator":true,"layout.prime-offers":false,"player.theatre.no-whispers":true,"player.home.autoplay":false,"directory.uptime":2,"ffzap.gamewisp.sub_emoticons":false}}
{"channel.raids.no-autojoin":"true","chat.badges.style":"5","chat.emote-menu.icon":"true","chat.emote-menu.reduced-padding":"true","chat.filtering.ignore-clear":"true","chat.lines.alternate":"false","chat.lines.borders":"3","chat.lines.emote-alignment":"2","chat.lines.padding":"false","directory.show-channel-avatars":"1","directory.uptime":"2","ffzap.betterttv.gif_emoticons_mode":"2","ffzap.betterttv.override_emoticons":"true","ffzap.gamewisp.badges_override_twitch":"false","ffzap.gamewisp.global_emoticons":"false","ffzap.gamewisp.sub_badges":"false","ffzap.gamewisp.sub_emoticons":"false","layout.display-bits-button":"false","layout.prime-offers":"false","layout.side-nav.show-rec-channels":"2","layout.side-nav.show-rec-friends":"false","layout.swap-sidebars":"false","metadata.player-stats":"true","metadata.uptime":"2","player.theatre.metadata":"true","player.volume-scroll-steps":"0.05"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment