Kill Your Sticky Headers!
2025-02-01
The author hates sticky headers, those persistent elements that cling to the top of websites and steal precious screen real estate. To combat this annoyance, they created a simple bookmarklet that removes all fixed-position elements from a webpage with a single click. The bookmarklet uses `querySelectorAll` to efficiently find and remove these elements, resulting in a cleaner reading experience. The author details the inconveniences of sticky headers, such as reduced screen space, disrupted spacebar scrolling, and interrupted reading flow. While it might remove other fixed elements, a simple refresh restores them. This simple solution avoids the complexity of custom stylesheets or browser extensions.
Read more
Development
bookmarklet