Skip to content

Habr minimalizer by gudvinr

Screenshot of Habr minimalizer

Details

Authorgudvinr

LicenseNo License

Categoryhabr.com

Created

Updated

Size1.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Makes habr.com more readable

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Habr minimalizer
@version      20240209.06.45
@namespace    userstyles.world/user/gudvinr
@description  Makes habr.com more readable
@author       gudvinr
@license      No License
==/UserStyle== */

@-moz-document domain("habr.com"), regexp("https?:\\/\\/webcache\\.googleusercontent\\.com\\/.*cache.*habr\\.com.*") {
    .tm-header, /* gray header */
    .tm-article-presenter > .tm-company-profile-card, /* top bar */
    .tm-page__sidebar, /* sidebar */
    /* article list ads */
    .tm-articles-list__after-article:has(.tm-article-feed-blocks),
    /* all blocks after comment section */
    .tm-article-blocks > .tm-article-blocks__comments ~ *,
    .tm-article-blocks > section:has(.tm-multiwidget-block__article),
    .pull-down > .tm-article-comments-offloaded ~ *
    {
        display: none;
    }
    
    .tm-page__main,
    .tm-article-presenter,
    .tm-article-presenter__footer,
    .tm-article-sticky-panel__icons,
    /* comment-only view */
    .tm-article-comments,
    .tm-article-comments__article-snippet,
    .tm-article-snippet__cover
    {
        max-width: 100%;
        margin: 0 auto;
    }
}

@-moz-document regexp("https?:\\/\\/webcache\\.googleusercontent\\.com\\/.*cache.*habr\\.com.*") {
#google-cache-hdr {
    /*display: none!important;*/
    padding: 4px 28px!important;
    font-size: 8px!important;
    line-height: 8px!important;
    opacity: 0.1!important;
}

#google-cache-hdr:hover {
    opacity: 0.9!important;
}
}

Reviews

No reviews yet.