Greasy Fork is available in English.

Twitter - Bring the Reply Counter Back

Shows an accurate count of replies, retweets, and likes for the currently selected tweet.

Versão de: 21/07/2020. Veja: a última versão.

/* ==UserStyle==
@name         Twitter - Bring the Reply Counter Back
@description  Shows an accurate count of replies, retweets, and likes for the currently selected tweet.
@namespace    lednerg
@version      20.7.21
@author       lednerg
@license      unlicense
@preprocessor stylus

@var    select      fontColor	    "Your Twitter color scheme"     {
	"Default*":   "default",
	"Dim":        "dim",
	"Lights out": "lightsOut"
    }
@var    checkbox    customCheckbox	"Use custom font color"                 0
@var    color   	customColor	    "Custom font color"                     #1da1f2
@var    range       textWidth       "Width (adjust if text is overlapping)" [40, 20, 50, 2, '%']
==/UserStyle== */

@-moz-document domain("twitter.com") {

/*    IGNORE THE SYNTAX ERRORS YOU MAY BE SEEING ON THE LEFT   */
/*  You can get rid of them by typing any character into this. */

	if not customCheckbox {
		if fontColor == "default" {
			.css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
				color: #657786 !important;
			}
		}
		if fontColor == "dim" {
			.css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
				color: #8899a6 !important;
			}
		}
		if fontColor == "lightsOut" {
			.css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
				color: #6e767d !important;
			}
		}
	}

	if customCheckbox {
		.css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
			color: customColor !important;
		}
	}

	.css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
		font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif !important;
        text-transform: capitalize !important; /* because Twitter capitalizes Retweet but nothing else */
        max-width: textWidth !important; /* percentage of the entire Tweet width */
		position: absolute !important; /* makes the text movable around its container */
		top: -54% !important; /* for vertically aligning the text */
		right: 1% !important; /* that slight margin on the right */
        text-align: right !important; /* needed for wrap-around */
		transform: translateY(-50%) !important; /* for vertically aligning the text */
		-ms-transform: translateY(-50%) !important; /* needed for... ie?  */
		content: "(" attr(aria-label) ")"; /* the secret sauce */
	}

}