Block YouTube Shorts Completely

Hides YT Shorts (I use this to focus better on my work)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name                Block YouTube Shorts Completely
// @namespace    http://tampermonkey.net/
// @version            2.0
// @description    Hides YT Shorts (I use this to focus better on my work)
// @author             Emree.el on instagram 
// @match             https://www.youtube.com/*
// @grant               none
// @license           MIT
// ==/UserScript==

(function() {
    'use strict';

    const removeShorts = () => {
        const selectors = [
            'ytd-rich-shelf-renderer:has(a[href^="/shorts"])',
            'ytd-reel-shelf-renderer',
            'a[href^="/shorts"]',
            'ytd-grid-video-renderer:has(a[href^="/shorts"])',
            'ytd-reel-item-renderer',
            'ytd-video-renderer:has(a[href*="shorts"])',
            'a[title="Shorts"]', // Sidebar Shorts button
            'a[href="/shorts"]'   // Any other direct shorts button
        ];

        selectors.forEach(selector => {
            document.querySelectorAll(selector).forEach(el => el.remove());
        });
    };

    setInterval(removeShorts, 1000); // run every second to clean up
})();