Script will remove all shorts
// ==UserScript== // @name YT Shorts Remover // @namespace Script will remove all shorts from subscriptions // @version 0.4 // @description Script will remove all shorts // @author Projekt Darkside - DevIT Brno - Czech Republic // @license Projekt Darkside // @match https://www.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js // @grant none // ==/UserScript== /* globals jQuery, $, waitForKeyElements */ (function() { 'use strict'; const CSS_INFO = [ 'color: yellow;', 'background: black;', 'font-size: 15px;', 'border: 1px solid red;', ].join(';'); const CSS_EXIST = [ 'color: red;', 'background: yellow;', 'font-size: 15px;', 'border: 1px solid red;', 'font-weight: bold;', ].join(';'); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// setInterval(function () { const SHORTS = [ "[overlay-style='SHORTS']" ] $(SHORTS.join(", ")) .each((index, element) => { console.log('%c YOUTUBE SHORTS subscribe %c #### OFF ', CSS_INFO, CSS_EXIST, [element]) }) .parent().parent().parent().parent().parent().parent().parent() .attr('style', 'border: 3px solid lime !important;') .remove() }, 1200); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// setInterval(function () { const SHORTSsearch = [ "span[id='title']:contains('Shorts')", "span:contains('SHORTS')" ] $(SHORTSsearch.join(", ")) .each((index, element) => { console.log('%c YOUTUBE SHORTS search %c #### OFF ', CSS_INFO, CSS_EXIST, [element]) }) .parent().parent().parent() .attr('style', 'border: 3px solid lime !important;') .remove() }, 1200); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// })();