Skip to content

leonardoserra/no_more_shorts

Repository files navigation

No More Shorts

"I like You(...Tube), but I like you more with no Shorts." - Your Crush

No More Shorts is a Chrome extension (or Firefox Plugin!) that removes YouTube Shorts from the homepage, sidebar, and suggested feeds to help you stay focused.


Features

  • Automatically removes all elements related to YouTube Shorts.
  • Redirects away from any /shorts page back to the main YouTube homepage.
  • Dynamically watches for page changes and hides Shorts as they appear.
  • Lightweight, runs only on YouTube pages.

How It Works

The extension injects a content script into YouTube pages. It searches for known Shorts-related elements and removes them from the DOM. It also observes the page for dynamic content changes using a MutationObserver, ensuring Shorts don't reappear. If the user navigates to a Shorts URL, it redirects them to the homepage.

Hint: You can open the browser console by pressing F12 and check if you are already been de-shorted!

Shorts removed for your focus!
Total removed in this session: 69

Installation (chrome)

From the Chrome Web Store:

  1. Go to the Extension Page
  2. Press the install button.
  3. Open YouTube on a new Tab.
  4. Here you are :)

OR

Unpacked Extension (save it in your pc):

  1. Open Google Chrome.
  2. Go to chrome://extensions/ (digit it on the url bar).
  3. Enable Developer Mode (top right).
  4. Click Load unpacked.
  5. Select the /app directory containing:
    • manifest.json
    • app.js
    • ShortsRemover.js
  6. Open YouTube on a new Tab. The extension will be loaded into Chrome immediately.

Installation (Mozilla Firefox)

Unpacked Extension (save it in your pc):

  1. Create your .zip package:
  • Clone the app/ directory and copy the right manifest into it:

    • [zsh]
      cp -r app firefox_app && cp manifests/manifest.firefox.json firefox_app/manifest.json

    • [powershell]
      Copy-Item -Path .\app\ -Destination .\firefox_app\ -Recurse -Force && Copy-Item -Path .\manifests\manifest.firefox.json -Destination .\firefox_app\manifest.json -Force;

  • Create a zip from it:

    • [zsh]
      zip -r firefox_app.zip firefox_app/
    • [Powershell]
      Compress-Archive -Path .\firefox_app\* -DestinationPath firefox_app.zip -CompressionLevel Optimal -Force;
  1. Open Firefox.
  2. Go to about:debugging#/runtime/this-firefox in the address bar.
  3. Click Load Temporary Add-on on top right.
  4. Choose the zip file created.
  5. Be sure to copy the correct file
  6. Activate the plugin in the browser if is not active.
  7. Ready, go to youtube to not see anymore shorts references.

Pull Requests and Collaborations

In order to collaborate to this open source project, just create a new branch from the main branch, then submit your pull request.

A standard prettier execution is mandatory to have always the same style across the project.

Be sure to have node installed on your machine then run:

  • npx prettier --write . --ignore-path .prettierignore

on the root dir to fix the format before pushing.


Using manifests for other browsers

To use the extension in other browsers, you must replace the manifest found in the /app folder with the one corresponding to your browser. These manifests are located in the /manifests folder and follow the naming rule manifest.<browser>.json.

Important:

  • When moving the manifest, remove the <browser> part from the name, leaving it as manifest.json inside /app.
  • If you load the manifest with the browser name in the middle (e.g., manifest.firefox.json), the browser will show an error and will not load the extension.

Configuration

No configuration is required. The extension activates automatically on any youtube.com page.


License

This project is open-source and free to use or modify. No affiliation with Google or YouTube.

About

No More Shorts is a Chrome extension that removes YouTube Shorts from the homepage, sidebar, and suggested feeds to help you stay focused.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors