youtube
youtube copied to clipboard
💡playerPlaybackSpeedButton defined twice in player.js
⚬ PROBLEM: ImprovedTube.playerPlaybackSpeedButton is defined twice in player.js. The second definition (after playerRotateButton) silently overwrites the first, leaving it as dead code.
| SHORT Table | (Summary) |
|---|---|
| Problem | playerPlaybackSpeedButton defined twice in player.js; first definition is dead code, silently overwritten |
| Solution | Remove the first (dead) definition or merge both into one coherent implementation in player.js |
| Alternatives | Keep only the second definition as-is (status quo behavior) |
| Scope | All users with Playback Speed Button enabled; contributor/maintainer clarity |
| Side effects | No runtime regression expected; cleanup only |
| Context | Two definitions in player.js — search playerPlaybackSpeedButton = function to reproduce |
After taking another look, I found that the related setting also exists in two places:
Player > Buttons > Playback speed buttonPlayer > Extra buttons inside the player > Playback Speed Button
I’m going to handle both the overwritten playerPlaybackSpeedButton implementation and this duplicate settings entry in a self-contained PR.
The active runtime implementation will remain unchanged to minimize user-facing behavior changes.