Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

An electron application wrapper that utilizes the remote debug console to inject code into electron applications to enable developer tools

Project Description

# 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.

# install

$ pip install electron-inject


$ python install

# usage

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

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

-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:

# 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`

## slack

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

Release History

This version
History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.9 kB) Copy SHA256 Hash SHA256
Source Mar 27, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting