Skip to content

marktplaats.nl - Disable carrousel by denilsonsa

Screenshot of marktplaats.nl - Disable carrousel

Details

Authordenilsonsa

LicensePublic domain

Categorymarktplaats

Created

Updated

Code size976 B

Code checksum68e85c9c

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Disables the carrousel on the image gallery thumbnails

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           marktplaats.nl - Disable carrousel
@namespace      github.com/openstyles/stylus
@version        1.0.1
@description    Disables the carrousel on the image gallery thumbnails
@author         Denilson
==/UserStyle== */

@-moz-document domain("marktplaats.nl") {
    html .Thumbnails-root button {
        display: none;
    }
    html .Thumbnails-scroll {
        transform: none !important;
        white-space: normal;
        width: 100%;
        display: grid;
        
        /* Both lines below are equivalent: */
        grid-template-columns: repeat(6, auto);
        grid-template-columns: repeat(auto-fill, 65px);
        
        grid-gap: 1px;  /* 2px is the maximum before it doesn't fit anymore. */
        justify-content: space-between;
    }
    html .Thumbnails-scroll .Thumbnails-item {
        margin: 0;
    }

    /* Please let me right-click on the images. */
    html .carousel img {
        pointer-events: auto;
    }
}

Reviews

No reviews yet.