Follow

hey fedizens (and especially niusers)! i built something!

it's a tool that can open a mastodon export archive and show you all of your toots and favorites (if they're available). it's still not perfect and needs substantial improvements, but i decided to publish it now, as niusers were asking questions about how to view export.

purr.neocities.org

also i'll post updates at @meowViewer (report bugs there if you encounter them!). please boost! :boost_ok:

@leip4Ier @meowViewer Wow, what a great project!

(I'm totally in love with your watermelon cursor)

@Kiki thanks!! also cursors are drawn by @ais05 , we'll publish them sometime later :)

@chebra it turned out to be quite buggy during development, but no other browser has such good UI...

@leip4Ier
Yes the UI is pretty nice and innovative. And it's not so buggy since 2.0 or maybe 2.1

@chebra try pressing f5 in devtools. or using tab navigation. not significant bugs, but quite annoying. i had to test some (minor) features in chromium as they're just broken in vivaldi.

@leip4Ier
haha, yes I know about that reload bug in dev tools.. but it only happens on the first try, no biggie. Similar bugs were fixed with previous releases quite quickly, so I'm willing to give them a pass.

@leip4Ier Would this be useful for static-hosting backups of long-gone instances?

What format is the mastodon backup, Is it a bunch of ActivityStreams 2 JSON objects?

@clacke no, it's a user-end viewer. it loads the archive data into the user's browser storage and shows all their toots (incl. followers-only and DMs) and favs; there's also search. a static backup generator would need quite a different featureset: only public posts, no search, no favs, offline generation of html instead of a dynamic web-app. so, sorry, but that would require a very different tool!

yeah, there's a tar.gz with a few JSONs and all the user's media files

@leip4Ier @meowViewer looks cool and is something that i really needed. mind publishing the source when it's ready?

@koyu i'm glad you find it useful :)

i have mixed feelings about open-sourcing it, still undecided whether i will do it.

@leip4Ier @meowViewer that's great! I'm assuming the code is available somewhere? always interested to see more stuff consuming as2 data :D

@nightpool sorry, it's not for now, and i don't know if it will be.

it doesn't do anything interesting with as2, i mostly just looked at the jsons from several different instances and tried to make it work. scope settings are something that wasn't obvious, i could send you code for those if you're interested (though it's just a few lines..). everything else (user names and display names, post contents, CWs, dates, media) is pretty straightforward.

@nightpool there's something i'm probably doing wrong, it's custom emoji. i just use the regex from mastodon to find them in text for usernames and in text DOM elements for post content. i know it's a bad idea and i should probably parse html and replace all the :emoji: with img tags, but that's harder :x for now it's sanitize html (strip non-whitelisted tags and attributes), add it to DOM and then find and replace shortcodes.

Sign in to participate in the conversation
Infosec Exchange

A Mastodon instance for info/cyber security-minded people.