control-panel-for-twitter
control-panel-for-twitter copied to clipboard
Improve interaction count formatting with consistent rounding
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"
Files Changed
script.js
Examples
- 17,609: "18K" → "17K" (matches Twitter's native display)
- 9,999: "9,999" (unchanged)
Given this opinion, it might be better to add an option to show the full retweet and like counts instead of the abbreviated ones...