Created
January 24, 2019 17:22
-
-
Save StewGoin/95b55e7ec1e07fd54fad7e937569dcfe to your computer and use it in GitHub Desktop.
darkmode
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
#!/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