Test Procedure
The following is the contents of test.js
setInterval(()=>{console.log("test")}, 100)
If it is successfully injected, we should see test logged to the console 10 times every second
To ensure the process runs correctly, I run the following to make sure slack has no background instances
taskkill -im slack.exe -f
Running the following command leads to slack successfully launching, with a perfect trace of what is being logged into the devtools console.
python -m electron_inject -d -t 600 -r ./test.js - C:\ProgramData\F53\slack\app-4.27.154\slack.exe
Pressing F12 in this new slack window does not open devtools, despite us having the -d argument
Running the /slackdevtools in any slack chat shows them manually.
Looking at the console we just opened, test is not being logged 10 times every second
Possibly relevant Info
Python 3.10.1
electron-inject 0.7
all installed python packages
Windows 10 Enterprise N build 19044.1826
Slack 4.27.154
Test Procedure
The following is the contents of
test.jsIf it is successfully injected, we should see
testlogged to the console 10 times every secondTo ensure the process runs correctly, I run the following to make sure slack has no background instances
Running the following command leads to slack successfully launching, with a perfect trace of what is being logged into the devtools console.
Pressing F12 in this new slack window does not open devtools, despite us having the
-dargumentRunning the
/slackdevtoolsin any slack chat shows them manually.Looking at the console we just opened,
testis not being logged 10 times every secondPossibly relevant Info
Python 3.10.1
electron-inject 0.7
all installed python packages
Windows 10 Enterprise N build 19044.1826
Slack 4.27.154