Skip to content

Overview

npm packagenode compatibility

A vite plugin server and build your.user.js for userscript engine like Tampermonkey and Violentmonkey, Greasemonkey, ScriptCat

Feature

  • support Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat, etc
  • inject userscript comment to build bundle
  • auto open *.user.js in default browser when userscript change
  • external cdn url inject to userscript @require
  • external module inject to userscript @resource
  • use GM_api by ESM import with type hints
  • intelligently collect GM_api that is used and automatically configure userscript @grant comment
  • support top level await and dynamic import in single file
  • when vite preview, auto open browser install dist.user.js
  • full typescript support and vite feature