Skip to main content
# 💉 electron-inject

You find yourself locked out of closed source electron applications with no easy way to enable developer tools? *electron-inject* to the rescue 👲

*electron-inject* is an application wrapper that utilizes the remote debug console to inject javascript code into electron based applications. For example, this can be pretty handy to enable otherwise unavailable features like the built-in developer tools.

![slack](https://cloud.githubusercontent.com/assets/2865694/24376228/70b2c2b0-133b-11e7-893c-c7a0ad262343.gif)


# install

$ pip install electron-inject

or

$ python setup.py install

# usage

$ python -m electron_inject --help
Usage:
usage:
electron_inject [options] - <electron application>

example:
electron_inject --enable-dev-tool-hotkey - /path/to/electron/powered/application [--app-params app-args]


Options:
-h, --help show this help message and exit
-d, --enable-devtools-hotkeys
Enable Hotkeys F12 (Toggle Developer Tools) and F5
(Refresh) [default: False]
-t TIMEOUT, --timeout=TIMEOUT
Try hard to inject for the time specified [default:
none]

# Showcase

Inject hotkeys *F12:toggle devconsole* and *F5:reload* into closed source apps with devconsole disabled.

`--enable-devtools-hotkeys` .. enable developer hotkeys
`--timeout=xx` .. patch all known remote webContent/windows in a timeframe of `xx` seconds. set this to an arbitrary high value to make sure we're patching all future windows.

## whatsapp

`$ python -m electron_inject -d -t 60 - \\PATH\TO\Local\WhatsApp\app-0.2.2244\WhatsApp.exe`

![whatsapp gif](https://cloud.githubusercontent.com/assets/2865694/24376256/81d44e88-133b-11e7-961f-060e7b8201ed.gif)

## slack

`$ python -m electron_inject -d -t 60 - \\PATH\TO\Local\slack\app-2.5.2\slack.exe`

![slack](https://cloud.githubusercontent.com/assets/2865694/24376228/70b2c2b0-133b-11e7-893c-c7a0ad262343.gif)

Metadata

Release files for electron-inject 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for electron-inject 0.2
File Size Uploaded
electron-inject-0.2.tar.gz 4.1 kB Details

Release files / electron-inject-0.2.tar.gz

Download URL electron-inject-0.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0e0819ee5e8c229a9f017d0c61b59084420351ca0c054a9f1e8282bb6da491c3
BLAKE2b-256 checksum
How to use checksums
31eee0577fcea75f9c3ed8afeb0b41c1aa72ef1e01c6a0cd58381180b46916db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7

1 release file

0.6

3 release files

0.5

2 release files

0.4

2 release files

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page