Skip to main content

Onium - Inject hebrew support into slack destop app

Project description

This little utility is using Electron’s debug API (Using chrome’s debug API) to inject Chrome plugins into an Electron app. The code was developed to inject the Hebrew support (RTL) support into Slack, but the concept can be changed to other apps and plugins.

What is Onium?

Onium is a tool to inject the Hebrew support chrome plugin into the slack desktop app. The tool was built to allow to inject any chrome plugin into electron, and will be changed in the future to support other electron apps.

Onium uses Shlomi Matichin’s excellent slack_hebrew plugin.

Requirements

You need Python 2.7 or 3.5 or later to run Onium. Onium should work on Windows, Mac and Linux.

Quick start

Onium can be installed using pip:

$ python -m pip install onium

As long as python’s scripts folder is in your path, simply rung

$ onium

Usage

Onium supports various command line parameters

usage: onium [-h] [-l LOCATION] [-t TIME] [-d] [-p PORT]

Inject hebrew support plugin into Slack's electron app. This program injects
the Chrome's hebrew_slack plugin into the electron (desktop) version of the
slack app

optional arguments:
  -h, --help            show this help message and exit
  -l LOCATION, --location LOCATION
                        Location of slack to run, or auto, local (Windows
                        only), store (Windows only) [default: auto]
  -t TIME, --time TIME  Wait for Slack to load for timeout seconds before
                        injecting [default: 15]
  -d, --debug           Additionally attempt to inject dev tools code
                        [default: False]
  -p PORT, --port PORT  Port on which Slack is listening to debug interface
                        [default: 9222]

Contribute / Join the conversation

Onium is an open-source project distributed under the MIT license. Basically means go wild.
Development is taking place at https://github.com/yonatan-mitmit/onium

Please report issues here

License

Onium is licensed under the terms of the MIT License (see the file LICENSE.txt).

Acknowledgement

Shlomi Matichin for his slack_hebrew plugin
Yuval Raz and Lital Lechtman for Mac porting and testing
Ami Chayun for Linux port

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onium-0.3.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

onium-0.3.1-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page