YouTube - Large "Show less" Button

Turns the right half of the description box into a large "Show less" button.

Você precisará instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

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

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Você precisará instalar uma extensão como o Tampermonkey para instalar este script.

Você precisará instalar um gerenciador de scripts de usuário para instalar este script.

(Eu já tenho um gerenciador de scripts de usuário, me deixe instalá-lo!)

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

(Eu já possuo um gerenciador de estilos de usuário, me deixar fazer a instalação!)

/* ==UserStyle==
@name           YouTube - Large "Show less" Button
@namespace      lednerg
@version        25.3.12
@description    Turns the right half of the description box into a large "Show less" button.
@author         lednerg
@license        CC-BY-NC-SA-4.0
==/UserStyle== */

/*  I got tired of having to scroll all the way down to get to the "Show less" button,
   so I made this. It lets you collapse the description box by clicking the right half
   of it. The button lights up when hovering over it. If there are any links where the
   button is, they will still be clickable. It also allows you to select any text that
   might be on top of where the button is. */

@-moz-document domain("youtube.com") {
    
    tp-yt-paper-button#collapse {
        border: none !important;
        box-shadow: none !important;
    }
    
    /* "Show more" text */
    ytd-watch-metadata[description-collapsed] tp-yt-paper-button#expand {
        opacity: 0.2 !important;
        transition: opacity .5s !important;
        border-width: 0px !important;
        box-shadow: none !important;
    }
    /* "Show more" text when hovered */
    ytd-watch-metadata[description-collapsed] #description:hover tp-yt-paper-button#expand {
        opacity: 1 !important;
        transition: opacity .125s !important;
    }
    /* Puts some space before the "Show more" text */
    ytd-watch-metadata[description-collapsed] tp-yt-paper-button#expand:before {
        content: "   " !important
    }
    /* "Show less" button location, size, coloring, etc */
    ytd-watch-metadata:not([description-collapsed]) tp-yt-paper-button#collapse {
        color: transparent !important; /* hides original "Show less" text */
        position: absolute !important;
        bottom: 0% !important;
        right: 0% !important;
        height: 100%;
        width: 50%;
        opacity: 0 !important;
        z-index: 0;
        border-radius: 0;
    }
    /* "Show less" button when hovered */
    ytd-watch-metadata:not([description-collapsed]) tp-yt-paper-button#collapse:hover {
        background: linear-gradient(90deg, #9990 0%, #9992 22%, #9993 45%, #9993 55%, #9992 78%, #9990 100%) !important; 
        transition: opacity .125s !important;
        opacity: 1 !important; 
    }
    /* "Show less" text */
    ytd-watch-metadata:not([description-collapsed]) tp-yt-paper-button#collapse:before {
        color: #fff !important;
        content: "Show less";
        position: absolute;
        bottom: 0;
        text-align: center;
        width: 100%;
    }
    /* "Show less" text when hovered */
    ytd-watch-metadata:not([description-collapsed]) tp-yt-paper-button#collapse:hover:before {
        opacity: 1 !important;
        transition: opacity .25s !important;
    }
    /* Allows links, Chapters, Key Moments, etc to be clicked under "Show less" button*/
    ytd-watch-metadata:not([description-collapsed]) #description a,
    ytd-watch-metadata:not([description-collapsed]) #description span,
    ytd-watch-metadata:not([description-collapsed]) #description .yt-formatted-string ,
    ytd-watch-metadata:not([description-collapsed]) div[slot="extra-content"] div:not(#left-arrow, #right-arrow, #left-arrow-container, #right-arrow-container) {
        position: relative !important;
        z-index: 1 !important;
    }
    #left-arrow, #right-arrow, #left-arrow-container, #right-arrow-container {
        z-index: 2 !important;
    }
    /* Move "Show less" down while open so it doesn't collide with text. */
    ytd-watch-metadata:not([description-collapsed]) ytd-text-inline-expander {
        min-height: 20px;
        padding-bottom: 20px;
        /* retrying the thing that was glitchy but in this element */
        margin-top: -20px;
        padding-top: 20px;
    }

    /* Sometimes extra stuff under the description blocks the button. This narrows that area. */
    div[slot="extra-content"] {
        width: 70% !important;
    }
    div#left-arrow-container {
        position: absolute !important;
        z-index: 999 !important;
    }
    div#right-arrow-container {
        position: absolute !important;
        z-index: 999 !important;
    }

}