Skip to content

Instantly share code, notes, and snippets.

@Taubin
Created July 13, 2023 22:26
Show Gist options
  • Save Taubin/d2fe6dc9c77167002a456657939dbc21 to your computer and use it in GitHub Desktop.
Save Taubin/d2fe6dc9c77167002a456657939dbc21 to your computer and use it in GitHub Desktop.
Hide youtube shorts June 2023 - ublock origin
!This line removes all the shorts videos. just copy the entire contents and paste it into your extension (including the comments since they start with an exclamation point)
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(@aria-label,"Shorts")]])
!This part removes the "New Row" object. kind of like removing the new paragraph in word editors.
youtube.com##ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)
!This part limits the number of videos per row. go ahead and play with the number.
youtube.com##ytd-rich-grid-renderer:style(--ytd-rich-grid-items-per-row: 6 !important;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment