YouTube Quick Speed Interface

Modify the YouTube HTML player interface

As of 2023-05-23. See the latest version.

Author
オーウェル緑
Ratings
0 0 0
Version
1.05
Created
2023-05-20
Updated
2023-05-23
Size
6.44 KB
License
MIT
Applies to

I have only learned Python for about 10 hours without any other programming foundation, so I will leave all the following code to ChatGPT.
Usually, there are too many layers in the UI when adjusting the playback speed of YouTube videos, so I made a more convenient tool by myself.
Ideally, it should have shortcut key functions, but after trying for a long time, I couldn't figure it out.
Hopefully some experts can help me solve this problem.

================ UPDATE ================
// @changelog Version 1.05:
// - Added MutationObserver to dynamically add speed options when the YouTube player container is added to the document.
// - Fixed a bug where duplicate speed adjustment options were created by checking for the existence of the .ytp-speed-options element before adding.

================ INTRO ================
Adding Playback Speed Options to YouTube Player

This script adds a playback speed control feature to the YouTube HTML player interface, allowing you to change the video's playback speed using predefined speed options.

Instructions:
- After installing the script, you will see a "Speed" label next to the player controls.
- Click on the desired speed option to change the playback speed.
- The selected speed option will be highlighted and applied during video playback.

Note:
- This script is compatible with YouTube's HTML player interface.