YouTube Quick Speed Interface

Modify the YouTube HTML player interface

As of 2023-07-21. See the latest version.

Author
オーウェル緑
Ratings
0 0 0
Version
1.10
Created
2023-05-20
Updated
2023-07-21
Size
5.17 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.
================ BUG ================
Known issue:
-1. Usually, when entering a YouTube video for the first time on a new browser tab, it may not open properly and requires a refresh to function correctly.
(I do not have the ability to solve the above-mentioned problems. Volunteers are welcome to collaborate.)

================ 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.

// @changelog Version 1.10:
// - Fixed a bug where the speed option highlight would display incorrectly when switching between videos.

================ 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.