Skip to content

Vulpelo/hide-youtube-shorts

Repository files navigation

Hide YouTube-Shorts

Extension's Mozilla Rating Extension's Mozilla users Extension's Chrome Web Store rating Extension's Chrome Web Store users Licence

Firefox add-on that hides YouTube-shorts videos from home page, subscriptions and search results. Also allows you to hide "Shorts" tab.

Features

  • Hiding Shorts tab
  • Hiding Shorts only selected pages (home/subscription/channel/search page)
  • Hiding shorts in notifications menu
  • Setting a timeout to not allow checking for shorts more often than a specified time (to reduce calling hiding shorts function to reduce page load) (off by default)
  • Adds a close button to a section with shorts located on the subscriptions page (off by default)
  • Hiding videos that are shorter than specified time (experimental, off by default)
  • Hiding live videos (experimental, off by default)
  • Hiding 'Upcoming' videos (experimental, off by default)
  • Redirect shorts to original video player (experimental, off by default)
  • Hiding posts (experimental, off by default)

Installation

For firefox install from Mozilla Add-ons webpage

For chrome install from Chrome web store webpage

Debugging

Prepare files for chrome and firefox versions by running npm run prepare command. This will create new directories ./build/hys-c (for chrome) ./build/hys-f (for firefox) with respected files.

You can also run npm run zip command to prepare and create zip archives for both chrome and firefox versions. Both will be placed in ./build directory

Firefox

Add the Add-on temporarily:

  1. In Firefox browser go to the debugging page by typing in url about:debugging#/runtime/this-firefox
  2. Click on Load Temporary Add-on...
  3. Select a file ./build/hys-f/manifest.json file. Or you can ZIP contents of the project and select it instead.

Google Chrome

Add the Add-on manually:

  1. In Chrome browser go to the Extensions page (or type in url chrome://extensions/)
  2. Enable the Developer Mode
  3. Click the Load unpacked button
  4. Select built directory ./build/hys-c.

License

GPL-3.0

FAQ

  • Going "Back" in navigation again redirects tab to the original video player
    • Chrome and Firefox on Android don't support loadReplace option, meaning that clicking "Back" button will direct to the original video URL (not the page from which video was clicked on). This will then again redirect the page. You can click and hold the back button to display list of previous pages and select desired page from here.
  • After addon installation shorts are still visible on youtube's page
    • It is also required to refresh the youtube's page in order for the scripts to load.
  • After a while youtube starts slowing down
    • Extension hides (not removes) shorts and their containers so they still take up some memory. Depending on how many shorts got hidden the website can start slowing down. Refreshing the page will clean up website from leftover elements.