Skip to content

Conversation

@tohu-sand
Copy link
Contributor

Summary

  • Improved interaction count formatting to match Twitter's native display behavior

Why

  • Twitter's native interface uses floor-based rounding (truncation) for interaction counts, not standard rounding
  • The previous implementation used standard rounding which didn't match Twitter's actual behavior
  • For example, Twitter displays 17,609 as "17K", not "18K"
image

Files Changed

  • script.js

Examples

  • 17,609: "18K" → "17K" (matches Twitter's native display)
  • 9,999: "9,999" (unchanged)

@tohu-sand
Copy link
Contributor Author

Given this opinion, it might be better to add an option to show the full retweet and like counts instead of the abbreviated ones...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant