devinlane / SlackMod

Inject custom css / javascript to Slack app !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SlackMod

Description

Inject custom css / javascript to Slack app !

The process includes a Python script, src/main.py, which injects src/injected-script.ts into the Slack app.

Building the Application

Prerequisites

Before building the application, ensure you have the following installed:

Steps

Follow the steps below to build the application:

  1. Clone the repository:

    git clone https://github.com/AirOne-dev/SlackMod.git
    cd SlackMod
  2. Install Node.js dependencies:

    npm i
  3. Install Python dependencies:

    pip3 install -r requirements.txt

    or

    python3 -m pip3 install -r requirements.txt
  4. Run the app:

    npm run dev

    or

    python3 src/main.py
  5. Dev - Run the app with file change watcher:

    npm run dev-watch

    When you update src/injected-script.ts, it will restart Slack for you

  6. Build the app:

    MacOS only : npm run build, build SlackMod.app in dist folder

About

Inject custom css / javascript to Slack app !


Languages

Language:TypeScript 45.2%Language:Python 34.8%Language:Shell 12.6%Language:JavaScript 7.4%