A browser app for injecting custom JavaScript at any point in the page lifecycle.
Scriptian lets you run small pieces of JS at chosen lifecycle moments (for example: before DOM is ready, after DOMContentLoaded, on window load, or on demand). It's written primarily in TypeScript.
- Inject custom JavaScript at different page lifecycle events:
- before DOM parsing finishes
- after DOMContentLoaded
- on window
load - on-demand / programmatic execution
- Lightweight and focused on simple script injection
- TypeScript-first codebase for safer development and tooling
- Easy to extend with additional lifecycle hooks or injection strategies
Clone the repo:
git clone https://github.com/afnx/scriptian.git
cd scriptianInstall dependencies:
npm installStart the app:
npm run start- The codebase is TypeScript-first.
- Run tests with:
npm run test- Lint:
npm run lint(Refer to package.json for exact scripts.)
Contributions are welcome. Please:
- Open an issue to discuss larger changes or feature ideas.
- Fork the repository and create a feature branch.
- Submit a pull request with a clear description of the change.
Follow the existing code style and add tests for new functionality where appropriate.
This project is licensed under the Business Source License 1.1 - see the LICENSE file for details.
- 🐛 Report Issues
- 📧 Contact Me
- ⭐ If this project helped you, please give it a star!
Made with ❤️ by Ali Fuat Numanoglu