Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonfairbanks/slackmojis
Slack emoji extraction & archival
https://github.com/jonfairbanks/slackmojis
emoji slack slackmoji
Last synced: 17 days ago
JSON representation
Slack emoji extraction & archival
- Host: GitHub
- URL: https://github.com/jonfairbanks/slackmojis
- Owner: jonfairbanks
- Created: 2023-08-21T17:20:24.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-22T17:22:06.000Z (over 1 year ago)
- Last Synced: 2024-12-29T01:42:18.080Z (about 1 month ago)
- Topics: emoji, slack, slackmoji
- Language: Shell
- Homepage:
- Size: 1.43 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slackmojis
### Prerequisites
- [JQ](https://stedolan.github.io/jq/)
- [Slack Emoji Tools](https://chrome.google.com/webstore/detail/slack-emoji-tools/anchoacphlfbdomdlomnbbfhcmcdmjej)
### Extracting Emojis1. Login to your team: https://example.slack.com/customize/emoji
2. Run the following in your browser's Javascript console, usually under Dev Tools:```
var emojis = $('.emoji_row');
var numEmojis = emojis.size();var pre = document.createElement('pre');
pre.append('[\n');emojis.each(function (index) {
var url = $(this).find('td:nth-child(1) span').attr('data-original');
var extension = url.substring(url.lastIndexOf('.'));
var name = $(this).find('td:nth-child(2)').html().replace(/:|\s/g, '');
pre.append(JSON.stringify({name: name, extension: extension, url: url}));
if (index == (numEmojis-1)) {
pre.append('\n]');
} else {
pre.append(',\n');
}
});$('body').append(pre);
```3. Save the JSON output to a file for use in Step 4
### Downloading Emoji
4. Make the script executable and run it:
```
cd scripts
chmod +x download-emoji.sh
./download-emoji.sh slackmojis.json
```The download may take several minutes depending on how many emojis are in the JSON.
5. Once complete, you can drag and drop the emoji into the Bulk Emoji Uploader on your [https://example.slack.com/customize/emoji](https://example.slack.com/customize/emoji) page.