Skip to content

Instantly share code, notes, and snippets.

View iainsimmons's full-sized avatar

Iain Simmons iainsimmons

View GitHub Profile
@iainsimmons
iainsimmons / darkslack.sh
Last active September 5, 2019 02:12
Adds dark theme CSS to Slack. Requires sudo to run, and `asar` node module installed globally.
#!/bin/bash
APPASAR=/Applications/Slack.app/Contents/Resources/app.asar
APPDIR=/Applications/Slack.app/Contents/Resources/app
BUNDLE=${APPDIR}/dist/ssb-interop.bundle.js
CSS="$(curl -s https://gist.githubusercontent.com/iainsimmons/5f2c987caf4a899524790408c26056b3/raw/slack-dark.css 2>/dev/null)"
if [ `npm list -g | grep -c asar` -eq 0 ]; then
echo "Installing asar module"
npm install -g asar --no-shrinkwrap
fi
@iainsimmons
iainsimmons / slack-dark.css
Last active September 5, 2019 02:33
Slack Desktop Dark Theme CSS
/* From https://github.com/laCour/slack-night-mode */
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
h1, h2, h3, h4 { color: #e6e6e6; }
h1 a { color: #e6e6e6; }
h1 a:active, h1 a:hover, h1 a:link, h1 a:visited { color: #e6e6e6; }
.bordered { border: 1px solid #363636; }