Skip to content

fix: disable thumbnail hover playback on sidebar related videos#3672

Merged
ImprovedTube merged 1 commit intocode-charity:masterfrom
majiayu000:fix/3639-sidebar-thumbnail-hover
Mar 7, 2026
Merged

fix: disable thumbnail hover playback on sidebar related videos#3672
ImprovedTube merged 1 commit intocode-charity:masterfrom
majiayu000:fix/3639-sidebar-thumbnail-hover

Conversation

@majiayu000
Copy link
Contributor

Fixes #3639

Problem

"Disable video playback when hovering on thumbnails" only works on the home page and search results. Sidebar related videos use ytd-compact-video-renderer which wasn't matched by the event filter.

Fix

Add #dismissible.ytd-compact-video-renderer to the composedPath selector in disableThumbnailPlayback().

Test

  • Added tests/unit/disable-thumbnail-playback.test.js
  • All existing tests pass

…-charity#3639)

Add #dismissible.ytd-compact-video-renderer selector to match sidebar
related videos, which use a different DOM structure than home page and
search result items.
Signed-off-by: majiayu000 <1835304752@qq.com>
@ImprovedTube ImprovedTube merged commit 2b5c972 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.

🐞Disable video playback when hovering on thumbnails not working as expected

2 participants