Document ASCII-only convention in AGENTS.md
This commit is contained in:
@@ -9,6 +9,7 @@ Each userscript is a single `*.user.js` file at the repo root. A script owns eve
|
|||||||
- No shared modules, no build step, no bundler. A file must install and run as-is by pasting it into a userscript manager.
|
- No shared modules, no build step, no bundler. A file must install and run as-is by pasting it into a userscript manager.
|
||||||
- New script → new `name.user.js` file. Do not factor common code into helpers across files; duplication across scripts is acceptable and expected here.
|
- New script → new `name.user.js` file. Do not factor common code into helpers across files; duplication across scripts is acceptable and expected here.
|
||||||
- Every file starts with a complete `==UserScript==` metadata block (`@name`, `@namespace`, `@version`, `@description`, `@match`, `@run-at`, and any `@grant`/`@connect`).
|
- Every file starts with a complete `==UserScript==` metadata block (`@name`, `@namespace`, `@version`, `@description`, `@match`, `@run-at`, and any `@grant`/`@connect`).
|
||||||
|
- Keep scripts ASCII-only (use `-`, `"`, `...`, plain text labels). Some userscript managers decode files as latin-1, turning UTF-8 punctuation/emoji into mojibake (e.g. `—` → `—`).
|
||||||
|
|
||||||
## Linting
|
## Linting
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user