This browser extension makes all the default and some of the custom emojis higher relolution by intercepting requests and substituting local higher res images. This is made for Channable's instance of mattermost but can be easily adapted for other instances by only editing the urls in the manifest files.
This works better when emojis are being displayed at a larger size than normal.
Before | After |
---|---|
Some custom emojis; contain peoples faces, are internal memes, or for other reasons should not be included in this public repository.
For this reason the zip containing the Firefox and Chrome extension (with all custom emojis) will be hosted on Google drive, you must download the extension from there.
You also need to clear your cache after installing the extension.
- Download the .zip from the Google drive folder
- Extract the zip
- Go to chrome://extensions/
- Enable development mode
- Load unpacked extension open the folder that the zip was extracted to.
- Download the .xpi from the Google drive folder
- Double click/open the .xpi in Firefox
- Accept by clicking "Add"
- Click extension icon (looks like a jigsaw puzzle piece)
- Click the settings (looks like a cog)
- Click "Always Allow on chat.channable.com"
- On Mattermost click
ctrl
+shift
+r
to refresh clearing the local cache
static_rules.json
is git ignored because it is a generated file.
- Have mattermost downloaded (and unpacked)
- Change
MATTERMOST_GIT_DIRECTORY
to where you unpacked mattermost. python get_high_resolution_emojis.py
Note: Some emojis may be not found
We can't automatically upscale emojis, I tried using normal upscalers does not work and can result in fuzzy or crappy looking images. AI can also be used to upscale images but with ones this low resolution they are hit and miss. Custom emojis should be improved manually, then uploaded to the Google drive.
- Download the images from the Google drive
- Put them in
./custom_emojis/
This must be done when adding or removing any emojis.
python generate_static_rules.py
- Make sure you have all the emojis, Apple and custom ones from Google drive
- Generate static rules:
python generate_static_rules.py
zip -r -FS ../high-resolution-mattermost-emojis-firefox.zip * --exclude '*.git*' 'manifest.json' '*.py' '_metadata/*'
- Rename the manifest file in the zip
printf "@ manifest-firefox.json\n@=manifest.json\n" | zipnote -w ../high-resolution-mattermost-emojis-firefox.zip
- Upload to https://addons.mozilla.org/en-US/developers/addons
- Download signed .xpi
- Rename the .xpi and upload to the Google drive folder.
- Make sure you have all the emojis, Apple and custom ones from Google drive
- Generate static rules:
python generate_static_rules.py
zip -r -FS ../high-resolution-mattermost-emojis-chrome.zip * --exclude '*.git*' 'manifest-firefox.json' '*.py' '_metadata/*'
- Rename and upload to the Google drive folder.