An inject tools for injecting js code into electron application
Please follow DMCA when using this code
node_modules.asar package (in ./resources)hook.js into raven package directory (raven will be required at the early stage of startup in some application)index.js of raven,injecting require of hook.jsCurrently using embedded javascript file (
hooklog.js)
hook.js if you need or enable no_embed feature to use specified js (NO_EMBED_HOOK_JS_PATH) at runtimecargo build to make executable with embedded js or cargo build --features no_embed without embedded jsSince macos may adopt different packaging methods and webkit as the execution environment, this tool does not support applications under macos.
https://github.com/DiamondHunters/NodeInject_Hook_example :Use NodeInject to realize specific functions in Typora