For security, since this script injects CSS via AJAX, first fork the main slack night mode repo. The reason is explained here
- save this script wherever you keep your ruby scripts for example
~/lacostenycoder/scripts/ruby/
- change the URL in the ruby script to use YOUR repo. The rawgit.com file is created when you fork the repo.
- For non-MacOS, find where the slack files are and replace line 17 to point to correct path, thanks simbalinux so you would change line 17 for ubuntu like this
@file_target = '/usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js'