Skip to content

fix: Prevent forced playback speed exception when DATA.title is false#3835

Open
hkzo wants to merge 1 commit into
code-charity:masterfrom
hkzo:fix/forced-playback-speed-exception
Open

fix: Prevent forced playback speed exception when DATA.title is false#3835
hkzo wants to merge 1 commit into
code-charity:masterfrom
hkzo:fix/forced-playback-speed-exception

Conversation

@hkzo
Copy link
Copy Markdown

@hkzo hkzo commented May 6, 2026

Summary

This PR fixes an exception in ImprovedTube.playerPlaybackSpeed() when "Permanent/Forced playback speed" is enabled and the playback speed is set above 1.

The code could call .replace() on DATA.title even when DATA.title was false, causing execution to stop.

Details

Fixes an exception during execution.

[Console Log] Uncaught TypeError: DATA.title.replace is not a function (player.js:227:65)

(Verified on version 4.2026)

Steps to reproduce:

  • Reload and go to YouTube Home.
  • Navigate to the "Playlists" or "History" page from the side menu.
  • Execution stops due to the exception (visible in DevTools console).

Environment

  • Browser: Firefox Developer Edition 151 / Firefox 150
  • Extension: ImprovedTube 4.2026 (No other extensions installed)
  • OS: macOS 15.7

Fix exception (version 4.2026)
[Console Log] Uncaught TypeError: DATA.title.replace is not a function at waitForVideoTitle (version 4.2026 player.js:227:65)
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.

1 participant