Skip to content

Enhanced Spotify by cheap-glitch

Details

Authorcheap-glitch

LicenseMIT

Categoryspotify

Created

Updated

Size1.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Fixes small bugs and annoyances in the Spotify UI

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Enhanced Spotify
@namespace      github.com/openstyles/stylus
@version        1.0.6
@description    Fixes small bugs and annoyances in the Spotify UI
@author         cheap_glitch
==/UserStyle== */
@-moz-document domain("open.spotify.com") {
    
    /* Hide the link to install the Desktop app */
    a[data-encore-id="buttonPrimary"][href="/download"] {
        display: none;
    }
    
    /* Fix the overflow caused by long album titles or artist names */
    :is(
        [data-testid$="-page"], /* Matches "artist-page", "album-page", "playlist-page", etc. */
        [data-testid="entityTitle"] /* Matches profile pages */
    ) { 
        & h1.encore-text-headline-large {
            font-size: 3rem !important;
        }
        
        & span:has(> h1.encore-text-headline-large) {
            overflow-x: scroll;
        }
        
        & button[aria-label="View album artwork"] + div {
            overflow: scroll clip;
        }
    }
    
    /* Stick the collection searchbar to the top of the list */
    #Desktop_LeftSidebar_Id div:has(> [role="search"]) {
        position: sticky;
        top: 0;
        z-index: 1;
        
        padding-bottom: 4px;
        background-color: var(--background-base);
    }
    
}

Reviews

No reviews yet.