Skip to content

now-is/nowinject-scripts

Repository files navigation

NowInject Scripts

Scripts for NowInject, a feather-light browser injection kit for developers.

This repository is meant as an example inject directory for NowInject. Each subdirectory contains a single spec, in which three files are immediately meaningful:

  • matches.json, a file containing patterns to match URLs
  • optional inject.css, the styles to inject into pages matching the patterns
  • optional inject.js, the code to inject into pages matching the patterns

The format of matches.json is described on MDN.

Two files, base.css and base.js, serve as common code for all your styles and scripts.

It is probably easy to guess that readability and dark mode motivate almost every one of these examples:

Note

The build leaves files named built-path.js in your inject subdirectories, which is unfortunate but makes for a convenient way to load CSS. The solution adopted here is adding built-path.js to .gitignore, and refraining from adding files with that name.

About

NowInject Example Scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published