Kill Sticky Headers and Floating Banners With One Click
Scroll down almost any news site or blog, and part of your screen stays stuck: a navigation bar, a "subscribe" strip, a cookie notice, a chat bubble, a video that follows you around. Each one is reasonable on its own. Together, they can cover a third of a laptop screen and most of a phone screen. The Sticky Header Killer bookmarklet removes all of them in one click.
Free Sticky Header Killer bookmarklet: unsticks fixed headers, hides cookie banners and overlays, and re-enables…
Why sticky elements are so annoying
- They eat vertical space. A 70-pixel header plus a 50-pixel promo bar plus a 60-pixel cookie banner is 180 pixels gone on a 768-pixel-tall laptop viewport. That is nearly a quarter of your screen.
- They break page-down. Press Space or Page Down and the browser scrolls one viewport height. The lines that were hidden behind the header are skipped, so you have to scroll back up.
- They hide anchor targets. Jump to a section from a table of contents, and the heading lands underneath the fixed bar.
- They distract. Movement and color in the corner of your eye pull attention away from the text.
- They hurt accessibility. When users zoom to 200% or more, fixed bars can take up most of the viewport. WCAG's Reflow and Focus Not Obscured criteria exist partly because of this.
How the bookmarklet works
Sticky and floating elements share a common trait: their computed CSS position is fixed or sticky. The bookmarklet walks the elements on the page, checks getComputedStyle(el).position for each one, and neutralizes the matches. Depending on the element, that means hiding it or resetting its position so it scrolls away with the rest of the page.
A simplified version of the idea:
(() => {
for (const el of document.querySelectorAll('body *')) {
const pos = getComputedStyle(el).position;
if (pos === 'fixed' || pos === 'sticky') {
el.style.setProperty('display', 'none', 'important');
}
}
document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';
})();
The last two lines handle a related trick. Many cookie walls and newsletter modals set overflow: hidden on the page so you cannot scroll until you click something. Removing the overlay without restoring scrolling would leave you stuck, so the bookmarklet turns scrolling back on.
The version in this directory is more careful than the snippet above. It skips its own UI, tells you how many elements it changed, and keeps track of what it touched so the page can be put back.
What it removes
- Fixed and sticky site headers and navigation bars
- Sticky footers, "back to top" buttons, and share bars
- Cookie consent banners and newsletter or app-download strips
- Live chat bubbles and feedback tabs
- Floating "picture-in-picture" video players
- Full-screen overlays that block scrolling
Bringing things back
Nothing is deleted from the site. The changes live only in your current tab. To restore the page, click the bookmarklet again if your version supports toggling, or simply reload the page. Either way, the next visit looks exactly as the site intended.
Things to keep in mind
Consent banners
Hiding a cookie banner is not the same as answering it. If you never click accept or reject, most consent tools fall back to their default, which in many regions means only necessary cookies, but that varies by site and law. If you care about tracking, make an explicit choice or use your browser's privacy settings.
Site menus disappear too
If the navigation is a sticky header, it is gone until you reload. Usually that is the point, but if you need the menu, reload, use it, and run the bookmarklet again on the next page.
Some layouts depend on fixed elements
Web apps such as email clients, chat apps, and dashboards often build their whole interface from fixed panels. Running the bookmarklet there can hide the toolbar you need. It is designed for reading pages, not apps.
Late arrivals
Some banners appear a few seconds after the page loads, or only once you scroll. If something reappears, click the bookmarklet again.
A cleaner reading setup
Sticky Header Killer pairs well with a few other reading tools:
Free Reader Mode bookmarklet: opens a clean reading view of any article without ads or sidebars. Adjust text size, choose…
Free Remove Embed iframe bookmarklet: deletes every iframe, embed and object (ads, videos, widgets) from the page, then…
Run Reader Mode when you want the article and nothing else. Use Remove Embed iframe to strip embedded ads, social widgets, and autoplay videos that live inside iframes. And if bright pages bother you, add Dark Mode Toggle.
Using it on your phone
Sticky elements hurt most on small screens, where a header, a bottom app banner, and a cookie notice can leave you a strip of text in the middle. The bookmarklet works on mobile too. Follow the iPhone or Android steps in How to Add a Bookmarklet, give it a short name like "bm sticky", and run it whenever a page feels cramped.
A note for site owners
If visitors need a bookmarklet to read your site, that is a signal worth listening to. Consider a header that hides on scroll down and reappears on scroll up, keep promo bars dismissible and remember the dismissal, and use scroll-padding-top so anchor links do not land under your header:
html { scroll-padding-top: 80px; }
Frequently asked questions
Does removing a sticky header change the website?
No. The change exists only in your current browser tab. Reload the page and everything comes back exactly as before.
Does hiding a cookie banner mean I accepted cookies?
No. Hiding the banner does not send any answer. The site uses whatever default its consent tool and local law allow, so make an explicit choice if tracking matters to you.
Why can I still not scroll after removing a popup?
Some sites lock scrolling on the page body. The bookmarklet restores overflow scrolling, but if a site uses another method, reloading or using Reader Mode is the fallback.
Will it remove headers that appear later?
Only the ones present when you click. If a banner shows up after a delay or on scroll, click the bookmarklet again.