DEV Community

Discussion on: Easy Dark Mode for Slack

 
fynn_it profile image
Fynn

yeah so the file belongs to the root user.. not you, meaning you have to use sudo or chown

Thread Thread
 
ubuntudroid profile image
Sven Bendel

Just use

echo 'document.addEventListener("DOMContentLoaded", function() {$.ajax({url: "https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css",success: function(css) {let overrides = "code { background-color: #535353; color: #85c5ff; } .c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }"; $("<style></style>").appendTo("head").html(css + overrides);}});});' | sudo tee -a /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js

to fix your permission issues.