Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Tampermonkey userscripts

Small browser fixes and utilities, kept in Git so the repository—not Tampermonkey sync—is the source of truth.

Scripts

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.

Request a script change

Create an issue and describe a new script or a change to an existing one.

The repository is configured so that:

  1. Copilot coding agent is assigned when the issue is created.
  2. Copilot implements the request in a linked pull request.
  3. The originating issue gets a live status comment when the Copilot PR starts, receives commits, becomes ready for review, or closes.
  4. 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.

Automatic updates

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

Versioning and releases

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.

Testing

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.

Scroll to Bottom

Open tests/fixtures/scroll-to-bottom.html and verify:

  1. The ↓ button is visible near the top of the page.
  2. Clicking it scrolls smoothly to the bottom.
  3. The button disappears at the bottom.
  4. Scrolling upward makes it reappear.
  5. Adding dynamic content while at the bottom makes it reappear because the page is no longer at the bottom.

Auto Retry

Open tests/fixtures/auto-retry.html and verify:

  1. No auto-retry control is visible when no retry target exists.
  2. Adding a Retry or Try again button makes the countdown and disable control appear.
  3. Removing the target hides the control again.
  4. The per-tab disable checkbox pauses automatic clicking while the target remains present.
  5. Re-enabling resets the countdown.

Repository rules

  • One userscript per *.user.js file.
  • Keep scripts self-contained unless an external dependency is genuinely necessary.
  • Prefer narrow @match rules 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.

License

MIT.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages