Twitter - Bring the Reply Counter Back (OBSOLETE)

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

  1. /* ==UserStyle==
  2. @name Twitter - Bring the Reply Counter Back (OBSOLETE)
  3. @description Shows an accurate count of replies, retweets, and likes for the currently selected tweet.
  4. @namespace lednerg
  5. @version 20.7.32
  6. @author lednerg
  7. @homepageURL https://gf.qytechs.cn/scripts/407471-twitter-bring-the-reply-counter-back
  8. @license CC-BY-NC-SA-4.0
  9. @preprocessor stylus
  10.  
  11. @var select fontColor "What is your Twitter color scheme?" {
  12. "Default*": "default",
  13. "Dim": "dim",
  14. "Lights out": "lightsOut"
  15. }
  16. @var checkbox customCheckbox "Use custom font color instead" 0
  17. @var color customColor "Custom font color" #1da1f2
  18. @var range textWidth "Width (adjust if text is overlapping)" [40, 20, 60, 2, '%']
  19. ==/UserStyle== */
  20.  
  21. @-moz-document regexp("https?:\\/\\/twitter\\.com\\/.+\\/status\\/[0-9]*") {
  22.  
  23. .css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
  24. font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif !important;
  25. text-transform: capitalize !important; /* because Twitter capitalizes Retweet but nothing else */
  26. max-width: textWidth !important; /* percentage of the entire Tweet width */
  27. position: absolute !important; /* allows the text to be repositioned independently */
  28. top: -54% !important; /* for vertically aligning the text */
  29. right: 1% !important; /* adds a slight margin on the right */
  30. text-align: right !important; /* needed in case there's a wrap-around */
  31. transform: translateY(-50%) !important; /* for vertically aligning the text */
  32. -ms-transform: translateY(-50%) !important; /* needed for... ie? */
  33. content: "(" attr(aria-label) ")"; /* the secret sauce */
  34. }
  35.  
  36. /* The rest of this is for letting you change the color of the text from within Stylus
  37. Go to a Tweet and click the gear icon next to this stylesheet's name in the Stylus menu */
  38.  
  39. if not customCheckbox {
  40. if fontColor == "default" {
  41. .css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
  42. color: #657786 !important;
  43. }
  44. }
  45. if fontColor == "dim" {
  46. .css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
  47. color: #8899a6 !important;
  48. }
  49. }
  50. if fontColor == "lightsOut" {
  51. .css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
  52. color: #6e767d !important;
  53. }
  54. }
  55. }
  56.  
  57. if customCheckbox {
  58. .css-1dbjc4n.r-1oszu61.r-1kfrmmb.r-1efd50x.r-5kkj8d.r-18u37iz.r-ahm1il.r-a2tzq0::after {
  59. color: customColor !important;
  60. }
  61. }
  62.  
  63. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址