Monorepo for all lztup extensions
- Use css / scss files instead of GM_addStyle.
GM_addStyle may not be available in some user script managers, or it may work differently. Therefore, we provide our own API to replace it, instead of the usual polyfiles.
import "./style.css";
import "./style.scss";or you can use injectStyle function, but this isn't recommended for static code because it doesn't prepare css with lightningcss.
import { injectStyle } from "__style_helper__";
// text (string) - style code
// hash (string) - uniq hash or id of styles
injectStyle(text, hash);- Install Bun
- Run
bun installin the root directory - Build
bun run build:bunYou can easily add new userscripts by simply creating a new folder in root and adding headers.json and index.ts (or index.js) as entrypoint to it.
To ignore you can add folder to ignoredDirs in lztup.config.ts file