Repository navigation
Conversation
cevdetch
force-pushed
the
feat/youtube-playback-rate
branch
from
November 19, 2026 23:32
3e41b85 to
8e21271
Compare
cevdetch
force-pushed
the
feat/youtube-playback-rate
branch
from
November 24, 2026 14:03
8e21271 to
0b385d3
Compare
Add a rewrite rule that sets the playback rate of YouTube embeds per feed. The rule enables the player JS API on YouTube iframes and tags them with data-youtube-playback-rate; app.js then sends the rate to the player via postMessage. Rates outside 0.25-2 are rejected when the rule is saved. Closes miniflux#2949
cevdetch
force-pushed
the
feat/youtube-playback-rate
branch
from
November 29, 2026 23:51
d706730 to
fd3eb27
Compare
Contributor
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2949
Adds a
set_youtube_playback_rate("1.5")rewrite rule to set the playback speed of YouTube embeds per feed.add_youtube_video), addsenablejsapi=1and tags them withdata-youtube-playback-rate.app.jssends the rate to the player withpostMessage(no external script, no CSP changes).media_playback_ratesetting and Invidious support are unchanged.Usage: custom rules replace the predefined ones, so a YouTube feed needs
add_youtube_video,set_youtube_playback_rate("1.5"). Entries already fetched are not changed.Tested with unit tests for the rule, validation and sanitizer. I also checked the
postMessagehandshake in headless Chromium against a real youtube-nocookie.com embed: the player reportedplaybackRate: 1.5.