Skip to content

Instantly share code, notes, and snippets.

@CezaryDanielNowak
Created October 29, 2018 14:03
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 CezaryDanielNowak/510a9bed05786ab12df707fef4cce819 to your computer and use it in GitHub Desktop.
Save CezaryDanielNowak/510a9bed05786ab12df707fef4cce819 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Slack - Theme
// @version 0.1
// @author Cezary Daniel Nowak
// @description try to take over the world!
// @include *.slack.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// INSTALLATION:
// 1. Select one of CSS files from https://github.com/laCour/slack-night-mode/tree/master/css
// 2. Paste it below
// 3. Remove `@-moz-document regexp("https://[^./]*\\.slack\\.com/(?!pricing)(?!security).*") {` part
// at the beginning
// 4. Remove last `}`
// 5. Save and refresh slack.
const css =
/* ####################################################### */
/* ################### PASTE CSS HERE #################### */`
`/* ######################## END ######################### */
/* ####################################################### */
const style = document.createElement('style');
style.type = 'text/css';
style.appendChild(document.createTextNode(css));
document.head.appendChild(style);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment