Skip to content

Libreddit colored comments by vednoc

Screenshot of Libreddit colored comments

Details

Authorvednoc

LicenseMIT

Categorylibredd

Created

Updated

Size1.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Colored comments for libredd.it, a spin of my "Reddit colored comments" userstyle.

Notes

To enable it on other websites, go to userstyle "Edit" page, click on "Settings" in the sidebar, and put *://domain.tld/* to include custom sites.

Source code

/* ==UserStyle==
@name         Libreddit colored comments
@namespace    userstyles.world/user/vednoc
@description  Customizable colored comments for Libreddit.
@author       vednoc <vednoc@pm.me> (https://github.com/vednoc)
@version      1.0.0
@license      MIT
@preprocessor stylus

@var checkbox enable 'Enable libreddit' 1
@var range    lineWidth 'Line width' [2, 1, 8, 1]

@var color color1  'Level  1 color' #f07178
@var color color2  'Level  2 color' #f78c6c
@var color color3  'Level  3 color' #ffcb6b
@var color color4  'Level  4 color' #f3ff89
@var color color5  'Level  5 color' #c3e88d
@var color color6  'Level  6 color' #8de89e
@var color color7  'Level  7 color' #89ddff
@var color color8  'Level  8 color' #82aaff
@var color color9  'Level  9 color' #c792ea
@var color color10 'Level 10 color' #9a91ea
==/UserStyle== */

@-moz-document domain('libredd.it') {
    t = transparent
    i = !important

    :root { content: 'Libreddit colored comments v1.0.0' }

    if enable {
        $str = '.thread > div > .comment_left '
        for $i in 1..10 {
            { $str } > .line {
                background: color + $i i
                width: s('%spx', lineWidth) i
            }

            $str += '+ details > .replies > .comment > .comment_left '
        }
    }
}

Reviews

No reviews yet.