Rebuilds lore.kernel.org header into a proper flexbox layout
This script is the JS half of a two-part setup. It rebuilds the lore.kernel.org header: pulls the search bar and nav links out of the <pre> block and reassembles them as a flexbox row. No styling — DOM only.
For the full experience, install the companion CSS: https://userstyles.world/style/27136/lore-beautifier (requires https://addons.mozilla.org/firefox/addon/styl-us/)
The CSS provides the dark theme, diff highlighting, typography, and responsive layout. The JS provides the proper header structure. Each works independently, but they're designed to be used together.