Move userscripts into scripts/ subfolder
This commit is contained in:
@@ -4,7 +4,7 @@ A flat collection of standalone browser userscripts (Tampermonkey / Violentmonke
|
|||||||
|
|
||||||
## Core Rule: One Self-Contained File Per Script
|
## Core Rule: One Self-Contained File Per Script
|
||||||
|
|
||||||
Each userscript is a single `*.user.js` file at the repo root. A script owns everything it needs — metadata header, styles, and logic — in that one file.
|
Each userscript is a single `*.user.js` file in `scripts/`. A script owns everything it needs - metadata header, styles, and logic - in that one file. Repo plumbing (flake, lint config, package files) stays at the root.
|
||||||
|
|
||||||
- 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user