Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ha, 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.


that's beautiful, where can we find this cool CSS file?


from a quick peek at the GH repo, https://github.com/browsh-org/browsh/blob/master/webext/asse... and the JS in the surrounding extension code?


thanks! I couldn't find it




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: