What does HackerNews think of kill-sticky?

Bookmarklet to remove sticky elements and restore scrolling to web pages!

Language: JavaScript

I'm going to change your life: https://github.com/t-mart/kill-sticky

It's a bookmarklet that gets rid of sticky elements. It nukes those stupid fucking headers and footers and kills most cookie banners and "give me your email" type pop-ups. Works in every browser (I use it in Safari on iOS and Firefox on desktop). I almost reflexively go hit this bookmarklet on every website now. It makes the web so much better.

I didn't even realize that "Whatever" was the dismiss button.

The Kill Sticky bookmarklet is your friend: https://alisdair.mcdiarmid.org/kill-sticky-headers/

There's a newer version, but it breaks a number of sites for me, so I don't use it: https://github.com/t-mart/kill-sticky

The internet is a hostile place without Kill Sticky, uBlock Origin, and uBlock Matrix.

In the meantime, NoScript[1] frequently avoids popups entirely by just showing the page contents with no JS at all, and Kill Sticky[2] cleans up the pages that require JS to show you the content you actually want. As a bonus, it also nukes those stupid sticky headers!

[1] NoScript for Firefox (incl. mobile) & Chrome-based desktop browsers: https://noscript.net/getit/

[2] Kill Sticky bookmarklet for all browsers including mobile: https://github.com/t-mart/kill-sticky

Or, a Firefox extension that adds a toolbar button: https://addons.mozilla.org/en-US/firefox/addon/kill-sticky/

Yeah, I don't like it either, and I don't see a way to disable this apart from user's defined bookmark script, like kill sticky[0]:

    javascript:(function()%7Bdocument.querySelectorAll(%22body%20*%22).forEach(function(node)%7Bif(%5B%22fixed%22%2C%22sticky%22%5D.includes(getComputedStyle(node).position))%7Bnode.parentNode.removeChild(node)%7D%7D)%3Bdocument.querySelectorAll(%22html%20*%22).forEach(function(node)%7Bvar%20s%3DgetComputedStyle(node)%3Bif(%22hidden%22%3D%3D%3Ds%5B%22overflow%22%5D)%7Bnode.style%5B%22overflow%22%5D%3D%22visible%22%7Dif(%22hidden%22%3D%3D%3Ds%5B%22overflow-x%22%5D)%7Bnode.style%5B%22overflow-x%22%5D%3D%22visible%22%7Dif(%22hidden%22%3D%3D%3Ds%5B%22overflow-y%22%5D)%7Bnode.style%5B%22overflow-y%22%5D%3D%22visible%22%7D%7D)%3Bvar%20htmlNode%3Ddocument.querySelector(%22html%22)%3BhtmlNode.style%5B%22overflow%22%5D%3D%22visible%22%3BhtmlNode.style%5B%22overflow-x%22%5D%3D%22visible%22%3BhtmlNode.style%5B%22overflow-y%22%5D%3D%22visible%22%7D)()%3B%0A
But unfortunately, it renders the header useless in this case.

[0]: https://github.com/t-mart/kill-sticky

I found a fix!

https://github.com/t-mart/kill-sticky

Just add a little bit of code to a bookmark button, it works wonderfully.

Click the button and your scrollbar returns, the keyboard works again, _AND_ the page renders to a PDF beautifully.

You're welcome. :)

I use this javascript bookmarklet to remove sticky headers/footers/popups:

https://github.com/t-mart/kill-sticky

I keep this "Kill sticky" bookmarklet in Favorites for hotkey activation https://github.com/t-mart/kill-sticky and hit it immediately when a page shows a modal, or to delete a fixed header that is making paging with the space bar suck. Worked perfect on this page.
It's not perfect, but I've been using this Kill Sticky [1] bookmarklet to ditch those modals without having to look around for their [close] or 'x' link.

[1] https://github.com/t-mart/kill-sticky