https://github.com/lzt-upgrade/extensions
Monorepo for all lztup extensions
https://github.com/lzt-upgrade/extensions
ext lzt upgrade userscript
Last synced: 10 days ago
JSON representation
Monorepo for all lztup extensions
- Host: GitHub
- URL: https://github.com/lzt-upgrade/extensions
- Owner: lzt-upgrade
- Created: 2025-04-12T14:08:30.000Z (11 days ago)
- Default Branch: master
- Last Pushed: 2025-04-12T14:35:34.000Z (11 days ago)
- Last Synced: 2025-04-12T15:31:40.045Z (11 days ago)
- Topics: ext, lzt, upgrade, userscript
- Language: SCSS
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lztup-extensions
Monorepo for all lztup extensions
## Guide
1. 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.
```ts
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.
```ts
import { injectStyle } from "__style_helper__";// text (string) - style code
// hash (string) - uniq hash or id of styles
injectStyle(text, hash);
```## Install
1. Install Bun
2. Run `bun install` in the root directory
3. Build```bash
bun run build:bun
```## New UserScripts
You 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