Created
December 18, 2024 17:55
-
-
Save justsml/e207f061c992b3d96a224af772321bd4 to your computer and use it in GitHub Desktop.
Browser script hack to extract slack emoji via the JS console.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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