Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruggertech/d6542b5be4ce25475eea2c7678d0183f to your computer and use it in GitHub Desktop.
Save ruggertech/d6542b5be4ce25475eea2c7678d0183f to your computer and use it in GitHub Desktop.
/**
* add this code to the file ssb-interop.js
* you can find it by going to Applications -> Slack
* -> right click "show package content" -> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static
*/
document.addEventListener('DOMContentLoaded', function() {
let tt__customCss = `
body,
.channel_header,
# footer,
.channel_title_info,
# channel_topic_text {
background: rgb(0, 43, 54);
}
.c - message__body {
color: rgb(153, 174, 177);
}
# team_menu,
.p - channel_sidebar {
background: #023f4e !important; }
.c-presence--active {color: rgb(177, 202, 17) !important;}
nav.p-channel_sidebar .p-channel_sidebar__channel--selected, .p-channel_sidebar__link--selected, .c-message_list__day_divider__label__pill, .p-message_pane .c-message_list.c-virtual_list--scrollbar > .c-scrollbar__hider:before { color: # eee!important;background: rgb(27, 139, 210) !important;
}
.c - message_list__day_divider__line {
border - top - color: rgb(27, 139, 210) !important
}
# msg_input,
# primary_file_button {
background: rgb(2, 55, 68) !important;
}
# msg_form # msg_input {
border - color: transparent;
}
`;
$.ajax({
url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
success: function(css) {
$('<style></style>').appendTo('head').html(css + tt__customCss);
}
});
console.log("Erez");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment