Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justsml/e207f061c992b3d96a224af772321bd4 to your computer and use it in GitHub Desktop.
Save justsml/e207f061c992b3d96a224af772321bd4 to your computer and use it in GitHub Desktop.
Browser script hack to extract slack emoji via the JS console.
var emojis = {};
var $timer = setInterval(captureEmojis, 50);
function captureEmojis() {
document.querySelectorAll(".p-customize_emoji_list__image").forEach((el) => {
emojis[el.alt] = el.src;
});
}
function stopCapture() {
clearInterval($timer);
console.log(emojis);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment