Skip to content

Block Shorts tab on YouTube channel pages#2802

Open
pannya70 wants to merge 1 commit intobrave:masterfrom
pannya70:fix-youtube-shorts-channel-tab
Open

Block Shorts tab on YouTube channel pages#2802
pannya70 wants to merge 1 commit intobrave:masterfrom
pannya70:fix-youtube-shorts-channel-tab

Conversation

@pannya70
Copy link
Copy Markdown

@pannya70 pannya70 commented Mar 8, 2026

Description

Adds a filter rule to block the Shorts tab on YouTube channel pages.

Changes

  • Added youtube.com##yt-tab-shape:has-text(Shorts) to brave-lists/yt-shorts.txt (line 20)

Motivation

Currently, the Shorts tab on YouTube channel pages (e.g., youtube.com/@username/shorts) is not blocked by the existing filter list. Users can still navigate to a channel's Shorts content via this tab.

This is currently the case on both Desktop and Android. I haven't tested it on iOS but I am sure it will be the case there as well. Its pretty easy to replicate:

  1. Go to any channel on YouTube using the brave browser such as youtube.com/@arbeanie with the "Block YouTube Shorts" filter applied.
  2. You can then see that the YouTube shorts tab is still visisble. Such as:
image

Implementation

The new rule follows the same pattern as other navigation blocking rules (lines 18-19) by using text-based matching with :has-text(Shorts). This approach is more robust than positional selectors and will work regardless of tab order.

Testing

  • Tested locally using brave://adblock/ custom filters
  • Verified the Shorts tab is hidden on channel pages (e.g., youtube.com/@arbeanie)
  • Confirmed other tabs (Videos, Playlists, etc.) remain visible
  • No console errors or broken functionality observed

No more Shorts tab:
image
image

   Adds yt-tab-shape:has-text(Shorts) rule to hide the Shorts
   navigation tab on YouTube channel pages. This prevents users
   from accessing Shorts content via channel navigation.
@pannya70 pannya70 marked this pull request as ready for review March 8, 2026 05:30
@pannya70 pannya70 requested a review from ryanbr as a code owner March 8, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant