Add sponsorblock support#742
Conversation
b76e4db to
6e14a3a
Compare
There was a problem hiding this comment.
Pull request overview
Adds SponsorBlock integration to the YouTube web addon, enabling optional skipping of crowd-sourced segments based on user-selected categories (issue #672).
Changes:
- Added SponsorBlock-related settings strings and preference UI entries (enable toggle + per-category toggles).
- Injected a new
youtube_sponsorblock.jsscript into the YouTube WebView and wired it to preference changes. - Implemented
YoutubeSponsorBlockhelper to load the script and generate the runtime configuration JSON.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| modules/web/src/main/res/values/strings.xml | Adds UI strings for SponsorBlock settings and categories. |
| modules/web/src/main/res/raw/youtube_sponsorblock.js | New injected runtime that fetches SponsorBlock segments and skips them during playback. |
| modules/web/src/main/java/me/aap/fermata/addon/web/yt/YoutubeWebView.java | Injects/configures SponsorBlock on page load and reconfigures on pref changes. |
| modules/web/src/main/java/me/aap/fermata/addon/web/yt/YoutubeSponsorBlock.java | New settings contribution + script loader + config JSON builder. |
| modules/web/src/main/java/me/aap/fermata/addon/web/yt/YoutubeAddon.java | Hooks SponsorBlock settings into the YouTube addon settings screen. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@AndreyPavlenko could you check if this is a secrets permission problem in the pipeline? Seems like because I was the one who triggered it, secrets are unaccessible |
|
Please rebase on the last commit. It should skip this step if secrets are unavailable. |
|
Should be done now |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thanks! |
Implements sponsorblock according to https://wiki.sponsor.ajay.app/w/API_Docs docs. Allows user to customise segments to auto skip
Solves #672