Small browser fixes and utilities, kept in Git so the repository—not Tampermonkey sync—is the source of truth.
| Script | What it does | Version | Install |
|---|---|---|---|
| Scroll to Bottom Button | Shows a floating ↓ button whenever the page is not at the bottom. | 1.0.0 |
Install |
| Auto Retry Buttons | Automatically retries matching Retry/Try again buttons, showing its countdown and per-tab pause control only while a retry target exists. | 1.0.1 |
Install |
Clicking an Install link opens the raw .user.js file. With Tampermonkey installed, Tampermonkey should offer to install or update it.
Create an issue and describe a new script or a change to an existing one.
The repository is configured so that:
- Copilot coding agent is assigned when the issue is created.
- Copilot implements the request in a linked pull request.
- The originating issue gets a live status comment when the Copilot PR starts, receives commits, becomes ready for review, or closes.
- Repository instructions require version bumps, README/index updates, fixtures, and validation.
The dedicated Script request form gives Copilot the cleanest specification, but blank issues are also automatically assigned.
Every userscript must include:
// @version 1.0.0
// @updateURL https://raw.githubusercontent.com/KanbanTrainer/tampermonkey/main/<file>.user.js
// @downloadURL https://raw.githubusercontent.com/KanbanTrainer/tampermonkey/main/<file>.user.js
After installation, Tampermonkey periodically checks @updateURL. If the remote @version is newer, it downloads the script from @downloadURL.
Git is therefore the synchronization mechanism:
edit → test → bump @version → merge to main → Tampermonkey update
main is the release channel. A separate GitHub Release is not required for ordinary userscript changes.
Use monotonically increasing semantic versions: MAJOR.MINOR.PATCH.
- Patch: fixes and small changes.
- Minor: meaningful new behavior.
- Major: incompatible or substantially changed behavior.
A changed userscript must always get a newer @version. CI validates userscript metadata and syntax, and pull requests changing an existing userscript must also change its version.
Deterministic browser fixtures live under tests/fixtures/. They are intentionally plain HTML so userscript behavior can be exercised without depending on a live site's current DOM.
Open tests/fixtures/scroll-to-bottom.html and verify:
- The ↓ button is visible near the top of the page.
- Clicking it scrolls smoothly to the bottom.
- The button disappears at the bottom.
- Scrolling upward makes it reappear.
- Adding dynamic content while at the bottom makes it reappear because the page is no longer at the bottom.
Open tests/fixtures/auto-retry.html and verify:
- No auto-retry control is visible when no retry target exists.
- Adding a
RetryorTry againbutton makes the countdown and disable control appear. - Removing the target hides the control again.
- The per-tab disable checkbox pauses automatic clicking while the target remains present.
- Re-enabling resets the countdown.
- One userscript per
*.user.jsfile. - Keep scripts self-contained unless an external dependency is genuinely necessary.
- Prefer narrow
@matchrules over global execution when the script is site-specific. - Global
@match *://*/*is acceptable only when the behavior is intentionally useful across arbitrary pages. - Never commit secrets or credentials.
- Git history is the rollback mechanism.
- Avoid build tooling, shared UI libraries, Renovate/Dependabot, and other infrastructure until dependencies or concrete duplication make them useful.
MIT.