Skip to content

Instantly share code, notes, and snippets.

@questionlp
Last active April 4, 2024 14:42
Show Gist options
  • Save questionlp/e1f0aff902d7fda2ead2a41601e6d3ee to your computer and use it in GitHub Desktop.
Save questionlp/e1f0aff902d7fda2ead2a41601e6d3ee to your computer and use it in GitHub Desktop.
Hiding YouTube Shorts in the Subscription Page

Hiding YouTube Shorts in the Subscription Page

To hide YouTube shorts from appearing in when viewing your YouTube subscriptions, you can define a custom stylesheet for Safari and Firefox.

Safari

Create a CSS file with the following:

@media all {
    .ytd-rich-shelf-renderer {
        display: none !important;
        visibility: hidden !important;
    }
}

In Safari, open up Settings and click on the Advanced tab. For the Style sheet setting, click on the dropdown, click on Other..., browse and select the CSS file that you created.

Firefox

Locate your Firefox profile directory (open the "Help" menu, choose "More Troubleshooting Information" and look for the "Profile Path" value), create a new directory named "chrome", and create a new CSS file named "userContent.css" with the following:

@-moz-document domain(youtube.com) {
    .ytd-rich-shelf-renderer {
        display: none !important;
        visibility: hidden !important;
    }
}

Next, browse to about:config, click on "Accept the Risk and Continue", search for the toolkit.legacyUserProfileCustomizations.stylesheets setting and toggle the value to true.

You will need to restart Firefox for the changes to take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment