Hide Shorts button / tab

Script that hides the short tab

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 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!)

Advertisement:

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!)

Advertisement:

// ==UserScript==
// @name        Hide Shorts button / tab
// @namespace   Violentmonkey Scripts
// @match       https://www.youtube.com/*
// @grant       none
// @version     1.1
// @author      jside
// @description Script that hides the short tab 
// ==/UserScript==


var mainLoop = setInterval(()=>{
  try {
  a = document.getElementsByTagName("ytd-guide-entry-renderer");
  a[2].hidden = true;
    
  if (a[2].hidden == true){
      clearInterval(mainLoop); // for the performance
    }
  }
  catch(err) {
  // lets not spam the console
  }
},1000);