Repository navigation
fix: Apply Hide YouTube Playables on load and cover all Playables shelves (#48) - #49
Merged
KartikRashmin merged 2 commits intoNov 27, 2026
Conversation
…elf variants - Wire hidePlayables into runAll and restoreAllElements so the setting applies on initial load and is reverted when the extension is disabled. - Broaden Playables link detection from an exact href of /playables to any link containing /playables (covers trailing slashes, query strings, and locale-prefixed URLs). - Cover rich-section, rich-shelf, grid-shelf and horizontal-card-list renderers, including the newer mini-game-card shelves on the Gaming page. - Inject an instant-hide stylesheet so lazily rendered Playables shelves never flash into view.
The GITHUB_TOKEN is read-only for pull_request workflows triggered from forks, so creating or updating PR comments fails with 403 (Resource not accessible by integration) even when the audit and build jobs succeed. Skip those comment steps when the PR head is not in the base repository.
4 tasks done
Owner
|
Thanks for catching this and putting together such a clean fix, @wiredmatt! Everything looks solid, all CI, lint, and security checks passed, and I've merged this into |
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.
Summary
Resolves #48.
The Hide YouTube Playables setting was only applied when toggled or when the Clean Homepage Feed master toggle was enabled. On a normal page load,
runAll()never calledhidePlayables(), so the shelf stayed visible until the user toggled the setting off and on. This wires the setting into the normal settings flow, widens shelf detection, and covers Playables surfaces outside the home feed.Key Changes
hidePlayables()is now called fromrunAll()when Clean Homepage Feed is off, and reverted inrestoreAllElements()./playablesinstead of an exacthref="/playables".ytd-rich-section-renderer,ytd-rich-shelf-renderer,grid-shelf-view-modelandytd-horizontal-card-list-renderer.mini-game-card-view-modelshelves used on the Gaming page (/gaming).display: none !importantstylesheet for Playables shelves so lazily rendered shelves never flash into view./gamingpage in Brave./gaming; the other shelves remain visible.node --checkpasses forhomepage.jsandindex.js.GITHUB_TOKENis read-only and those steps were failing with403 Resource not accessible by integration.