a inject tools for injecting js code into typora (with an activating script example)
- unpack
node_modules.asarpackage (inTypora\resources) - write
hook.jsintoravenpackage directory (raven will be required at the early stage of startup) - modify
index.jsofraven,injecting require ofhook.js
Currently using embedded javascript file (
hook.js)
usage:
- modify
hook.jsif you need - use
cargo buildto make executable - Move the program to the Typora directory
- run (in shell,windows will close window when program exit,you need to get generated fake license in program output)
JUST FOR LEARNING!
SUPPORT GENUINE SOFTWARE AND DO NOT SELL PIRATED SOFTWARE !!!
- make typora to activate with the generated activation code (Test passed in version 1.4.8 on windows)
- hook
console.logto remote http server and block override - hook
electron-fetchfor sniffing request - Full version compatibility (older version not using
electron-fetchand may fail in the future) - Multi os compatibility (only test on windows,Drawin have another packaging methods,in progress.)
- Windows / Typora 1.4.8 PASSED
- Ubuntu / Typora 1.4.7 PASSED