Follow

I just copied all the knzk emoji onto my instance so they'll be findable on the fediverse in the future.

If you're an instance admin and want to copy a bunch of emojis at once, go to /admin/custom_emojis. Do your search, then to copy every emoji on that page enter in the following into the JS console:

const csrf = [...document.getElementsByTagName('meta')].filter(m => m.getAttribute("name") == "csrf-token").map(m => m.getAttribute("content"))[0]

[... document.getElementsByTagName('a')].filter(n => n.text == 'Copy').map(n => fetch(n.href, {method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams({_method: 'post', authenticity_token: csrf})}).then(r => console.log(r.url, r.ok)))

When the console stops counting it's copied all the emoji from that page.

Sign in to participate in the conversation
Toot! A Jason Scheirer Instance

This is my instance.