Svelte, Typescript, Vite, Unocss, unplugin-auto-import
Seperate your code in the shadow-root with the main webpage whether js , css or png.
npx degit SoonIter/tampermonkey-svelte-template my-script-app
pnpx degit SoonIter/tampermonkey-svelte-template my-script-app
npm run build
dist
├── Tampermonkey.iife.js
└── favicon.ico
Copy this file to your new Tampermonkey script and write some configs.