Does anyone know how Reader View in Firefox & other browsers actually works, and how to make sure content is shown properly in it?

I've noticed that it strips random paragraphs & even entire sections of my website that are actually important content and not distractions, and some of it seems completely random. It honestly feels like a complete mess of undocumented, vibe coded slop, but maybe I'm being uncharitable and there's a method to its madness?

#WebDev #Firefox #ReaderView

@stveje if I remember correctly this is the underlying library

https://github.com/mozilla/readability

At the least you might be able to run it with the debug option on your content to get some feedback

GitHub - mozilla/readability: A standalone version of the readability lib

A standalone version of the readability lib. Contribute to mozilla/readability development by creating an account on GitHub.

GitHub

@ryan I think I remember looking at that long ago and actually trying to read the source to figure out what it did without much luck. And who knows what changes there have been since.

I really wish it was properly documented and standardized instead. It feels like the bad old days where you never quite knew how each browser would render your HTML and had to wrangle with each one's unique peculiarities to get things to work.