Skip to content

Replace manual video decrement#3343

Merged
ImprovedTube merged 1 commit intocode-charity:masterfrom
dnicolson:patch-4
Dec 6, 2025
Merged

Replace manual video decrement#3343
ImprovedTube merged 1 commit intocode-charity:masterfrom
dnicolson:patch-4

Conversation

@dnicolson
Copy link
Contributor

This refreshes native sidebars after videos are deleted (yt-new-playlist-header for watch later and yt-action for regular playlists). This prevents issues when there is 1 or 0 videos remaining.

@ImprovedTube
Copy link
Member

thank you! @dnicolson Tested? Can you (/Should we) keep the previous selector & method as a fallback?

@dnicolson
Copy link
Contributor Author

It's tested on several Watch later and regular playlists.

I don’t think it’s practical to keep the old method as a fallback. We’d need a way to detect if the sidebar rendering fails due to YouTube changes, and it’s unlikely that would trigger exceptions for unused custom messages.

@ImprovedTube
Copy link
Member

hi @dnicolson youtube exists in old and new versions at once. so at doubt we can keep both, new and old CSS selectors.

@ImprovedTube ImprovedTube merged commit e07d552 into code-charity:master Dec 6, 2025
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.

2 participants