All Projects β†’ openark β†’ Custom Slack Css

openark / Custom Slack Css

Licence: mit
A custom CSS for Slack App users

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Custom Slack Css

Slacktee
slacktee is a bash script that works like tee command. Instead of writing the standard input to files, slacktee posts it to Slack.
Stars: ✭ 772 (+5414.29%)
Mutual labels:  slack
Slack
πŸŽ‰βœ¨ Slack API client for Node and browsers.
Stars: ✭ 903 (+6350%)
Mutual labels:  slack
Irackbot
Bridge between Slack and IRC channels allowing message filtering and logging while keeping communication public
Stars: ✭ 25 (+78.57%)
Mutual labels:  slack
Inventory Hunter
⚑️ Get notified as soon as your next CPU, GPU, or game console is in stock
Stars: ✭ 778 (+5457.14%)
Mutual labels:  slack
Manamoji Slack
Slack emojis for Magic card symbols. Used by Scryfall’s Slack bot.
Stars: ✭ 16 (+14.29%)
Mutual labels:  slack
Nyc
πŸ™ New York, NY
Stars: ✭ 23 (+64.29%)
Mutual labels:  slack
Integrations
Connect your App to Multiple Messaging Channels with the W3C Open standard.
Stars: ✭ 721 (+5050%)
Mutual labels:  slack
Versionmonitor
Monitors different kinds of software projects for new releases
Stars: ✭ 9 (-35.71%)
Mutual labels:  slack
Torpedo
Pluggable, multi-network asynchronous chat bot written in Go
Stars: ✭ 19 (+35.71%)
Mutual labels:  slack
Emacs Slack
slack client for emacs
Stars: ✭ 928 (+6528.57%)
Mutual labels:  slack
Vigil
🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).
Stars: ✭ 804 (+5642.86%)
Mutual labels:  slack
Reviewet
Getting App Store and Google Play's review and notify to either slack or email.
Stars: ✭ 7 (-50%)
Mutual labels:  slack
Yii2 Slack Log
Pretty Slack log target for Yii 2
Stars: ✭ 24 (+71.43%)
Mutual labels:  slack
Auto Like My Gf Insta Pic
Bot to automatically like your friend's Instagram post and notify you on Slack
Stars: ✭ 773 (+5421.43%)
Mutual labels:  slack
Slack Cli
Powerful Slack CLI via pure bash. Rich messaging, uploads, posts, piping, oh my!
Stars: ✭ 850 (+5971.43%)
Mutual labels:  slack
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (+5092.86%)
Mutual labels:  slack
Whatis
Whatis bot server for Slack!
Stars: ✭ 22 (+57.14%)
Mutual labels:  slack
Wc2018 Slack Bot
World Cup 2018 Slack Bot
Stars: ✭ 11 (-21.43%)
Mutual labels:  slack
Slack Client
Slack Real Time Messaging API Client
Stars: ✭ 9 (-35.71%)
Mutual labels:  slack
Swiftblocksui
Develop interactive Slack messages and modals using a SwiftUI like declarative style
Stars: ✭ 25 (+78.57%)
Mutual labels:  slack

custom-slack-css

A custom CSS for Slack App users

What, why

Slack is a wonderful and productive app. Its visual design is well conceived IOHO. However, we find some design decisions do not match our expectations, and some hinder our productivity. Thus, we chose to customize Slack by overriding its default style.

This repository is created and maintained by individuals who work with Slack and whose work productivity is of high priority. Changes include:

  • Respecting <pre> and avoiding text wrap.
  • Remove width limitation on bot-generated content.
  • Remove size limitation on bot-generated images.
  • Others, ongoing.

Unfortunately Slack does not support custom CSS and we must rely on a hack.

Dear Slack!

We appreciate your product and use it daily for work. Please consider allowing users to apply custom CSS, even if that means letting users shoot themselves in the foot. Thank you!

How

At this time Slack does not officially support custom CSS injection. The following is a hack, known to work on Slack 2.8.2. There is no guarantee it will work on any other version.

Append the following JavaScript code to the end of your local file:

  • /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js (MacOS/X)
  • /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js (Debian/Ubuntu)
// The following JavaScript snippet was authored by Jonathan la Cour, https://github.com/lacour
// and released to the public domain under CC0 (https://directory.fsf.org/wiki/License:CC0)
document.addEventListener('DOMContentLoaded', function() {
 $.ajax({
   url: 'https://raw.githubusercontent.com/openark/custom-slack-css/master/custom.css',
   success: function(css) {
     $("<style></style>").appendTo('head').html(css);
   }
 });
});

If you cloned this repository locally, you may:

$ make

What happens on Slack upgrade?

Either:

  • The file you've appended the JavaScript code to is overwritten, and you will need to re-append the JavaScript code; or:
  • Slack completely changes the file names and we'll need to look for a different place to add this hack; or:
  • Slack completely change their CSS paths, classes, and DOM structure, and we'll need to figure out everything from the beginning.

We will try and maintain this repository through next Slack versions. It is quite possible you will need to run a different flow, and import different files, per version.

Credits

The JavaScript hack was proposed by Jonathan la Cour (@laCour), author of slack-night-mode, in this issue. @laCour released the JavaScript snippet to the public domain under CC0.

Contributions

At this time, potentially temporarily, this repository is not open to public contributions. The reasoning is:

  • We want to create a custom CSS that works for us.
  • Others will have different opinion on what works best.
  • Slack's CSS is an enormous playground. We could end up with bloated CSS files, and we wish to avoid that.
  • So we stick to a reasonable small changeset.

Having said that, let's see how this repo plays.

License

This repository is released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].