Country flags, post IDs, greentext, (You), anon mode, Yotsuba B — all of it
Xchan is a userscript that turns X (formerly Twitter) into something resembling a 4chan imageboard. Every tweet gets a country flag and a post number. Repeating digits are celebrated. Lines starting with > turn green. Replies to you get marked (You). Toggle anonymous mode and every poster becomes Anonymous with a gray avatar. Turn on Yotsuba B and the whole feed goes blue.
It uses X's own internal API to look up where each poster is from, adapts its request rate to stay within limits, and caches everything locally for 14 days. One file, no dependencies, no build step.
Auto-fetches each poster's country. 196 countries + regions mapped to flag emoji with country name tooltip.
4chan-style post numbers. Dubs, trips, quads, quints, sexts, and GOD-tier repeating digits — color-coded and celebrated.
Lines starting with > render in classic #789922 green. It just works.
Red "(You)" tag appears when someone replies to or quotes your tweets. Never miss a callout.
All names become "Anonymous." Avatars become gray circles with "?". Pure imageboard energy.
Classic blue Yotsuba B color scheme applied to the feed. Posts get bordered, names go green, metas go navy.
Reads X's rate-limit headers live. Auto-paces to use ~50% of budget. Emergency brake at 10 remaining.
Flag lookups cached in localStorage. Up to 10,000 entries. Auto-evicts oldest. Survives page reloads.
1. Install Tampermonkey (Chrome/Firefox/Edge/Safari)
2. Click the install button above, or create a new script and paste the source
3. Visit X. The /4ch/ button appears in the bottom-right corner
4. Toggle Anon Mode and Yotsuba B from the settings panel