A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
Vite-plugin-monkey is a powerful plugin designed for developers creating user scripts for various environments like Tampermonkey and Violentmonkey. This tool streamlines the development process, allowing for a more efficient setup and building of userscripts. With support for TypeScript, various templates, and automatic browser interactions, this plugin is a game changer for anyone looking to work with user scripts.
The main highlight of vite-plugin-monkey is its comprehensive feature set, which not only supports essential functionalities but also offers flexibility through multiple templates. Whether you’re a beginner with JavaScript or a seasoned TypeScript developer, this plugin has the tools you need to get started quickly and effectively.
Multi-Environment Support: Compatible with popular userscript engines like Tampermonkey, Violentmonkey, Greasemonkey, and more, ensuring wide usability.
Automatic Browser Integration: Automatically opens the compiled .user.js file in your default browser when changes are made, allowing for seamless testing.
External Module Injection: Easily inject external CDN URLs and resources into your userscript, broaden your script’s capabilities significantly.
Advanced API Usage: Utilizes GM APIs with ES module imports that include type hints, making it easy to leverage these powerful features in your scripts.
Top-Level Await & Dynamic Imports: Supports modern JavaScript features such as top-level await and dynamic imports in a single file, enhancing functionality and usability.
Full TypeScript Support: Offers complete TypeScript integration, appealing to developers who prefer type safety and enhanced code quality.
Flexibility in Template Choices: Start your project with a selection of templates tailored for different frameworks like React, Vue, Svelte, and more, streamlining the development process.
Minification Control: Handles code minification intelligently while adhering to the rules of platforms like Greasy Fork, with simple configuration options for developers needing optimized scripts.