KU Sticky Video for YouTube is a lightweight WordPress plugin that automatically makes YouTube video players inside post content follow the scroll position, showing in the corner of the page when the original video scrolls out of view.
This plugin contains minified JavaScript for performance. The complete, unminified source code is publicly available on GitHub:
https://github.com/karasunouta/ku-sticky-video-for-youtube
The source code corresponding to the submitted version is now available on the wp-org-review branch:
https://github.com/karasunouta/ku-sticky-video-for-youtube/tree/wp-org-review
To rebuild the minified assets, run the following commands in the plugin directory:
1. npm install (to install build dependencies)
2. npm run build (to compile the source files using @wordpress/scripts)
You can add the excluded CSS class (configured in the settings page, default: no-sticky) to the YouTube block or its parent container in the WordPress editor under “Advanced” -> “Additional CSS class(es)”.