This repo is the working source of truth for your browser userscripts.
Keep scripts:
- easy to review and refine
- easy to install in Tampermonkey
- consistent across multiple browsers and machines
scripts/active userscripts, one file per scripttemplates/starter templates and reusable header patternsdocs/notes for install, sync, and migration decisionsarchive/retired or superseded scripts
Use:
script-name.user.jsfor Tampermonkey-ready files
Example:
scripts/youtube-cleanup.user.js
- Keep each script self-contained unless there is a strong reason not to.
- Prefer explicit metadata headers and clear version bumps.
- Use stable selectors and defensive guards to reduce breakage.
- Avoid site-specific hacks without a short comment explaining why.
- Preserve Tampermonkey compatibility first; optimize second.
Recommended baseline:
- Keep this repo in Git.
- Sync it through GitHub, a private Git remote, or a synced folder service.
- Install scripts in Tampermonkey from the files in
scripts/. - When a script changes, update the file here first, then reinstall or update it in each browser.
If you want, I can later set this up for one of these models:
- local-file workflow
- GitHub-hosted raw script workflow with
@downloadURLand@updateURL - cloud-synced folder workflow
The GitHub-hosted raw script workflow is usually the cleanest for multiple browsers and devices.
When you give me a .js file, I will help with:
- cleanup and refactoring
- metadata normalization
- Tampermonkey compatibility
- readability and maintainability
- reducing breakage from DOM changes
- consolidating overlapping scripts
Drop one or more .js files into scripts/ or paste them here, and I will normalize them into Tampermonkey-ready *.user.js files where needed.