Giter VIP home page Giter VIP logo

slacky-dark's Introduction

Slacky Dark

Dark mode theme for Slack desktop and web based clients

- ! This does not work with Slack 4.0 or higher. Only 3.4 and below as it requires a new process to unpack the app.asar file.
- ! I'm not maintaining this anymore as Slack now has a built-in darkmode that works well enough. 

Preview

image

Installing into Slack Desktop client

*For quick/easy install on Windows, check the **Automated Install** section at the bottom.
  1. Find the Slack application directory as follows:
  • Windows: %homepath%\AppData\Local\slack\
  • Mac: /Applications/Slack.app/Contents/
  • Linux: /usr/lib/slack/

NOTE: You can do this to the Windows Store UWP Slack app as well, but it's recommended to use the Desktop version. If you want to go the UWP route, give yourself access to the following hidden folder C:\Program Files\WindowsApps\. The instructions below can be followed in this folder pretty much the same as the ones above.

  1. Open the most recent version folder (Ex. app-3.1.0).

  2. Navigate to: \resources\app.asar.unpacked\src\static and edit the file ssb-interop.js.

  3. At the very bottom of the file, add the following code:

document.addEventListener('DOMContentLoaded', function() {
 $.ajax({
   url: 'https://raw.githubusercontent.com/alienator88/slacky-dark/master/dark.css',
   success: function(css) {
     $("<style></style>").appendTo('body').html(css);
   }
 });
});
  1. After save, restart Slack.
*Note: This will have to be done after each Slack app update as the file is overwritten.*

Installing into Slack Web Based Client

  1. Install the Stylus extension for Chrome or Firefox

  2. Apply the style from my UserStyles.org page.

Automated Install (Windows)

  1. Open powershell and run the following to allow unsigned scripts set-executionpolicy unrestricted

  2. Download SlackInstall.ps1 and run it with powershell. This will automatically add all the code to the correct file.

Enabling Developer Tools in Slack

  • Windows: Create a shortcut to Slack and change the target to

C:\Windows\System32\cmd.exe /c "SET SLACK_DEVELOPER_MENU=TRUE && start %homepath%\AppData\Local\slack\slack.exe"

Run Dev Tools with CTRL+ALT+I. (Menu > View > Developer)

Refresh Slack window with CTRL+SHIFT+R. (Menu > View > Developer)

  • Mac: Set up as an Automator program with the "program" being Run Shell Script that has the following code:
export SLACK_DEVELOPER_MENU=true

open -a /Applications/Slack.app

Run Dev Tools with ⌘ Command+⌥ Option+I. (Menu > View > Developer)

Refresh Slack window with ⌘ Command+SHIFT+R. (Menu > View > Developer)

Credits

slacky-dark's People

Contributors

alienator88 avatar rheingoldriver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.