4 ms·
how does it know how to convert a webpage to a ascii?
by pwaai 8y ago
how does it know how to convert a webpage to a ascii?
- tombh 8y agoHa, that's a very long story. The gist though is that some custom CSS forces a given webpage into a strict, monospaced, mono-sized grid. Then JS queries DOM text nodes for their contents and precise positions. Then using the standard rules of text flow the exact position of every character can be fairly reliably derived.
- enriquto 8y agothat's beautiful, where can we find this cool CSS file?