Hacker News new | ask | show | jobs
by lmm 1117 days ago
A nag popup where the dismiss button just changes itself instead of dismissing the window? Oof, that's a new one.
4 comments

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"; })()

Yeah, as if the popup spam wasn't enough, now it asks for confirmation to close...
I immediately closed the tab away as soon as it asked if I was sure.
Fair point! Consider it fixed