You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix GitHub trending star/fork counts showing as 0 (#40)
The list itself now loads (thanks to the per-row resilience fix), but
every item showed "★ 0" — the star/fork count selector
(.Link--muted.d-inline-block.mr-3) is matching nothing, while the
"stars today" badge selector still works fine. That points at GitHub
having renamed the Primer CSS utility classes on those count links,
which are exactly the kind of styling classes GitHub churns over time.
Read the counts from the stargazers/forks link's href instead
(a[href$=stargazers], a[href$=forks|members]) — a stable, semantic
URL rather than a utility class combo — falling back to the old
class-based selector if that ever comes back.
Co-authored-by: Claude <noreply@anthropic.com>