An inject tools for injecting js code into electron application
Please follow DMCA when using this code
- unpack
node_modules.asar
package (in./resources
) - write
hook.js
intoraven
package directory (raven will be required at the early stage of startup in some application) - modify
index.js
ofraven
,injecting require ofhook.js
Currently using embedded javascript file (
hooklog.js
)
usage:
- modify
hook.js
if you need - use
cargo build
to make executable - Move the program to the electron application directory
- run
- Windows / Typora 1.4.8 PASSED
- Ubuntu / Typora 1.4.7 PASSED