a inject tools for injecting js code into typora (with an activating script example)
- unpack
node_modules.asar
package (inTypora\resources
) - write
hook.js
intoraven
package directory (raven will be required at the early stage of startup) - modify
index.js
ofraven
,injecting require ofhook.js
Currently using embedded javascript file (
hook.js
)
usage:
- modify
hook.js
if you need - use
cargo build
to 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.log
to remote http server and block override - hook
electron-fetch
for sniffing request - Full version compatibility (older version not using
electron-fetch
and 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