Skip to content

Add cs-weekly-drop plugin#175

Open
spix18 wants to merge 1 commit into
SteamClientHomebrew:mainfrom
spix18:main
Open

Add cs-weekly-drop plugin#175
spix18 wants to merge 1 commit into
SteamClientHomebrew:mainfrom
spix18:main

Conversation

@spix18

@spix18 spix18 commented May 29, 2026

Copy link
Copy Markdown

CS Weekly Drop Reset

A plugin that adds a live countdown to the next Counter-Strike weekly drop reset, right on the Counter-Strike 2 page in your Steam library. It mounts a native-looking tile into the play bar's stats row, so it blends in with Steam's own UI.

Features

  • Live countdown to the next weekly drop reset, updated every second.
  • Native styling — reuses Steam's own play-bar classes so the tile looks built-in.
  • Hover tooltip with the reset schedule and the exact reset time in your local timezone.
  • Click through to a detailed drop-reset info page.
  • Lightweight & frontend-only — no backend, no network calls, no telemetry.

Drop reset schedule

Counter-Strike weekly drops reset every Wednesday at 01:00 UTC. The tile shows the remaining
time as Dd HH:MM:SS (the day count is omitted in the final 24 hours), and the tooltip translates
the next reset into your local time.

Localisation & Languages

The plugin respects your Steam client language settings. It fully translates all titles, labels, countdown units (day/hour/minute/second), and date formats for the following 10 languages:

  • English (default)
  • Chinese (Simplified & Traditional)
  • Russian
  • German
  • Spanish
  • French
  • Japanese
  • Korean
  • Portuguese (Brazilian)

How it works

Steam's library uses an in-memory React router, so the URL never reflects the current page. The
plugin watches each Steam window (via AddWindowCreateHook) and detects the Counter-Strike 2 page
by locating the visible play-bar game-name element, then mounts a React tile into that page's stats
section. Navigation is tracked through history hooks, popstate/hashchange, a debounced
MutationObserver, and a 1-second polling fallback. Tiles are unmounted cleanly when you leave the
CS2 page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant