Skip to content

Old Reddit Top Bar Revert by aubymori

Screenshot of Old Reddit Top Bar Revert

Details

Authoraubymori

LicenseGPL v3

Categoryreddit

Created

Updated

Code size1.2 kB

Code checksum8752402f

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Reverts the notifications and chat icon on the top bar on old Reddit.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Old Reddit Top Bar Revert
@namespace      github.com/aubymori
@version        1.0.0
@description    Reverts the notifications and chat icon on the top bar on old Reddit.
@author         aubymori
@license        GPL v3
@preprocessor   less
@var            checkbox nonotifs "Hide Notifications button" 1
@var            select   chatbtn  "Chat button behavior"      ["Default", "Hide", "OldIcon*"]
==/UserStyle== */

@-moz-document domain("reddit.com") {
    a#notifications when (@nonotifs = 1) {
        &,
        & + .separator,
        & + .badge-count,
        & + .badge-count + .separator {
            display: none !important;
        }
    }
    
    #chat-v2 when (@chatbtn = Hide) {
        &,
        & + .separator {
            display: none !important;
        }
    }
    
    #chat-v2 when (@chatbtn = OldIcon) {
        width: 15px;
        height: 15px;
        margin: -5px -1px -1px -1px;
        vertical-align: middle;
        background-image: url("https://www.redditstatic.com/sprite-reddit.vSUv8UUCI2g.png");
        background-position: 0px -703px;
        background-repeat: no-repeat;
        background-size: 70px 865px;
    }
}

Reviews

No reviews yet.