-
-
Save stafot/e605bb8fb4743d198b8a17f67561d2d1 to your computer and use it in GitHub Desktop.
Quick and Dirty Emoji Export from Slack
This file contains 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
// Go to: https://<team>.slack.com/customize/emoji | |
// Open Developer Console | |
// Copy/Paste and Run this in the console: | |
var spans = document.getElementsByTagName('span'); | |
var basharray = "( " | |
for (var i=0;i<spans.length;i++) { | |
var link = spans[i].getAttribute("data-original"); | |
if(link != null){ | |
basharray = basharray.concat(link, " ") | |
} | |
} | |
console.log(basharray.concat(")")) |
This file contains 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
#!/bin/bash | |
# Downloads emojis to emojis folder | |
emojis=<insert the console output of emojis.js> | |
mkdir -p emojis | |
for i in "${emojis[@]}" | |
do | |
: | |
file=$(echo "${i#*/}" | awk -F/ '{ print $4 }') | |
filename="$file.png" | |
curl -vk $i > emojis/$filename | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment