Skip to content

Instantly share code, notes, and snippets.

@simontong
Last active November 16, 2018 13:18
Show Gist options
  • Save simontong/98afe13c480d0718c7b1ab77888aae83 to your computer and use it in GitHub Desktop.
Save simontong/98afe13c480d0718c7b1ab77888aae83 to your computer and use it in GitHub Desktop.
Slack Dark Theme
echo '
document.addEventListener("DOMContentLoaded", function() {
const css = `
html {
filter: invert(90%) hue-rotate(180deg);
}
img,
video,
.c-icon,
.c-message_attachment__image,
.c-message_attachment__thumb,
.c-message_attachment__video,
.emoji-outer,
.filetype_icon,
.filetype_image,
.member_image,
.p-channel_sidebar__channel:before,
.ts_icon,
.unread_empty_state_emoji
{
filter: invert(100%) hue-rotate(180deg);
}
`;
const style = document.createElement("style");
style.appendChild(document.createTextNode(css));
document.head.appendChild(style);
});
' | sudo tee --append /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment