🏠 Games Tutorials Dev blog JS code golf Other projects

Twitter character counter

November 2015 - Febuary 2022

A tiny Twitter char counter in 78b, golfed with Tommy Hodgins and Subzey.

2022 update: Chars U-0000-U+10FF count as 1/280, chars > U+10FF count as 2/280. Here's an updated demo that implements this rule.

<input oninput="z=280;[...value].map(a=>c.innerHTML=z-=1+(a>'ჿ'))"><a id=c>280

Demo:
280