Skip to content

fix: update Join button CSS selectors for YouTube's new DOM#3673

Merged
ImprovedTube merged 1 commit intocode-charity:masterfrom
majiayu000:fix/3669-join-button-hiding
Mar 7, 2026
Merged

fix: update Join button CSS selectors for YouTube's new DOM#3673
ImprovedTube merged 1 commit intocode-charity:masterfrom
majiayu000:fix/3669-join-button-hiding

Conversation

@majiayu000
Copy link
Contributor

Fixes #3669

Problem

YouTube migrated the Join button from #sponsor-button to ytd-sponsorships-offer-module-renderer. The existing CSS selectors no longer match.

Fix

Add ytd-sponsorships-offer-module-renderer selectors for both hidden and remove_label modes while keeping legacy #sponsor-button selectors.

Test

  • Added tests/unit/join-button-hiding.test.js
  • All existing tests pass

…de-charity#3669)

YouTube migrated the Join button from #sponsor-button to
ytd-sponsorships-offer-module-renderer. Add selectors for the new
component while keeping legacy selectors for backward compatibility.
Signed-off-by: majiayu000 <1835304752@qq.com>
@ImprovedTube ImprovedTube merged commit 43dc09d into code-charity:master Mar 7, 2026
1 check passed
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.

🐞 Join Button not hiding anymore even when set to Hidden

2 participants