Skip to content

Instantly share code, notes, and snippets.

@StewGoin
Created January 24, 2019 17:22
Show Gist options
  • Save StewGoin/95b55e7ec1e07fd54fad7e937569dcfe to your computer and use it in GitHub Desktop.
Save StewGoin/95b55e7ec1e07fd54fad7e937569dcfe to your computer and use it in GitHub Desktop.
darkmode
#!/bin/bash
cat << 'EOF' >> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
const customCSSURL = 'https://gist.githubusercontent.com/raw/92cec34ef4897a8a2258b42036d89537/discordish.css';
document.addEventListener('DOMContentLoaded', function() {
(new Promise((good,bad) => { fetch(customCSSURL).then( response => { good(response.text()) } ); }))
.then((cssText) => { $("<style></style>").appendTo('head').html(cssText); });
});
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment