Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



i customized the first one or one very similar to it to remove the "sticky" ones and also to remove the ability of the page to stop you from scrolling as some overlays do. I think it's a large improvement but there's nothing stopping you from having multiple of them(not well formatted here unfortunately but it should be fine to just copy and paste as a bookmarklette):

javascript:( function(){ let i, elements = document.querySelectorAll('body *');

for (i = 0; i < elements.length; i++) {

if(getComputedStyle(elements[i]).position === 'fixed' || getComputedStyle(elements[i]).position === 'sticky') { elements[i].parentNode.removeChild(elements[i]); } } document.body.style.overflow = "auto"; document.body.style.position = "static"; })()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: