youtube icon indicating copy to clipboard operation
youtube copied to clipboard

💡playerPlaybackSpeedButton defined twice in player.js

Open hkzo opened this issue 7 months ago • 1 comments

⚬ 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

hkzo avatar May 01 '26 05:05 hkzo

After taking another look, I found that the related setting also exists in two places:

  • Player > Buttons > Playback speed button
  • Player > 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.

hkzo avatar Jul 02 '26 02:07 hkzo