Skip to content

fix: update bits button selectors and suppress prod console logs#1208

Open
dcmclarke wants to merge 4 commits intoSevenTV:masterfrom
dcmclarke:master
Open

fix: update bits button selectors and suppress prod console logs#1208
dcmclarke wants to merge 4 commits intoSevenTV:masterfrom
dcmclarke:master

Conversation

@dcmclarke
Copy link

@dcmclarke dcmclarke commented Mar 15, 2026

Fixes #1187
The "Hide Bits Buttons" setting stopped working because Twitch updated
their UI. The old selectors (data-a-target="bits-button" for the balance
button) seems to no longer exist on the page.

So checked out the current Twitch DOM, the bits/channel points balance
button now uses aria-label="Bits and Points Balances". So Twitch has merged
the bits and channel points balance into a single combined button which makes it
impossible to hide bits without also hiding channel points. The cheer
button (data-a-target="bits-button") selector still works and has been kept.
Note: Due to Twitch combining bits and channel points into one button,
enabling "Hide Bits Buttons" will also hide the channel points balance.
Users who want to keep channel points visible can use the separate
"Hide Channel Point Balance Button" setting instead.

Below chat

before after

Top of screen (above chat)

after2 before2

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Also suppresses [INFO] and [DEBUG] logs in production builds via the Logger class (Closes #1203)

@dcmclarke dcmclarke changed the title fix: Hide Bits Buttons setting not working due to Twitch UI changes fix: update bits button selectors and suppress prod console logs Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant