fix(Crunchyroll): restore iframe playback detection#10650
Open
CreepsoOff wants to merge 5 commits intoPreMiD:mainfrom
Open
fix(Crunchyroll): restore iframe playback detection#10650CreepsoOff wants to merge 5 commits intoPreMiD:mainfrom
CreepsoOff wants to merge 5 commits intoPreMiD:mainfrom
Conversation
theusaf
requested changes
Apr 6, 2026
| @@ -0,0 +1,19 @@ | |||
| const iframe = new iFrame() | |||
|
|
|||
| setInterval(() => { | |||
Contributor
There was a problem hiding this comment.
Use iframe UpdateData event
Co-authored-by: Daniel Lau <[email protected]> Signed-off-by: Fab <[email protected]>
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.
Description
Crunchyroll uses two different video player implementations. PR #10587 removed iframe support in favor of direct
<video>element detection, but this caused the presence to remain stuck on "Browsing..." on/watch/pages forusers with the iframe-based player (
https://static.crunchyroll.com/vilos-v2/web/vilos/player.html).This PR re-introduces iframe support to ensure compatibility with both player types:
<video>in#player-containeror document rootiFrameDataeventChanges
"iframe": trueand"iFrameRegExp": "static.crunchyroll.com"<video>element inside the player iframe and sends playback data viaiframe.send()iFrameDataevent handler + dual playback detection (direct video with iframe fallback)All existing features (privacy mode, hideWhenPaused, timestamps, buttons, browsing pages) remain unchanged.
Acknowledgements
npm run lintScreenshots
Proof showing the creation/modification is working as expected