Add CS Weekly Drop Reset - #175
Conversation
|
Read the source at the pinned commit 1. Russian pluralisation is wrong across most of the countdown's range.
Stepping one second at a time through a full week, the tooltip carries at least one incorrect Russian form for 80.0 % of the week (483768 / 604800 seconds). A real sample three days out:
2. The error boundary sits one level below the code it's protecting.
Related: the 3. The tile mounts twice on the CS2 page. Two visible cards, 144×48 each, at viewport 4.
5. 6. The card opens a third-party site in the system browser with no opt-out. 7. Trivial. On the always-on polling, which I'd flagged from the source and then measured. Things I checked expecting trouble and found none. Teardown on route change is clean: leaving Tested on Steam Stable, plugin confirmed loaded in Disclosure: I have a plugin submission open in this queue. |
thank you for the review, i will get to work and fix all |
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
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 translatesthe 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:
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 pageby locating the visible play-bar game-name element, then mounts a React tile into that page's stats
section. Navigation is tracked through
historyhooks,popstate/hashchange, a debouncedMutationObserver, and a 1-second polling fallback. Tiles are unmounted cleanly when you leave theCS2 page.