Created
October 29, 2018 14:03
-
-
Save CezaryDanielNowak/510a9bed05786ab12df707fef4cce819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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