Skip to content

Instantly share code, notes, and snippets.

@smitt04
smitt04 / darkSlack.sh
Created January 17, 2019 16:41
Applies dark theme to slack (OneDark)
JS="
// First make sure the wrapper app is loaded
document.addEventListener('DOMContentLoaded', function() {
// Then get its webviews
let webviews = document.querySelectorAll('.TeamView webview');
// Fetch our CSS in parallel ahead of time
const cssPath =
'https://raw.githubusercontent.com/Nockiro/slack-black-theme/master/custom.css';
let cssPromise = fetch(cssPath).then((response) => response.text());

Keybase proof

I hereby claim:

  • I am smitt04 on github.
  • I am smitt04 (https://keybase.io/smitt04) on keybase.
  • I have a public key ASBrJEM8sajPwQS-QTqDH-pCCH1kMgwEjS_TNOnwaLwi6go

To claim this, I am signing this object: