Skip to content

Instantly share code, notes, and snippets.

@arkon
Created October 21, 2017 04:02
Show Gist options
  • Save arkon/a8045f334bec7ad8c8a0cf43dbb63e0b to your computer and use it in GitHub Desktop.
Save arkon/a8045f334bec7ad8c8a0cf43dbb63e0b to your computer and use it in GitHub Desktop.
Gets all custom Slack emojis
Array.from(document.querySelectorAll('.emoji_row')).reduce((a, b) => a.concat({img: b.querySelector('.emoji-wrapper').dataset.original, name: b.querySelector('[headers="custom_emoji_name"]').innerText.replace(/:/g, '')}), [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment