Slack dark mode (Last update 4.0)

Evaldo Felipe
Jul 18 · 1 min read

Let’s started

npm install -g npx
npx asar extract /Applications/Slack.app/Contents/Resources/app.asar /Applications/Slack.app/Contents/Resources/app.asar.unpacked
document.addEventListener(‘DOMContentLoaded’, function() {
$.ajax({
url: ‘https://cdn.jsdelivr.net/gh/laCour/slack-night-mode/css/raw/black.css',
success: function(css) {
let overrides = `
code { background-color: #535353; color: #85c5ff; } /* Change color: to whatever font color you want */
.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }
`
$(“<style></style>”).appendTo(‘head’).html(css + overrides);
}
});
});
npx asar pack /Applications/Slack.app/Contents/Resources/app.asar.unpacked /Applications/Slack.app/Contents/Resources/app.asar

Evaldo Felipe

Written by

22, SysAdmin .feat DevOps, workaholic, rato de internet, e várias historias que não podem entrar aqui. https://evaldofelipe.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade