GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NodeInject/README.md at main · DiamondHunters/NodeInject

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
36 lines (23 loc) · 1.45 KB
/

README.md

Copy path

File metadata and controls

36 lines (23 loc) · 1.45 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

NodeInject

An inject tools for injecting js code into electron application

Please follow DMCA when using this code

How it works

  1. unpack node_modules.asar package (in ./resources)
  2. write hook.js into raven package directory (raven will be required at the early stage of startup in some application)
  3. modify index.js of raven,injecting require of hook.js

Currently using embedded javascript file (hooklog.js)

Usage

  1. modify hook.js if you need, or enable no_embed feature to use specified js at (NO_EMBED_HOOK_JS_PATH)
  2. use cargo build to make executable with embedded js, or cargo build --features no_embed without embedded js
  3. Move the program to the electron application directory
  4. run

Compatibility test

  • Windows / Typora 1.9.5 PASSED
  • Ubuntu / Typora 1.9.3 PASSED

Since macos may adopt different packaging methods and webkit as the execution environment, this tool does not support applications under macos.

Examples

https://github.com/DiamondHunters/NodeInject_Hook_example :Use NodeInject with Typora


Digression

First airdrop of my life. Let me taste the flavor of web3.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.